Bug #69521 [Com]: Segfault in gc_collect_cycles().

From: Date: Wed, 24 Jun 2015 08:19:38 +0000
Subject: Bug #69521 [Com]: Segfault in gc_collect_cycles().
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193831@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69521&edit=1

 ID:                 69521
 Comment by:         arjen at react dot com
 Reported by:        arjen at react dot com
 Summary:            Segfault in gc_collect_cycles().
 Status:             Open
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Linux
 PHP Version:        master-Git-2015-04-24 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

PR with fix and phpt testcase waiting at https://github.com/php/php-src/pull/1266

Could someone pull this for 7.0alpha2?


Previous Comments:
------------------------------------------------------------------------
[2015-05-08 07:55:18] arjen at react dot com

PR @ https://github.com/php/php-src/pull/1266

------------------------------------------------------------------------
[2015-04-29 13:05:19] arjen at react dot com

Testcase and output @ https://gist.github.com/arjenschol/a640117e58935572cf87

------------------------------------------------------------------------
[2015-04-24 13:35:29] rasmus@php.net

But which test is triggering it?

------------------------------------------------------------------------
[2015-04-24 12:14:12] arjen at react dot com

Let me quote myself: "Do you have a testcase available or can I help by finding one?"

I recompiled with -DZEND_GC_DEBUG=2 and got the following:

[0xfdbe400] rc=1 addr=0 black array(1) ->purple
[...]
[0xfdbe400] rc=1 addr=2947 purple array(-1019662895) ->grey

After the last line, the segfault occurs. These are the only occurences of 0xfdbe400

------------------------------------------------------------------------
[2015-04-24 11:39:47] laruence@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



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


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=69521


--
Edit this bug report at https://bugs.php.net/bug.php?id=69521&edit=1


Thread (8 messages)

« previous php.bugs (#193831) next »