php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23343 Memory problem
Submitted: 2003-04-25 08:09 UTC Modified: 2003-04-25 12:04 UTC
From: neon at neon-line dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.3.2RC1 OS: Debian Linux
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: neon at neon-line dot net
New email:
PHP Version: OS:

 

 [2003-04-25 08:09 UTC] neon at neon-line dot net
I got SEGFAUL (signal 11) with this code:
main.php :
<?php
include('inc1.php');
include('inc2.php');
echo $data;
?>
inc1.php :
<?php
define(INCLUDED_INC1,1);
function foo() {
        $return = "return of function foo in inc1.php";
        return $return;
}
?>
inc2.php :
<?php
define(INCLUDED_INC2,1);
if(INCLUDED_INC1)
        $data = foo();
?>

I have configured my php with:
'./configure' '--with-zlib' '--with-zlib-dir=/usr' '--with-snmp' '--enable- mysql' '--enable-sockets' '--prefix=/usr' '--with-apxs=/usr/local/bin/apxs' '--with-regex=php' '-- enable-calendar' '--enable-ftp' '--enable-exif' '--enable-png' '--with-gd'

Debugger output is:
#0  0x400f5bdd in free () from /lib/libc.so.6
#1  0x400f5aa3 in free () from /lib/libc.so.6
#2  0x402d7ecd in shutdown_memory_manager (silent=0, clean_cache=0) at /root/php-4.3.2RC1/Zend/zend_alloc.c:466
#3  0x402be570 in php_request_shutdown (dummy=0x0) at /root/php-4.3.2RC1/main/main.c:1004
#4  0x402ff4f3 in apache_php_module_main (r=0x833a0ec, display_source_mode=0) at /root/php-4.3.2RC1/sapi/apache/sapi_apache.c:61
#5  0x4030009e in send_php (r=0x833a0ec, display_source_mode=0, filename=0x0) at /root/php-4.3.2RC1/sapi/apache/mod_php4.c:617
#6  0x40300102 in send_parsed_php (r=0x833a0ec) at /root/php-4.3.2RC1/sapi/apache/mod_php4.c:632
#7  0x0806b7d9 in ap_invoke_handler ()
#8  0x0808137f in process_request_internal ()

Thanks in advance.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-25 12:04 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC