PHP 4.0 Bug #3247: Scripts using classes intermittently crash when run from modphp4

From: Date: Tue, 18 Jan 2000 19:40:21 +0000
Subject: PHP 4.0 Bug #3247: Scripts using classes intermittently crash when run from modphp4
Groups: php.dev 
Request: Send a blank email to php-dev+get-14744@lists.php.net to get a copy of this message
From: danny.heijl@cevi.be Operating system: RH Linux 6.0 PHP version: 4.0 Latest CVS (18/01/2000) PHP Bug Type: Reproduceable crash Bug description: Scripts using classes intermittently crash when run from modphp4 Apache/modphp4 : a script using classes that ran without problems a couple of days ago now - sometimes runs normally (first time it gets loaded) - sometimes gives an error : "cannot redeclare class" - sometimes gives a segmentation fault in libzend : Program received signal SIGSEGV, Segmentation fault. 0x80acd04 in zend_hash_add_or_update (ht=0x82b6970, arKey=0x82dc8c8 "recordset", nKeyLength=10, pData=0x82c7768, nDataSize=136, pDest=0x0, flag=2) at ../../php4/Zend/zend_hash.c:171 171 if ((p->h == h) && (p->nKeyLength == nKeyLength)) { (gdb) bt #0 0x80acd04 in zend_hash_add_or_update (ht=0x82b6970, arKey=0x82dc8c8 "recordset", nKeyLength=10, pData=0x82c7768, nDataSize=136, pDest=0x0, flag=2) at ../../php4/Zend/zend_hash.c:171 #1 0x80a24dc in do_bind_function_or_class (opline=0x8333e30, function_table=0x82b6938, class_table=0x82b6970, compile_time=0) at ../../php4/Zend/zend_compile.c:1052 #2 0x811127e in execute (op_array=0x82f4158) at ../../php4/Zend/zend_execute.c:2242 #3 0x809b063 in php_execute_script (primary_file=0xbffff900) at /home/web/php/php4/./main.c:1243 #4 0x80b42a1 in apache_php_module_main (r=0x82c2d9c, fd=19, display_source_mode=0) at /home/web/php/php4/sapi/apache/sapi_apache.c:86 #5 0x80993ea in send_php () #6 0x8099420 in send_parsed_php () #7 0x8117535 in ap_invoke_handler () #8 0x8124c9b in process_request_internal () #9 0x8124cec in ap_process_request () #10 0x811ef98 in child_main () #11 0x811f0cf in make_child () #12 0x811f1d5 in startup_children () #13 0x811f6ae in standalone_main () #14 0x811fc9b in main () #15 0x400d4cb3 in __libc_start_main (main=0x811fa24 <main>, argc=2, argv=0xbffffad4, init=0x80738bc <_init>, fini=0x81e0aac <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffacc) at ../sysdeps/generic/libc-start.c:78 Danny ---

« previous php.dev (#14744) next »