[Bug 1407990] Re: apache2.4 mod-php5.5 random segmentation faults in zend_stack_push() and zend_hash_find()
Gerrit Venema
gmoniker at gmail.com
Thu Mar 12 17:24:39 UTC 2015
The bug is instantly reproducible on a fresh Ubuntu 14.04.
Install server.
apt-get install apache2 php5 netcat
Setup a small PHP script with output in /var/www/html/
For Example as test.php
<?php
echo date('U').PHP_EOL;
?>
shutdown Apache service:
apache2ctl stop
Disable opcache with semicolon in front in
/etc/php5/apache2/conf.d/05-opcache.ini
Start Apache debug server in separate shell
apache2ctl -X
Execute this script (thanks to biggi at stefna dot is):
echo -e "GET /test.php HTTP/1.1\nHost: localhost\n\nGET /test.php HTTP/1.1\nHost: localhost\n\n"|nc localhost 80
Result: immediate segfault
If you do only one request per connection, no problem
If you activate opcache, you will only get one response, the second one appears on the stdout of the debug apache
If you fill the opcache it will segfault if it can't fit the script anymore
I confirmed the same behaviour on Centos 7 with its default packaged
Apache 2.4.6, so this is an upstream bug.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1407990
Title:
apache2.4 mod-php5.5 random segmentation faults in zend_stack_push()
and zend_hash_find()
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1407990/+subscriptions
More information about the Ubuntu-server-bugs
mailing list