PHP 4.0 Bug #3711: source display crashes in request_shutdown
| From: | danny dot heijl at cevi dot be | Date: | Thu, 02 Mar 2000 19:33:30 +0000 |
| Subject: | PHP 4.0 Bug #3711: source display crashes in request_shutdown | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16311@lists.php.net to get a copy of this message | ||
From: danny.heijl@cevi.be
Operating system: RH Linux 6.0 and 5.2
PHP version: 4.0 Latest CVS (02/03/2000)
PHP Bug Type: Reproduceable crash
Bug description: source display crashes in request_shutdown
Configuration : RH 6.0 (or 5.2) with Apache 1.3.11, latest CVS
Problem : source displaying a .phps file through Apache segfaults.
The output is displayed if output buffering is off in the ini-file, but the crash still happens.
If output buffering is on you get no output at all.
gdb backtrace :
Starting program: /home/web/php/apache_1.3.11/src/httpd -X
Program received signal SIGSEGV, Segmentation fault.
_mem_block_check (ptr=0x0, silent=1, __zend_filename=0x81f0f80
"../../php4/Zend/zend_hash.c",
__zend_lineno=535, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at ../../php4/Zend/zend_alloc.c:483
483 switch (p->magic) {
(gdb) bt
#0 _mem_block_check (ptr=0x0, silent=1, __zend_filename=0x81f0f80
"../../php4/Zend/zend_hash.c",
__zend_lineno=535, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at ../../php4/Zend/zend_alloc.c:483
#1 0x80a4ba8 in _efree (ptr=0x0, __zend_filename=0x81f0f80 "../../php4/Zend/zend_hash.c",
__zend_lineno=535, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at ../../php4/Zend/zend_alloc.c:170
#2 0x80b27b9 in zend_hash_destroy (ht=0x8281124) at ../../php4/Zend/zend_hash.c:535
#3 0x80dab41 in php_rshutdown_basic (type=1, module_number=48)
at /home/web/php/php4/ext/standard/basic_functions.c:470
#4 0x80afde2 in module_registry_cleanup (module=0x82b0d60) at ../../php4/Zend/zend_API.c:872
#5 0x80b2a64 in zend_hash_apply (ht=0x8281020, apply_func=0x80afdbc
<module_registry_cleanup>)
at ../../php4/Zend/zend_hash.c:655
#6 0x80af6ee in zend_deactivate () at ../../php4/Zend/zend.c:462
#7 0x809dfca in php_request_shutdown (dummy=0x0) at /home/web/php/php4/./main.c:663
#8 0x81229cb in run_cleanups ()
#9 0x81216df in ap_clear_pool ()
#10 0x8121736 in ap_destroy_pool ()
#11 0x81216cc in ap_clear_pool ()
#12 0x812c2d3 in child_main ()
#13 0x812c74f in make_child ()
#14 0x812c855 in startup_children ()
#15 0x812cd2e in standalone_main ()
#16 0x812d321 in main ()
#17 0x400d4cb3 in __libc_start_main (main=0x812d0a4 <main>, argc=2, argv=0xbffffac4,
init=0x8073ee0 <_init>, fini=0x81df98c <_fini>, rtld_fini=0x4000a350
<_dl_fini>,
stack_end=0xbffffabc) at ../sysdeps/generic/libc-start.c:78
(gdb)
Danny
---