#50399 [Asn->Csd]: garbage collection crashes
| From: | ikickdogsforfun at hotmail dot com | Date: | Mon, 07 Dec 2009 20:12:38 +0000 |
| Subject: | #50399 [Asn->Csd]: garbage collection crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145492@lists.php.net to get a copy of this message | ||
ID: 50399
User updated by: ikickdogsforfun at hotmail dot com
Reported By: ikickdogsforfun at hotmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Reproducible crash
Operating System: Debian 5
PHP Version: 5.3.1
Assigned To: dmitry
New Comment:
Sorry, have to provide a comment to close ;)
Previous Comments:
------------------------------------------------------------------------
[2009-12-07 20:11:34] ikickdogsforfun at hotmail dot com
Thanks guys that fixed it. I replaced:
ZEND_SET_SYMBOL(Z_ARRVAL_PP(SERVER), name, type);
with:
php_register_variable_ex(name, type,
PG(http_globals)[TRACK_VARS_SERVER]);
No segfault. I assume that method is either incorrect or not properly
supported via the embedded SAPI. Nevermind, fixed and I'll just replace
the other methods with this method using the track vars :)
------------------------------------------------------------------------
[2009-12-07 18:46:06] jani@php.net
See also bug #50382
------------------------------------------------------------------------
[2009-12-07 17:36:06] scottmac@php.net
Can you try using the following within php_set_superglobal_server as
the way to modify the _SERVER value.
php_register_variable_ex("name", type,
PG(http_globals)[TRACK_VARS_SERVER]);
Also you don't need to destroy the servers zval, it will be handled by
php_embed_shutdown()
------------------------------------------------------------------------
[2009-12-07 15:33:32] pajoye@php.net
Dmitry, can you take a look at it pls?
------------------------------------------------------------------------
[2009-12-07 15:28:19] ikickdogsforfun at hotmail dot com
I added that line to my php.ini and checked phpinfo(); which showed
zend.gc=off
Still having the same problem I'm afraid and valgrind output shows
segfault at the same location.
------------------------------------------------------------------------
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
http://bugs.php.net/50399
--
Edit this bug report at http://bugs.php.net/?id=50399&edit=1