Paul Eggert wrote:
Bruce Dubbs wrote:
I would think that the tests in grep should account for both pcre and
pcre2, at
least for a couple of years.
Grep currently supports only PCRE. I'd be surprised if it worked with
PCRE2.
My test was with PCRE 8.35 with Debian and Ubuntu patches (I'm
up-to-date with Ubuntu 15.10 on x86-64). Yours was with 8.37, I assume
with no patches. Perhaps if I find the time I can try building PCRE 8.37
on Ubuntu 15.10 and see whether it exhibits the bug, but to be honest I
was hoping someone else could debug this. Perhaps you can try it with
8.35 on linuxfromscratch?
Yes, I can do that. The main Upstream repo doesn't have 8.35, but it
was at sourceforge. I installed that:
-rwxr-xr-x 1 root root 762440 Oct 25 17:43 /lib/libpcre.so.1.2.3
but the pcre-jitstack test still aborts with a segfault. I could try
with a smaller pcrejit.txt file if that would help.
OK, I think I have it. I had a default ulimit:
stack size (kbytes, -s) 8192
when I changed that to unlimited, the test passed. More testing and
ulimit -s 16000 fails but ulimit -s 32000 passes.
I assume you're doing your test on x86-64? (Sorry, don't recall.)
Yes:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
-- Bruce