Re: PHP 4.0 Bug #5102 : segfault on request shutdown
| From: | Stanislav Malyshev | Date: | Thu, 27 Jul 2000 15:08:28 +0000 |
| Subject: | Re: PHP 4.0 Bug #5102 : segfault on request shutdown | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-26483@lists.php.net to get a copy of this message | ||
KV>>
KV>> Looks like I catched problem. It's in session.c handling of ini
KV>> entries. There you have variables like entropy_file. Such
KV>> variables are initialized TWICE! Once in
KV>> PHP_MINIT_FUNCTION(session) (REGISTER_INI_ENTRIES(); is called
KV>> there) and in php_rinit_session_globals... Deallocation is also
KV>> done two times: in PHP_MSHUTDOWN_FUNCTION(session)
KV>> (UNREGISTER_INI_ENTRIES(); is called there) and in
KV>> php_rshutdown_session_globals... With this patch all works Ok
KV>> (on first glance) but I'm not sure if it's correct fix: ---
The weird thing here is that if it was just freed twice, it'd crash every
time, but I never saw it crash in my setup. Why?
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106