Bug #819: core dump in standalone binary (CGI)
| From: | matt at debris dot com | Date: | Mon, 05 Oct 1998 17:39:39 +0000 |
| Subject: | Bug #819: core dump in standalone binary (CGI) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1689@lists.php.net to get a copy of this message | ||
From: matt@debris.com
Operating system: BSDI 3.0
PHP version: 3.0.4
PHP Bug Type: Reproduceable crash
Bug description: core dump in standalone binary (CGI)
Although this is not 100% reproducible, it happens 2 times out of 7 (estimated). I have core files
from PHP 3.0 dated 9/18, 10/1 and from 3.0.4 dated 10/2 and 10/5. Seems to me the crashes are
getting more frequent.
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.
(Also note: Zeev has been emailed a copy of the
script that is dying.)
gdb output from the most recent crash (3.0.4):
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
I will upgrade to 3.0.5 and hope for the best; future
crashes will be reported here.
--
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