Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85324 invoked by uid 1010); 25 May 2007 07:34:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85309 invoked from network); 25 May 2007 07:34:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2007 07:34:11 -0000 Authentication-Results: pb1.pair.com header.from=thetaphi@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=thetaphi@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 80.190.230.99 cause and error) X-PHP-List-Original-Sender: thetaphi@php.net X-Host-Fingerprint: 80.190.230.99 www.troja.net Linux 2.5 (sometimes 2.4) (4) Received: from [80.190.230.99] ([80.190.230.99:52552] helo=mail.troja.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/31-11471-07196564 for ; Fri, 25 May 2007 03:34:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 489A42A9FE for ; Fri, 25 May 2007 09:34:29 +0200 (CEST) Received: from mail.troja.net ([127.0.0.1]) by localhost (cyca.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11908-09 for ; Fri, 25 May 2007 09:34:29 +0200 (CEST) Received: from VEGA (port-83-236-62-78.dynamic.qsc.de [83.236.62.78]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id 0F0CC2A9C1 for ; Fri, 25 May 2007 09:34:28 +0200 (CEST) To: "'php-dev List'" References: <509DFE15-F28E-4869-A124-58E6226205A4@prohost.org> <46565A6A.8060504@krug.dk> Date: Fri, 25 May 2007 09:34:10 +0200 Message-ID: <000001c79e9f$16441de0$0201a8c0@VEGA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Aceefizqh0BIapfwRmqHfR02tR9xLAAINQjQ In-Reply-To: <46565A6A.8060504@krug.dk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: amavisd-new at troja.net Subject: RE: [PHP-DEV] PHP 5.2.3RC1 Released From: thetaphi@php.net ("Uwe Schindler") I tried PHP 5.2.3RC1 today and the SunONE webserver using the NSAPI plugin crashed in module startups with a segfault. This happens because rasmus changed tsrm_virtual_cwd.c to use get_request_time instead of time() (see changelog of that file). During module startup the extension browscap tries to open the browscap.ini file and uses the TSRM functions to do that (because TSRM is used in NSAPI). At module startup there is unfortunately no request running so the call to the SAPI routine sapi_nsapi_get_request_time() core dumps because of a missing server_context. I think that should be fixed because it affects all multithreaded webserver SAPIs that supply a get_request_time-function. Here the core dump: #0 0xfc939712 in sapi_nsapi_get_request_time (tsrm_ls=0x0) at /pangaea/install/php-5.2.3RC1/sapi/nsapi/nsapi.c:721 721 return REQ_TIME( ((nsapi_request_context *)SG(server_context))->rq ); (gdb) where #0 0xfc939712 in sapi_nsapi_get_request_time (tsrm_ls=0x0) at /pangaea/install/php-5.2.3RC1/sapi/nsapi/nsapi.c:721 #1 0xfc8782b2 in sapi_get_request_time (tsrm_ls=0x86bd388) at /pangaea/install/php-5.2.3RC1/main/SAPI.c:990 #2 0xfc86ceb2 in virtual_file_ex (state=0x80476f8, path=0x827d7f0 "/pangaea/webserver70/browscap.ini", verify_path=0, use_realpath=1) at /pangaea/install/php-5.2.3RC1/TSRM/tsrm_virtual_cwd.c:522 #3 0xfc86d1b6 in virtual_fopen (path=0x827d7f0 "/pangaea/webserver70/browscap.ini", mode=0xfcb4370c "r", tsrm_ls=0x86bd388) at /pangaea/install/php-5.2.3RC1/TSRM/tsrm_virtual_cwd.c:819 #4 0xfc7edaad in zm_startup_browscap (type=1, module_number=12, tsrm_ls=0x86bd388) at /pangaea/install/php-5.2.3RC1/ext/standard/browscap.c:165 #5 0xfc7e69a2 in zm_startup_basic (type=1, module_number=12, tsrm_ls=0x86bd388) at /pangaea/install/php-5.2.3RC1/ext/standard/basic_functions.c:4026 #6 0xfc8b7bc6 in zend_startup_module_ex (module=0x8722618, tsrm_ls=0x86bd388) at /pangaea/install/php-5.2.3RC1/Zend/zend_API.c:1464 #7 0xfc8bece0 in zend_hash_apply (ht=0xfcbc5fe0, apply_func=0xfc8b7b30 , tsrm_ls=0x86bd388) at /pangaea/install/php-5.2.3RC1/Zend/zend_hash.c:673 #8 0xfc8b7df4 in zend_startup_modules (tsrm_ls=0x86bd388) at /pangaea/install/php-5.2.3RC1/Zend/zend_API.c:1511 #9 0xfc870804 in php_module_startup (sf=0xfcbb2120, additional_modules=0xfcbb2020, num_additional_modules=1) at /pangaea/install/php-5.2.3RC1/main/main.c:1621 #10 0xfc93973f in php_nsapi_startup (sapi_module=0xfcbb2120) at /pangaea/install/php-5.2.3RC1/sapi/nsapi/nsapi.c:726 #11 0xfc939866 in php5_init (pb=0x8098290, sn=0x0, rq=0x0) at /pangaea/install/php-5.2.3RC1/sapi/nsapi/nsapi.c:859 #12 0xfecde67a in func_exec_str () from /pangaea/webserver70/lib/libns-httpd40.so #13 0xfecde8e6 in INTfunc_exec () from /pangaea/webserver70/lib/libns-httpd40.so #14 0xfecdc45f in __1cSrun_init_functions6Fi_nIPRStatus__ () from /pangaea/webserver70/lib/libns-httpd40.so #15 0xfecdc598 in __1cbCconf_run_late_init_functions6FpnNConfiguration__nIPRStatus__ () from /pangaea/webserver70/lib/libns-httpd40.so #16 0xfed5f237 in __1cJWebServerDRun6F_nIPRStatus__ () from /pangaea/webserver70/lib/libns-httpd40.so #17 0x08050b18 in main () ----- Uwe Schindler thetaphi@php.net - http://www.php.net NSAPI SAPI developer Bremen, Germany > Sent: Friday, May 25, 2007 2:33 AM > To: php-dev List > Subject: [PHP-DEV] PHP 5.2.3RC1 Released > > The first release candidate of PHP 5.2.3 is now available for testing > and can be downloaded here: > > http://downloads.php.net/ilia/php-5.2.3RC1.tar.bz2 (md5sum: > 343785b0558f5696c14607d62f084d4c) > > The release comes a bit sooner then anticipated as it is needed to > address a regression introduced by 5.2.2 in relation to > RAW_HTTP_POST_DATA handling. I'd like to keep the release cycle as > short as possible so we can get this version out ASAP. I'd like to > ask everyone to try this release against their code and/or test suits > and report any new problems if there are any. If there are no new > issues I will move to the final release within 1 week. > > I'd also like to ask all developers to refrain from making major > commits or non-bug-fix commits for the next week to the 5.2 branch. > > > Ilia Alshanetsky > 5.2 Release Master > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php