Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12026 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43771 invoked by uid 1010); 9 Aug 2004 05:56:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42891 invoked from network); 9 Aug 2004 05:56:01 -0000 Received: from unknown (HELO out2.smtp.messagingengine.com) (66.111.4.26) by pb1.pair.com with SMTP; 9 Aug 2004 05:56:01 -0000 Received: from server3.messagingengine.com (server3.internal [10.202.2.134]) by mail.messagingengine.com (Postfix) with ESMTP id 33816C143B0 for ; Mon, 9 Aug 2004 01:56:01 -0400 (EDT) Received: by server3.messagingengine.com (Postfix, from userid 99) id 55D6017F3A4; Mon, 9 Aug 2004 01:56:01 -0400 (EDT) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.4 (F2.72; T1.001; A1.62; B3.01; Q3.01) To: internals@lists.php.net Date: Sun, 08 Aug 2004 22:56:01 -0700 X-Sasl-Enc: Bu/CpA4QIMTo3lPweV+lWQ 1092030961 Message-ID: <1092030961.24365.201949765@webmail.messagingengine.com> Subject: bug in sapi apache2filter From: kameshj@fastmail.fm ("Kamesh Jayachandran") 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