From: tim at danan dot com Operating system: Redhat 8 PHP version: 4.3.1 PHP Bug Type: Reproducible crash Bug description: Periodic Segmentation Faults
I have a page that is generating repeated segmentation faults on a Redhat 8 system running Apache 1.3.27 and PHP 4.3.1. It is part of a forum system (FudForum) that, unforunately, I didn't write. MySQL and sessions are both involved. The faults are not occurring on every use, but seem to occur about once an hour. Once a seg fault appears I tend to see 4-5 of them in succession, then they disappear again for an hour or so. [Thu Apr 3 14:18:51 2003] [notice] child pid 8668 exit signal Segmentation fault (11) I was able to generate a backtrace by running httpd -X in gdb. (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x40262195 in calloc () from /lib/libc.so.6 (gdb) bt #0 0x40262195 in calloc () from /lib/libc.so.6 #1 0x40260f60 in realloc () from /lib/libc.so.6 #2 0x402176cf in putenv () from /lib/libc.so.6 #3 0x402175f8 in putenv () from /lib/libc.so.6 #4 0x404e6b41 in zif_putenv (ht=1, return_value=0x86fb92c, this_ptr=0x0, return_value_used=0) at /usr/local/src/php-4.3.1/ext/standard/basic_functions.c:1353 #5 0x405ab626 in execute (op_array=0x86ec4f0) at /usr/local/src/php-4.3.1/Zend/zend_execute.c:1596 #6 0x405ab859 in execute (op_array=0x86ea418) at /usr/local/src/php-4.3.1/Zend/zend_execute.c:1640 #7 0x405ab859 in execute (op_array=0x86459ac) at /usr/local/src/php-4.3.1/Zend/zend_execute.c:1640 #8 0x4059a321 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php-4.3.1/Zend/zend.c:864 #9 0x40564f6b in php_execute_script (primary_file=0xbffff390) at /usr/local/src/php-4.3.1/main/main.c:1573 #10 0x405b0546 in apache_php_module_main (r=0x841801c, display_source_mode=0) at /usr/local/src/php-4.3.1/sapi/apache/sapi_apache.c:55 #11 0x405b13e6 in send_php (r=0x841801c, display_source_mode=0, filename=0x8419dfc "/var/www/html/forum/index.php") at /usr/local/src/php-4.3.1/sapi/apache/mod_php4.c:556 #12 0x405b145f in send_parsed_php (r=0x841801c) at /usr/local/src/php-4.3.1/sapi/apache/mod_php4.c:571 #13 0x080cd6f4 in ap_invoke_handler () #14 0x080e209a in process_request_internal () #15 0x080e20fa in ap_process_request () #16 0x080d92e2 in child_main () #17 0x080d94a8 in make_child () #18 0x080d960f in startup_children () #19 0x080d9c3c in standalone_main () #20 0x080da474 in main () #21 0x40202907 in __libc_start_main () from /lib/libc.so.6 GCC Version: gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) My php config is VERY simple: ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-mysql \ --with-pgsql \ --with-pspell \ --enable-debug I'm sure there is a great deal of additional information I can provide, and I will do so quite willingly. My apologies if I've overlooked anything in this report. -- Edit bug report at http://bugs.php.net/?id=23040&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23040&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23040&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23040&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23040&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23040&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23040&r=support Expected behavior: http://bugs.php.net/fix.php?id=23040&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23040&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23040&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23040&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23040&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23040&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23040&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23040&r=gnused