Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28960 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98272 invoked by uid 1010); 24 Apr 2007 06:43:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98241 invoked from network); 24 Apr 2007 06:43:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2007 06:43:07 -0000 X-Host-Fingerprint: 90.240.39.28 user-5af0271c.wfd97.dsl.pol.co.uk Received: from [90.240.39.28] ([90.240.39.28:6501] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/58-21560-7D6AD264 for ; Tue, 24 Apr 2007 02:42:33 -0400 Message-ID: <35.58.21560.7D6AD264@pb1.pair.com> To: internals@lists.php.net Date: Tue, 24 Apr 2007 07:41:48 +0100 User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Posted-By: 90.240.39.28 Subject: Segfault in PHP 5.2.1 From: chrism@cjsoftuk.dyndns.org (Chris Malton) Here's what I get with PHP 5.2.1 archives from your website, after it builds OK, it segfaults while running. Can anyone explain this? chrism@SERVER:/srv/www/org/dyndns/cjsoftuk/domain_public$ php -v PHP 5.2.1 (cgi) (built: Apr 24 2007 07:00:45) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies chrism@SERVER:/srv/www/org/dyndns/cjsoftuk/domain_public$ php index.php Status: 302 X-Powered-By: PHP/5.2.1 Location: /modx/ Content-type: text/html chrism@SERVER:/srv/www/org/dyndns/cjsoftuk/domain_public$ php modx/index.php Segmentation fault chrism@SERVER:/srv/www/org/dyndns/cjsoftuk/domain_public$ gdb php GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) run modx/index.php Starting program: /usr/local/bin/php modx/index.php [Thread debugging using libthread_db enabled] [New Thread -1213458752 (LWP 27138)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1213458752 (LWP 27138)] 0x0823a1cf in strx_printv (ccp=0xbf1221c4, buf=0xbf122208 "", len=100, format=0x8373688 "%.8F %ld", ap=0xbf1221dc "\212[\0051е�?P�-F") at /home/chrism/php-5.2.1/main/snprintf.c:1136 1136 { (gdb) bt #0 0x0823a1cf in strx_printv (ccp=0xbf1221c4, buf=0xbf122208 "", len=100, format=0x8373688 "%.8F %ld", ap=0xbf1221dc "\212[\0051е�?P�-F") at /home/chrism/php-5.2.1/main/snprintf.c:1136 #1 0x0823afe4 in ap_php_snprintf (buf=0xbf122208 "", len=100, format=0x8373688 "%.8F %ld") at /home/chrism/php-5.2.1/main/snprintf.c:1170 #2 0x081f2a45 in _php_gettimeofday (ht=, return_value=0x906b4b0, return_value_ptr=, this_ptr=0x0, return_value_used=1, mode=0) at /home/chrism/php-5.2.1/ext/standard/microtime.c:87 #3 0x08295bd8 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12243c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:200 #4 0x08294d49 in execute (op_array=0x849dd90) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #5 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12298c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #6 0x08294d49 in execute (op_array=0x856d240) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #7 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf122e4c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #8 0x08294d49 in execute (op_array=0x8570ac8) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #9 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf122fdc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #10 0x08294d49 in execute (op_array=0x84a467c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #11 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12338c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #12 0x08294d49 in execute (op_array=0x84da584) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #13 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf123bac) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #14 0x08294d49 in execute (op_array=0x85538ac) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #15 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf1240fc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #16 0x08294d49 in execute (op_array=0x856d240) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #17 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf1245bc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #18 0x08294d49 in execute (op_array=0x8570ac8) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #19 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12474c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #20 0x08294d49 in execute (op_array=0x84a467c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #21 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf124afc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #22 0x08294d49 in execute (op_array=0x84da584) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #23 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12531c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #24 0x08294d49 in execute (op_array=0x85538ac) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #25 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12586c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #26 0x08294d49 in execute (op_array=0x856d240) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #27 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf125d2c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #28 0x08294d49 in execute (op_array=0x8570ac8) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #29 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf125ebc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #30 0x08294d49 in execute (op_array=0x84a467c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #31 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12626c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #32 0x08294d49 in execute (op_array=0x84da584) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #33 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf126a8c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #34 0x08294d49 in execute (op_array=0x85538ac) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #35 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf126fdc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #36 0x08294d49 in execute (op_array=0x856d240) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #37 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12749c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #38 0x08294d49 in execute (op_array=0x8570ac8) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #39 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12762c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #40 0x08294d49 in execute (op_array=0x84a467c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #41 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf1279dc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #42 0x08294d49 in execute (op_array=0x84da584) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #43 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf1281fc) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #44 0x08294d49 in execute (op_array=0x85538ac) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #45 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf12874c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #46 0x08294d49 in execute (op_array=0x856d240) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #47 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf128c0c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #48 0x08294d49 in execute (op_array=0x8570ac8) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 #49 0x0829564c in zend_do_fcall_common_helper_SPEC (execute_data=0xbf128d9c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:234 #50 0x08294d49 in execute (op_array=0x84a467c) at /home/chrism/php-5.2.1/Zend/zend_vm_execute.h:92 ---Type to continue, or q to quit---q Quit (gdb) Should I start using PHP6? Chris