Edit report at https://bugs.php.net/bug.php?id=61106&edit=1
ID: 61106 Updated by: ni...@php.net Reported by: ni...@php.net Summary: Segfault when using header_register_callback -Status: Open +Status: Closed Type: Bug Package: Reproducible crash PHP Version: 5.4.0RC7 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2012-03-02 08:04:44] ni...@php.net Automatic comment from SVN on behalf of nikic Revision: http://svn.php.net/viewvc/?view=revision&revision=323803 Log: Fix bug #61106 Segfault when using header_register_callback The callback was double dtored ------------------------------------------------------------------------ [2012-02-16 16:53:46] ni...@php.net Description: ------------ Using header_register_callback may cause crashes due to a double zval_ptr_dtor. The double zval_ptr_dtor occurs in http://lxr.php.net/xref/PHP_TRUNK/main/SAPI.c#sapi_deactivate in lines http://lxr.php.net/xref/PHP_TRUNK/main/SAPI.c#498 and http://lxr.php.net/xref/PHP_TRUNK/main/SAPI.c#546. For me the issue is quite hard to reproduce reliably (especially after accidentally removing my only non-random reproduce script ^^), but I think it should be obvious that the double dtoring can cause a segfault if you try hard. The issue can be fixed by removing one of the two calls. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61106&edit=1