php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38408 shutdown_memory_manager crash (4_4 only)
Submitted: 2006-08-10 09:24 UTC Modified: 2008-07-11 21:16 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: gacek at intertele dot pl Assigned:
Status: Wont fix Package: Reproducible crash
PHP Version: 4.4.3 OS: Linux FC4 x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gacek at intertele dot pl
New email:
PHP Version: OS:

 

 [2006-08-10 09:24 UTC] gacek at intertele dot pl
Description:
------------
Test tests/lang/bug35239.php causes segfault in php-4.4.3
4.4.2 version is also affected
5.1.4 is unaffected

Reproduce code:
---------------
<?php
$a = new stdClass; 
$a->x0 = new stdClass;
$a->x0->y0 = 'a';
$a->x0->y1 =& $a->x0;
$a->x0->y2 =& $a->x0;
$a->x0->y0 = 'b';
var_dump($a);
$a->x0->y1 = "ok\n";
echo $a->x0;
?>


Expected result:
----------------
No segfault

Actual result:
--------------
(gdb) where
#0  0x00002aaaac8b2250 in raise () from /lib64/libc.so.6
#1  0x00002aaaac8b3720 in abort () from /lib64/libc.so.6
#2  0x00002aaaac8e804f in __libc_message () from /lib64/libc.so.6
#3  0x00002aaaac8ede4f in _int_free () from /lib64/libc.so.6
#4  0x00002aaaac8ee38e in free () from /lib64/libc.so.6
#5  0x000000000053b55a in shutdown_memory_manager (silent=0, clean_cache=0) at /usr/src/redhat/BUILD/php-4.4.3/Zend/zend_alloc.c:492
#6  0x0000000000512b62 in php_request_shutdown (dummy=0x0) at /usr/src/redhat/BUILD/php-4.4.3/main/main.c:1010
#7  0x000000000056bf03 in main (argc=46, argv=0x7fff203128f8) at /usr/src/redhat/BUILD/php-4.4.3/sapi/cli/php_cli.c:883


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-11 21:16 UTC] jani@php.net
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
ready.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 21 22:01:23 2021 UTC