ID: 39640
Updated by: [EMAIL PROTECTED]
Reported By: phpbugs at thequod dot de
Status: Assigned
Bug Type: Reproducible crash
Operating System: Ubuntu Linux
PHP Version: 5CVS-2006-11-26 (CVS)
-Assigned To: tony2001
+Assigned To: dmitry
New Comment:
Reassigned to Dmitry, he said he'll take a look at it along with other
memory manager related problems.
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 22:28:53] [EMAIL PROTECTED]
Thanks for the last hint, now I can replicate it.
It happens when an object is not initialized properly (because of the
memory limit).
Please give me some time, I'll try to find a solution..
------------------------------------------------------------------------
[2006-11-27 22:06:03] phpbugs at thequod dot de
No debug build.
It does not happen always, only if the memory gets
exhausted in line 8 ("$a = new stdClass;"), not if it gets
exhausted in a line like "$a->foo = rand(1000, 9999);".
Here's a backtrace from CLI:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219950928 (LWP 535)]
_zend_mm_free_int (heap=0x85ff1d8, p=<value optimized
out>) at /usr/local/src/PHP_5_2/Zend/zend_alloc.c:1332
1332 if
(ZEND_MM_IS_FREE_BLOCK(next_block)) {
(gdb) bt
#0 _zend_mm_free_int (heap=0x85ff1d8, p=<value optimized
out>) at /usr/local/src/PHP_5_2/Zend/zend_alloc.c:1332
#1 0x08325073 in zend_object_std_dtor (object=0xb2352ff0)
at /usr/local/src/PHP_5_2/Zend/zend_objects.c:45
#2 0x083250a2 in zend_objects_free_object_storage
(object=0xb2352ff0)
at /usr/local/src/PHP_5_2/Zend/zend_objects.c:122
#3 0x08327e6d in zend_objects_store_free_object_storage
(objects=0x85fedc8)
at /usr/local/src/PHP_5_2/Zend/zend_objects_API.c:89
#4 0x083035d1 in shutdown_executor ()
at /usr/local/src/PHP_5_2/Zend/zend_execute_API.c:299
#5 0x0830e3a3 in zend_deactivate ()
at /usr/local/src/PHP_5_2/Zend/zend.c:841
#6 0x082cf36c in php_request_shutdown (dummy=0x0)
at /usr/local/src/PHP_5_2/main/main.c:1306
#7 0x0838482d in main (argc=2, argv=0xbfd22424)
at /usr/local/src/PHP_5_2/sapi/cli/php_cli.c:1259
$ php -v
PHP 5.2.1-dev (cli) (built: Nov 27 2006 03:16:44)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend
Technologies
------------------------------------------------------------------------
[2006-11-27 21:33:26] [EMAIL PROTECTED]
Is your PHP build with --enable-debug? If it is on out-of-
memory error PHP dies with a segv.
------------------------------------------------------------------------
[2006-11-27 20:15:46] phpbugs at thequod dot de
There's only a sqlite related fix, if I do "cvs diff"?!
------------------------------------------------------------------------
[2006-11-27 09:52:03] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39640
--
Edit this bug report at http://bugs.php.net/?id=39640&edit=1