GNU bug report logs - #19567
"segmentation fault" for long patterns ...

Previous Next

Package: grep;

Reported by: Roméo Capulet <p-pioneer-q <at> gmx.fr>

Date: Sun, 11 Jan 2015 16:30:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 19567-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Roméo Capulet <p-pioneer-q <at> gmx.fr>
Cc: 19567-done <at> debbugs.gnu.org
Subject: Re: bug#19567: "segmentation fault" for long patterns ...
Date: Sun, 11 Jan 2015 09:25:00 -0800
On Sun, Jan 11, 2015 at 8:28 AM, Roméo Capulet <p-pioneer-q <at> gmx.fr> wrote:
> I got a segmentation fault when I try to match a very long pattern on a
> file:
> $ grep -Po 'jQuery\.extend\(Drupal\.settings,[ \t]*\{((?!\}\}\)).)+\}\}\);'
> /tmp/pattern-exemple.txt
> Erreur de segmentation
>
> the grep version : grep (GNU grep) 2.16

Thank you for the complete bug report.
That appears to be due to a bug in the version of libpcre that your
version of grep uses.
Using the latest release, grep-2.21 with newer pcre, that example no
longer causes trouble.

Since this issue appears not to affect the latest version, I'm marking
this ticket as "done".




This bug report was last modified 10 years and 132 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.