PHP 4.0 Bug #2047: Crash in zend_hash_find() with a class declaration

From: Date: Fri, 13 Aug 1999 15:24:33 +0000
Subject: PHP 4.0 Bug #2047: Crash in zend_hash_find() with a class declaration
Groups: php.dev 
Request: Send a blank email to php-dev+get-9808@lists.php.net to get a copy of this message
From: christophe.massiot@mail.dotcom.fr Operating system: Linux 2.0.36/Debian slink PHP version: 4.0 Beta 2 PHP Bug Type: Reproduceable crash Bug description: Crash in zend_hash_find() with a class declaration This one is a bit weird and I can't really help you as much as I would like. I experience a lot of crashes while testing php4. The crashes seem to occur at random (a simple "reload" makes the problem disappear), but I have noticed it occurs almost every time after I modify the file I try to access (making debugging quite difficult). A simple modification like adding echo() or exit() makes it crash. But the second time I load the page it works fine. It might be a problem with ZendPersistentRegistry. Note that I have not been able to reproduce the problem with PHP compiled as a CGI. Only as an apache static module. Here is a backtrace of httpd -X : #0 0x80aef53 in zend_hash_find () #1 0x80a4203 in do_return () #2 0x80a4fde in do_end_class_declaration () #3 0x80b0235 in zendparse () #4 0x809e99e in v_compile_files () #5 0x809e904 in compile_files () #6 0x809ea7c in compile_filename () #7 0x80b5478 in execute () #8 0x80b54f5 in execute () #9 0x807333c in php_execute_script () #10 0x80733c0 in apache_php_module_main () #11 0x8071934 in send_php () #12 0x8071980 in send_parsed_php () #13 0x80baf13 in ap_invoke_handler () #14 0x80ce5c9 in ap_some_auth_required () #15 0x80ce62c in ap_process_request () #16 0x80c61ae in ap_child_terminate () #17 0x80c6348 in ap_child_terminate () #18 0x80c64b3 in ap_child_terminate () #19 0x80c6ae6 in ap_child_terminate () #20 0x80c7253 in main () #21 0x400e8212 in __libc_start_main () from /lib/libc.so.6 My libc is : ii libc6 2.1.2-0pre2 GNU C Library: Shared libraries and timezone Good luck, folks. I can supply the content of my classes, but they are quite large and debugging from inside PHP is difficult.

« previous php.dev (#9808) next »