[pcre-dev] [Bug 1803] segfault in pcre jit when running twig…

Inizio della pagina
Delete this message
Autore: admin
Data:  
To: pcre-dev
Oggetto: [pcre-dev] [Bug 1803] segfault in pcre jit when running twig test suite (PHP7)
https://bugs.exim.org/show_bug.cgi?id=1803

--- Comment #42 from Nish Aravamudan <nish.aravamudan@???> ---
(In reply to Giuseppe D'Angelo from comment #41)
> Out of curiosity, do valgrind or even better an instrumented build (with
> ASAN/UBSAN) report anything wrong?


IIRC, no, but I think I may have found it (possibly, going to need to build a
new PHP7.0 to test).

The old split implementation did not use JIT, but the newer one (as of
https://github.com/php/php-src/commit/92655be7cf10f7551ee1a1ae7ea0f1bdcfa2ca6b)
does.

There was an older commit
(https://github.com/php/php-src/commit/376ab3b7873ca04142185d8c08dbb4c4be152474)
that indicates "Nested PCRE calls may clobber extra->mark and it has to be
reinitailized" which is quite symptomatic here ... Will see if adding the
reinit fixes the problem.

--
You are receiving this mail because:
You are on the CC list for the bug.