Edit report at https://bugs.php.net/bug.php?id=64960&edit=1
ID: 64960 Updated by: larue...@php.net Reported by: arjen at react dot com Summary: Segfault in gc_zval_possible_root Status: Open Type: Bug Package: Scripting Engine problem Operating System: Archlinux PHP Version: 5.4.15 Block user comment: N Private report: N New Comment: ah, thanks, I can verify it. and got a fix. will commit soon. thanks Previous Comments: ------------------------------------------------------------------------ [2013-06-05 08:54:10] arjen at react dot com Archlinux fetches src tarballs from http://www.php.net/downloads.php and does not apply any patch to the code. I tried the other versions to show it's not an Archlinux problem. I manually verified by building it from src: wget http://www.php.net/distributions/php-5.4.15.tar.gz tar xf php-5.4.15.tar.gz cd php-5.4.15 ./configure make sapi/cli/php segfault.php Fatal error: Uncaught exception 'Exception' in segfault.php:20 Stack trace: #0 [internal function]: {closure}(8, 'ob_end_clean():...', 'segfault.php', 10, Array) #1 segfault.php(10): ob_end_clean() #2 [internal function]: ExceptionHandler->__invoke(Object(Exception)) #3 {main} thrown in segfault.php on line 20 Segmentation fault (core dumped) sapi/cli/php -v PHP 5.4.15 (cli) (built: Jun 5 2013 10:36:25) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies and again, when compiling from src (php.net tarball) with ./configure --enable-debug the segfault does not occur. ------------------------------------------------------------------------ [2013-06-05 08:17:24] paj...@php.net This is what we actually support: http://www.php.net/downloads.php or using: https://github.com/php/php-src (use the 5.4 branch). External patched versions like the one in ZendServer are not supported, while this possible bug may happen in these versions, we need to reproduce it with our code base. ------------------------------------------------------------------------ [2013-06-05 07:58:06] arjen at react dot com Centos 6.3 with Zend Server PHP (no Suhosin): # php -v PHP 5.3.14 (cli) (built: Jun 19 2012 03:47:42) Archlinux (from repo, no Suhosin) $ php -v PHP 5.4.15 (cli) (built: May 12 2013 13:11:23) Are you sure you're not testing with a debug build? The segfault does not happen in debug builds. ------------------------------------------------------------------------ [2013-06-05 03:10:20] larue...@php.net please disable Suhosin patch and try again. ------------------------------------------------------------------------ [2013-06-04 19:25:14] arjen at react dot com Verified it's not an Archlinux issue: ~$ php -v PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 14:31:48) ~$ php segfault.php PHP Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in /home/arjen/segfault.php on line 3 PHP Fatal error: Uncaught exception 'Exception' in /home/arjen/segfault.php:19 Stack trace: #0 [internal function]: {closure}(8, 'ob_end_clean():...', '/home/arjen/seg...', 9, Array) #1 /home/arjen/segfault.php(9): ob_end_clean() #2 [internal function]: ExceptionHandler->__invoke(Object(Exception)) #3 {main} thrown in /home/arjen/segfault.php on line 19 Segmentation fault (core dumped) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=64960 -- Edit this bug report at https://bugs.php.net/bug.php?id=64960&edit=1