php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1157 Output in shutdown function dumps core.
Submitted: 1999-02-17 23:49 UTC Modified: 2002-06-16 08:28 UTC
From: torben at pinc dot com Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0 Latest CVS (17/02/1999) OS: Linux 2.2.1/RedHat 5.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: torben at pinc dot com
New email:
PHP Version: OS:

 

 [1999-02-17 23:49 UTC] torben at pinc dot com
PHP configure line:
./configure --with-mysql --with-apache=../apache_1.3.4/   \
     --enable-track-vars --enable-debug

Apache configure line:
OPTIM="-O2" CFLAGS="-g" ./configure --prefix=/etc/apache  \
     --activate-module=src/modules/php3/libphp3.a    \
     --enable-module=rewrite

PHP is fresh CVS from about 1800 Feb 17 1999; Apache is fresh tarball 
just downloaded. The bug appeared using Apache 1.3.3 as well.

Script:
<?php
function foo() {
   echo "Just some stuff.<br>";
}
register_shutdown_function( 'foo' );
?>

Backtrace:
#0  0x400cf8f0 in memset ()
#1  0x80f3684 in include_names ()
#2  0x805f707 in str_free (ptr=0x8128558) at main.c:145
#3  0x80623b3 in _php3_hash_destroy (ht=0x80f3684) at php3_hash.c:637
#4  0x8060354 in php3_request_shutdown (dummy=0x0) at main.c:878
#5  0x80975ab in run_cleanups (c=0x81272f4) at alloc.c:1650
#6  0x809670d in ap_clear_pool (a=0x8125fb4) at alloc.c:475
#7  0x8096762 in ap_destroy_pool (a=0x8125fb4) at alloc.c:505
#8  0x80966fc in ap_clear_pool (a=0x8110b1c) at alloc.c:472
#9  0x80a059a in child_main (child_num_arg=0) at http_main.c:3616
#10 0x80a0aab in make_child (s=0x80f99fc, slot=0, now=919312756) at http_main.c:3924
#11 0x80a0ba3 in startup_children (number_to_start=3) at http_main.c:4004
#12 0x80a1033 in standalone_main (argc=4, argv=0xbffffcc4) at http_main.c:4291
#13 0x80a16d5 in main (argc=4, argv=0xbffffcc4) at http_main.c:4592

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-13 15:53 UTC] joey at cvs dot php dot net
Is this bug still there?
 [2002-06-16 08:28 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC