PHP 4.0 Bug #4386: cgi always crashes & dumps core when called from apache
| From: | jamus at jamus dot com | Date: | Wed, 10 May 2000 21:24:49 +0000 |
| Subject: | PHP 4.0 Bug #4386: cgi always crashes & dumps core when called from apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18587@lists.php.net to get a copy of this message | ||
From: jamus@jamus.com
Operating system: x86 linux 2.2.14
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Reproduceable crash
Bug description: cgi always crashes & dumps core when called from apache
Apache crashes with a 500 Internal Server Error whenever a cgi script using php4 is run. The error
log contains: Premature end of script headers: /web/jamus/www/test3.cgi. It also produces a core
file, a back trace is attached. Script runs fine when run at command prompt. Running same script
with php3 also works.
Backtrace:
#0 _mem_block_check (ptr=0x0, silent=1,
__zend_filename=0x80f0f80 "zend_hash.c", __zend_lineno=535,
__zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:483
#1 0x808dc80 in _efree (ptr=0x0, __zend_filename=0x80f0f80 "zend_hash.c",
__zend_lineno=535, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at zend_alloc.c:170
#2 0x809b166 in zend_hash_destroy (ht=0x8128ce4) at zend_hash.c:535
#3 0x805d8bd in php_rshutdown_basic (type=1, module_number=2)
at basic_functions.c:701
#4 0x8098c3e in module_registry_cleanup (module=0x81451a0) at zend_API.c:852
#5 0x809b3ff in zend_hash_apply (ht=0x812b2a0,
apply_func=0x8098c18 <module_registry_cleanup>) at zend_hash.c:655
#6 0x8098670 in zend_deactivate () at zend.c:468
#7 0x8086f0e in php_request_shutdown (dummy=0x0) at main.c:695
#8 0x805d0b5 in main (argc=2, argv=0xbffffc24) at cgi_main.c:622
#9 0x400facb3 in __libc_start_main ()
Configured with:
./configure --prefix=/web/jamus/php
Test script:
#!/web/jamus/php/bin/php
<html>
<body>
hello
<?php echo "hello";?>
</body>
</html>