Am 13.03.2015 18:18 schrieb "Jan Ehrhardt" <php...@ehrhardt.nl>: > > >https://bugs.php.net/bug.php?id=68486 > > echo -e "GET /test.php HTTP/1.1\nHost: localhost\n\n \ > GET /test.php HTTP/1.1\nHost: localhost\n\n"|nc localhost 80 > > Are you running opcache? I tried to reproduce the bug on a Centos6 box, > Apache 2.4.12 with PHP 5.5.22 as mod_php and got a 'zend_mm_heap > corrupted' error when test.php contained phpinfo(); > > Bad enough, but no segfault.
Happens with or without opcache, tried both lots of times. The exact point of crashing is different depending on compiler optimizations, opcache-or-not, and maybe other influences. (I tested also with PHP compiled with both GCC 4.8, 4.9, and all levels of optimization, while investigating, because I first thought it might be coming from one of those influences) The issue is definitely the apache/sapi_apache2 interaction. I know exactly what goes wrong (see the comments in the bug report); I'm just not sure what the all-encompassing fix would be, because I don't know what situations the parent_req / reentrancy parts of the code are trying to handle. best regards Patrick