|  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
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
21 - 8 = ?
Subscribe to this entry?

 [2006-08-10 09:24 UTC] gacek at intertele dot pl
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:
$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';
$a->x0->y1 = "ok\n";
echo $a->x0;

Expected result:
No segfault

Actual result:
(gdb) where
#0  0x00002aaaac8b2250 in raise () from /lib64/
#1  0x00002aaaac8b3720 in abort () from /lib64/
#2  0x00002aaaac8e804f in __libc_message () from /lib64/
#3  0x00002aaaac8ede4f in _int_free () from /lib64/
#4  0x00002aaaac8ee38e in free () from /lib64/
#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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-11 21:16 UTC]
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

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 01:01:28 2024 UTC