bug in sapi apache2filter
| From: | Kamesh Jayachandran | Date: | Mon, 09 Aug 2004 05:56:01 +0000 |
| Subject: | bug in sapi apache2filter | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-12026@lists.php.net to get a copy of this message | ||
Hi All,
I found apache giving segmentation fault in the following scenario.
1)Disable php module and start apache.
2)enable php in the httpd.conf
3)httpd restart(Not stop and start)
4)make a request to any php page apache segfaults.
I drilled down on this issue.
My investigation is,
Apache on startup calls php_apache_server_startup twice
one to set a user data for a userdata_key "apache2filter_post_config"
and another to call tsrm_startup and all.
While restart it simply calls this function once which misses out call
to tsrm_startup and hence tsrm_tls_table_size is just zero inside TSRM
which causes divide by zero error in THREAD_HASH_OF macro.
With regards
Kamesh Jayachandran