Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18672 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19401 invoked by uid 1010); 5 Sep 2005 06:44:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19386 invoked from network); 5 Sep 2005 06:44:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2005 06:44:00 -0000 X-Host-Fingerprint: 203.59.1.196 mail-iinet.icp-qv1-irony2.iinet.net.au FreeBSD 4.4 (1) Received: from ([203.59.1.196:47858] helo=ihug-mail.icp-qv1-irony2.iinet.net.au) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2B/52-33268-E29EB134 for ; Mon, 05 Sep 2005 02:43:59 -0400 Received: from 203-217-48-225.dyn.iinet.net.au (HELO [192.168.0.10]) ([203.217.48.225]) by ihug-mail.icp-qv1-irony2.iinet.net.au with ESMTP; 05 Sep 2005 14:43:47 +0800 Message-ID: <431BE97C.8020504@trickie.org> Date: Mon, 05 Sep 2005 16:45:16 +1000 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: multipart/mixed; boundary="------------000904050101010104080808" Subject: segfault on apache startup with --enable-debug From: php@trickie.org (Nick Loeve) --------------000904050101010104080808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello internals, I get a segfault when starting apache with debug enabled in the php build. I am using the latest 5_1 cvs, and apache 1.3 The backtrace i get in gdb is attached. Is that likely to be caused with memory handling in an extension module? It works fine in non-debug, but i am just trying to make sure i have cleaned up properly in an extension i am building. Thanks --------------000904050101010104080808 Content-Type: text/plain; name="bt.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bt.txt" Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1210743712 (LWP 20634)] 0xb7dcedb3 in strlen () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb7dcedb3 in strlen () from /lib/tls/i686/cmov/libc.so.6 #1 0xb7b46e30 in format_converter (odp=0xbffff160, fmt=0xb7c50d81 "s(%d) : Freeing 0x%.8lX (%d bytes), script=%s\n", ap=0xbffff1b0 "T") at /home/trickie/Desktop/php-src/main/snprintf.c:901 #2 0xb7b4744e in strx_printv (ccp=0xbffff194, buf=0xbffff470 "\003", len=512, format=0xb7c50d80 "%s(%d) : Freeing 0x%.8lX (%d bytes), script=%s\n", ap=0xbffff1ac "") at /home/trickie/Desktop/php-src/main/snprintf.c:1130 #3 0xb7b474a8 in ap_php_snprintf (buf=0xbffff470 "\003", len=512, format=0xb7c50d80 "%s(%d) : Freeing 0x%.8lX (%d bytes), script=%s\n") at /home/trickie/Desktop/php-src/main/snprintf.c:1144 #4 0xb7b43d36 in php_message_handler_for_zend (message=4, data=0x80f5c10) at /home/trickie/Desktop/php-src/main/main.c:916 #5 0xb7b8e59e in zend_message_dispatcher (message=4, data=0x80f5c10) at /home/trickie/Desktop/php-src/Zend/zend.c:857 #6 0xb7b74921 in shutdown_memory_manager (silent=0, full_shutdown=1) at /home/trickie/Desktop/php-src/Zend/zend_alloc.c:561 #7 0xb7b452a1 in php_module_shutdown () at /home/trickie/Desktop/php-src/main/main.c:1575 #8 0xb7b4522a in php_module_shutdown_wrapper (sapi_globals=0xb7cdacc0) at /home/trickie/Desktop/php-src/main/main.c:1538 #9 0xb7c07e9e in apache_php_module_shutdown_wrapper () at /home/trickie/Desktop/php-src/sapi/apache/mod_php5.c:876 #10 0x080522d3 in ap_run_cleanup () #11 0x08051107 in ap_clear_pool () #12 0x0805ff31 in ap_child_terminate () #13 0x08060a96 in main () --------------000904050101010104080808--