From:             patric at zap dot lu
Operating system: Debian Lenny
PHP version:      5.3.0RC1
PHP Bug Type:     Scripting Engine problem
Bug description:  Garbage Collector crashes

Description:
------------
We got a huge framework which runs as CLI.
With lots of circular references, we use 5.3 as it
solves the out of memory problem.

Unfortunately it crashes randomly after a while.
We can't reproduce it as it crashes, as it likes.




Reproduce code:
---------------
Not possible, as we can't locate a specific line of code.
Happens randomly

Actual result:
--------------
The GDP output for this problem:

Core was generated by `/blade/exec/10.1.0.10/php/bin/php
-c/blade/run/configs/10.1.0.10-php-daemon.ini'.
Program terminated with signal 11, Segmentation fault.
[New process 25897]
#0  0x08347bc9 in children_scan (pz=0xba2c09f5) at
/blade/install/daemon/php/Zend/zend_gc.c:431
431             zval_scan(*pz TSRMLS_CC);
(gdb) bz
Undefined command: "bz".  Try "help".
(gdb) bt
#0  0x08347bc9 in children_scan (pz=0xba2c09f5) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#1  0x08337af3 in zend_hash_apply (ht=0xa1d442c, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#2  0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#3  0x08347bd0 in children_scan (pz=0x9c7f47c) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#4  0x08337af3 in zend_hash_apply (ht=0xa4b3758, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#5  0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#6  0x08347bd0 in children_scan (pz=0x9fa05b8) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#7  0x08337af3 in zend_hash_apply (ht=0x9fb2308, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#8  0x08347a61 in zobj_scan (pz=0x9fb2338) at
/blade/install/daemon/php/Zend/zend_gc.c:401
#9  0x08347ba7 in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:416
#10 0x08347bd0 in children_scan (pz=0xa08cbf0) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#11 0x08337af3 in zend_hash_apply (ht=0xa166234, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#12 0x08347a61 in zobj_scan (pz=0x9dc7b48) at
/blade/install/daemon/php/Zend/zend_gc.c:401
#13 0x08347ba7 in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:416
#14 0x08347bd0 in children_scan (pz=0xa48d5d4) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#15 0x08337af3 in zend_hash_apply (ht=0xa34b5a8, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#16 0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#17 0x08347bd0 in children_scan (pz=0xa0b1140) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#18 0x08337af3 in zend_hash_apply (ht=0xa0b1104, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#19 0x08347a61 in zobj_scan (pz=0xa0b10e8) at
/blade/install/daemon/php/Zend/zend_gc.c:401
#20 0x08347ba7 in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:416
#21 0x08347bd0 in children_scan (pz=0xa1316a8) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#22 0x08337af3 in zend_hash_apply (ht=0x9ecb34c, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#23 0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#24 0x08347bd0 in children_scan (pz=0xa131700) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#25 0x08337af3 in zend_hash_apply (ht=0xa230760, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#26 0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#27 0x08347bd0 in children_scan (pz=0x9ecb31c) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#28 0x08337af3 in zend_hash_apply (ht=0xa20d110, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#29 0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#30 0x08347bd0 in children_scan (pz=0xa15a368) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#31 0x08337af3 in zend_hash_apply (ht=0xa06989c, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#32 0x08347a61 in zobj_scan (pz=0xa04dc24) at
/blade/install/daemon/php/Zend/zend_gc.c:401
#33 0x08347ba7 in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:416
#34 0x08347bd0 in children_scan (pz=0xa079624) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#35 0x08337af3 in zend_hash_apply (ht=0xa29e8d0, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#36 0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#37 0x08347bd0 in children_scan (pz=0xa0ba6c0) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#38 0x08337af3 in zend_hash_apply (ht=0x9f32824, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#39 0x08347a61 in zobj_scan (pz=0xa0f1a9c) at
/blade/install/daemon/php/Zend/zend_gc.c:401
#40 0x08347ba7 in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:416
#41 0x08347bd0 in children_scan (pz=0x9f57d30) at
/blade/install/daemon/php/Zend/zend_gc.c:431
#42 0x08337af3 in zend_hash_apply (ht=0x9f57ccc, apply_func=0x8347bc0
<children_scan>)
    at /blade/install/daemon/php/Zend/zend_hash.c:673
#43 0x08347b8a in zval_scan (pz=0x8f3f409) at
/blade/install/daemon/php/Zend/zend_gc.c:421
#44 0x08347ff8 in gc_collect_cycles () at
/blade/install/daemon/php/Zend/zend_gc.c:448
#45 0x083482ae in gc_zval_possible_root (zv=0xa5ca4b4) at
/blade/install/daemon/php/Zend/zend_gc.c:172
#46 0x083a845d in ZEND_ASSIGN_DIM_SPEC_VAR_UNUSED_HANDLER
(execute_data=0x0) at /blade/install/daemon/php/Zend/zend_gc.h:183
#47 0x08354b7e in execute (op_array=0x8c390bc) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:104
#48 0x08321ab7 in zend_call_function (fci=0xbf9da0f0,
fci_cache=0xbf9da114)
    at /blade/install/daemon/php/Zend/zend_execute_API.c:936
#49 0x082696cf in zif_call_user_func (ht=1, return_value=0x91694e0,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at /blade/install/daemon/php/ext/standard/basic_functions.c:4720
#50 0x08376a49 in zend_do_fcall_common_helper_SPEC
(execute_data=0x8b6056c) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:313
#51 0x08354b7e in execute (op_array=0x91ce764) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:104
#52 0x0832c046 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /blade/install/daemon/php/Zend/zend.c:1188
#53 0x082da047 in php_execute_script (primary_file=0xbf9dc588) at
/blade/install/daemon/php/main/main.c:2157
#54 0x083ad0c4 in main (argc=4, argv=0xbf9dc6e4) at
/blade/install/daemon/php/sapi/cli/php_cli.c:1159
(gdb) ulimit -c unlimitedprint (char
*)(executor_globals.function_state_ptr->function)->common.function_name
Undefined command: "ulimit".  Try "help".


-- 
Edit bug report at http://bugs.php.net/?id=47880&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47880&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47880&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47880&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47880&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47880&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47880&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47880&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47880&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47880&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47880&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47880&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47880&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47880&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47880&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47880&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47880&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47880&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47880&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47880&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47880&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47880&r=mysqlcfg

Reply via email to