|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-12-19 05:49 UTC] jan at horde dot org
Description:
------------
When I try to call a really complex script, PHP crashes with this backtrace:
#0 0x40237422 in grow_heap () from /lib/libc.so.6
#1 0x40238a52 in sYSMALLOc () from /lib/libc.so.6
#2 0x4023918c in malloc () from /lib/libc.so.6
#3 0x406f40f8 in zend_mm_add_memory_block (heap=0x409010f8,
block_size=1515870884) at /home/jan/cvs/php5/Zend/zend_mm.c:223
#4 0x406f43a1 in zend_mm_alloc (heap=0x409010f8, size=1515870856)
at /home/jan/cvs/php5/Zend/zend_mm.c:321
#5 0x406f43c8 in zend_mm_alloc (heap=0x409010f8, size=1515870856)
at /home/jan/cvs/php5/Zend/zend_mm.c:325
#6 0x406f43c8 in zend_mm_alloc (heap=0x409010f8, size=1515870856)
at /home/jan/cvs/php5/Zend/zend_mm.c:325
#7 0x406f43c8 in zend_mm_alloc (heap=0x409010f8, size=1515870856)
at /home/jan/cvs/php5/Zend/zend_mm.c:325
#8 0x406f43c8 in zend_mm_alloc (heap=0x409010f8, size=1515870856)
at /home/jan/cvs/php5/Zend/zend_mm.c:325
#9 0x406f43c8 in zend_mm_alloc (heap=0x409010f8, size=1515870856)
at /home/jan/cvs/php5/Zend/zend_mm.c:325
#10 0x406f43c8 in zend_mm_alloc (heap=0x409010f8, size=1515870856)
at /home/jan/cvs/php5/Zend/zend_mm.c:325
This continues endlessly, I stopped around frame #1000, so I don't know where it actually was called from.
No, I don't have a simple script to reproduce this, but perhaps someone already has an idea from looking at this bt.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 20:00:01 2025 UTC |
This is the backtrace I got: 0x082c1c9d in _zend_is_inconsistent (ht=0x1b, file=0x8403060 "/usr/src/web/php/php5/Zend/zend_hash.c", line=841) at /usr/src/web/php/php5/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { (gdb) bt #0 0x082c1c9d in _zend_is_inconsistent (ht=0x1b, file=0x8403060 "/usr/src/web/php/php5/Zend/zend_hash.c", line=841) at /usr/src/web/php/php5/Zend/zend_hash.c:53 #1 0x082c3dcc in zend_hash_find (ht=0x1b, arKey=0x4111999c "__wakeup", nKeyLength=9, pData=0xbfffd088) at /usr/src/web/php/php5/Zend/zend_hash.c:841 #2 0x082b2489 in zend_call_function (fci=0xbfffd130, fci_cache=0x0) at /usr/src/web/php/php5/Zend/zend_execute_API.c:619 #3 0x082b2033 in call_user_function_ex (function_table=0x8613e08, object_pp=0xbfffd270, function_name=0xbfffd1a0, retval_ptr_ptr=0xbfffd1bc, param_count=0, params=0x0, no_separation=1, symbol_table=0x0) at /usr/src/web/php/php5/Zend/zend_execute_API.c:517 #4 0x0825cb91 in object_common2 (rval=0xbfffd270, p=0xbfffd42c, max=0x41117545 "", var_hash=0xbfffd430, elements=20) at var_unserializer.re:233 #5 0x0825bc53 in php_var_unserialize (rval=0xbfffd270, p=0xbfffd42c, max=0x41117545 "", var_hash=0xbfffd430) at var_unserializer.re:452 #6 0x0825c945 in process_nested_data (rval=0xbfffd320, p=0xbfffd42c, max=0x41117545 "", var_hash=0xbfffd430, ht=0x4111985c, elements=0) at var_unserializer.re:173 #7 0x0825bea1 in php_var_unserialize (rval=0xbfffd320, p=0xbfffd42c, max=0x41117545 "", var_hash=0xbfffd430) at var_unserializer.re:361 #8 0x0825c945 in process_nested_data (rval=0xbfffd444, p=0xbfffd42c, max=0x41117545 "", var_hash=0xbfffd430, ht=0x41118918, elements=9) at var_unserializer.re:173 #9 0x0825cb1f in object_common2 (rval=0xbfffd444, p=0xbfffd42c, max=0x41117545 "", var_hash=0xbfffd430, elements=22) at var_unserializer.re:226 #10 0x0825bc53 in php_var_unserialize (rval=0xbfffd444, p=0xbfffd42c, max=0x41117545 "", var_hash=0xbfffd430) at var_unserializer.re:452 #11 0x0824fb39 in zif_unserialize (ht=1, return_value=0x40e6abdc, this_ptr=0x0, return_value_used=1) at /usr/src/web/php/php5/ext/standard/var.c:742 #12 0x082dd628 in zend_do_fcall_common_helper (execute_data=0xbfffd7a0, opline=0x40e42aa0, op_array=0x40e426ac) at /usr/src/web/php/php5/Zend/zend_execute.c:2558 #13 0x082ddc5e in zend_do_fcall_handler (execute_data=0xbfffd7a0, opline=0x40e42aa0, op_array=0x40e426ac) at /usr/src/web/php/php5/Zend/zend_execute.c:2700 #14 0x082da46c in execute (op_array=0x40e426ac) at /usr/src/web/php/php5/Zend/zend_execute.c:1272 #15 0x082bcaa7 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/web/php/php5/Zend/zend.c:1051 #16 0x08285fd8 in php_execute_script (primary_file=0xbffffba0) at /usr/src/web/php/php5/main/main.c:1641Here's the backtrace with today's CVS checkout: #0 0x406d7563 in mmap () from /lib/i686/libc.so.6 #1 0x4066fdac in sYSMALLOc () from /lib/i686/libc.so.6 #2 0x4066c853 in malloc () from /lib/i686/libc.so.6 #3 0x08356954 in zend_mm_add_memory_block (heap=0x864c008, block_size=3031741692) at /usr/src/web/php/php5/Zend/zend_mm.c:223 #4 0x08356bfb in zend_mm_alloc (heap=0x864c008, size=3031741664) at /usr/src/web/php/php5/Zend/zend_mm.c:321 #5 0x08356c22 in zend_mm_alloc (heap=0x864c008, size=3031741664) at /usr/src/web/php/php5/Zend/zend_mm.c:325 #6 0x08356c22 in zend_mm_alloc (heap=0x864c008, size=3031741664) at /usr/src/web/php/php5/Zend/zend_mm.c:325 #7 0x08356c22 in zend_mm_alloc (heap=0x864c008, size=3031741664) at /usr/src/web/php/php5/Zend/zend_mm.c:325 #8 0x08356c22 in zend_mm_alloc (heap=0x864c008, size=3031741664) at /usr/src/web/php/php5/Zend/zend_mm.c:325