[php-maint] Bug#778607: PHP and apache ends with segmentation fault

Arkadiusz Bubała arkadiusz.bubala at open-e.com
Tue Feb 17 12:20:12 UTC 2015


Package: php5
Version: 5.6.5+dfsg-1

This is continuation of bug #753851. This bug still exists.

There is simple script that causes this issue:

<?php
function crash()
{
     $notDefined[$i] = 'test';
}

function error_handler() { return false; }

set_error_handler('error_handler');
crash();
echo "made it once\n";
crash();
echo "ok\n";
?>

The bug is already reported to PHP here: 
https://bugs.php.net/bug.php?id=67314

There is simple work around to increment 
(executor_globals.uninitialized_zval.refcount__gc) reference counter in 
zend_error() function if error handler is set.

This bug was reproduced on the current Debian Jessie version,  php5 
5.6.5+dfsg-1 and apache 2.4.10-3.

-- 
Best regards
Arkadiusz Bubała
Open-E Poland Sp. z o.o.
www.open-e.com



More information about the pkg-php-maint mailing list