php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4386 cgi always crashes & dumps core when called from apache
Submitted: 2000-05-10 17:24 UTC Modified: 2000-06-28 14:34 UTC
From: jamus at jamus dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Release Candidate 2 OS: x86 linux 2.2.14
Private report: No CVE-ID: None
 [2000-05-10 17:24 UTC] jamus at jamus dot com
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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-28 14:34 UTC] andi at cvs dot php dot net
This should be fixed in 4.0.1 due to be released tomorrow. If the problem persists please open a new bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC