When using the following command, *most* of the time I get a
Segmentation fault (10 out of 16 times):
€ cat grepTxt | grep -P 'b(?:(?!tom).)+'
Segmentation fault (core dumped)
This happens with the grep version that came with my Linux installation:
€ grep -V
grep (GNU grep) 2.16
I am on:
NA
My feedback to your questions:
In addition, please recompile grep with `-g' and if it is reproduced,
get backtrace from a core file with gdb and send it to us.
$ CFLAGS=-g ./configure OPTIONS
$ make
$ cat grepTxt | grep -P 'b(?:(?!tom).)+'
$ gdb src/grep core.*
I'm not a developer, so please bear with me here. You kinda lost me with
below analysis, but I think I managed to reproduce your findings with a
bit of Google-magic. Are you saying a bug should be registered with
pcre.org?
I am reproducing your findings as follows:
€ sudo apt-get install libp
FYI: I filed a bug with the pcre prject:
http://bugs.exim.org/show_bug.cgi?id=1562
On 2014-12-23 03:05, Paul Eggert wrote:
J.P. Hendrix wrote:
Are you saying a bug should be registered with pcre.org?
That's what I'd suggest, yes. I also can reproduce the bug with Mr.
Tanaka