Bug #819 Updated: core dump in standalone binary (CGI)

From: Date: Wed, 07 Oct 1998 04:55:17 +0000
Subject: Bug #819 Updated: core dump in standalone binary (CGI)
Groups: php.dev 
Request: Send a blank email to php-dev+get-1715@lists.php.net to get a copy of this message
ID: 819 User Update by: matt@debris.com Status: Open Bug Type: Reproduceable crash Description: core dump in standalone binary (CGI) My script has now crashed three nights running. Backtraces for all three are shown below. I have a full test environment set up and waiting for anyone who wants to look into this. All you need to do is log in and run the program. This is a nightly batch script executed via cron using a standalone PHP binary. do-conf: ./configure --with-gd=no --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/apache/etc --enable-track-vars=yes uname -a: BSD/OS x.y.z 3.0 BSDI BSD/OS 3.0 The only error output I get is via crond: "Segmentation fault - core dumped" I don't know for sure where in my script PHP died, but I'm guessing it was within a routine that builds an array of 45,000 items and then loops through it, doing database cleanup along the way. These nested loops generate as many as 47,000 database (MySQL) transactions -- 45k SELECTs and anywhere from a few dozen to perhaps 2000 DELETEs. This was a 3.0.4 crash: Program terminated with signal 11, Segmentation fault. #0 0x209ab in _php3_hash_find (ht=0xa7fa4, arKey=0x0, nKeyLength=18, pData=0xefbfd000) at php3_hash.c:834 834 HANDLE_NUMERIC(arKey, nKeyLength, _php3_hash_index_find(ht,idx,pData)); (gdb) bt #0 0x209ab in _php3_hash_find (ht=0xa7fa4, arKey=0x0, nKeyLength=18, pData=0xefbfd000) at php3_hash.c:834 #1 0xe1ea in phpparse () at control_structures_inline.h:848 #2 0x1f01a in php3_parse (yyin=0xa5d24) at main.c:1461 #3 0x1faa5 in main (argc=3, argv=0xefbfdefc) at main.c:1769 This was a 3.0.5 crash: Program terminated with signal 11, Segmentation fault. #0 0x20aeb in _php3_hash_find (ht=0xa9008, arKey=0x0, nKeyLength=18, pData=0xefbfd000) at php3_hash.c:834 834 HANDLE_NUMERIC(arKey, nKeyLength, _php3_hash_index_find(ht,idx,pData)); (gdb) bt #0 0x20aeb in _php3_hash_find (ht=0xa9008, arKey=0x0, nKeyLength=18, pData=0xefbfd000) at php3_hash.c:834 #1 0xe28e in phpparse () at control_structures_inline.h:856 #2 0x1f15a in php3_parse (yyin=0xa6d54) at main.c:1465 #3 0x1fbe5 in main (argc=3, argv=0xefbfdefc) at main.c:1773 Another 3.0.5 crash: Program terminated with signal 11, Segmentation fault. #0 0x20aeb in _php3_hash_find (ht=0xa9008, arKey=0x0, nKeyLength=18, pData=0xefbfd000) at php3_hash.c:834 834 HANDLE_NUMERIC(arKey, nKeyLength, _php3_hash_index_find(ht,idx,pData)); (gdb) bt #0 0x20aeb in _php3_hash_find (ht=0xa9008, arKey=0x0, nKeyLength=18, pData=0xefbfd000) at php3_hash.c:834 #1 0xe28e in phpparse () at control_structures_inline.h:856 #2 0x1f15a in php3_parse (yyin=0xa6d54) at main.c:1465 #3 0x1fbe5 in main (argc=3, argv=0xefbfdefc) at main.c:1773 As I've said above, I have a full test environment running on a spare server -- a snapshot of the db, the code, etc. Anyone who wants to test/debug this is invited to send me their ssh public keys so I can set up a login account. Full Bug description available at: http://ca.php.net/bugs.php3?id=819 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1715) next »