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?



Reply via email to