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
+Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Archlinux
 PHP Version:        5.4.15
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=3c87945c95c9c31986e690bb046c70e58c8d8896
Log: Fixed bug #64960 (Segfault in gc_zval_possible_root)


Previous Comments:
------------------------------------------------------------------------
[2013-06-05 08:57:56] larue...@php.net

ah, thanks, I can verify it. and got a fix. will commit soon.

thanks

------------------------------------------------------------------------
[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.

------------------------------------------------------------------------


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

Reply via email to