Paul Eggert wrote:
Bruce Dubbs wrote:
   ( ulimit -s 50; LC_ALL=C src/grep -P -n '^([/](?!/)|[^/])*~/.*'
pcrejit.txt )

but changing to a ulimit of 40 KB, it consistently segfaults.
That also jibes with what valgrind --tool=massif --stacks=yes reports.

$ valgrind --tool=massif --stacks=yes ./grep -P -n
'^([/](?!/)|[^/])*~/.*'
pcrejit.txt

Maybe the LC_ALL=C in Jim's test explains the differing behaviors?

I don't think so. I do not have any LC/LANG/LANGUAGE variables defined. One thing that may be different is that I used
--enable-unicode-properties when building pcre.

http://www.linuxfromscratch.org/blfs/view/svn/general/pcre.html

  -- Bruce




Reply via email to