ID:               47880
 Updated by:       dmi...@php.net
 Reported By:      patric at zap dot lu
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Debian Lenny
 PHP Version:      5.3.0RC1
-Assigned To:      
+Assigned To:      dmitry
 New Comment:

Sorry but I can't understand what's going on, while I can't reproduce
it myself. The best case if you can provide a script which crashes PHP
running from command line (it may be a big code base but without
dependencies on external resources like databases and etc)


Previous Comments:
------------------------------------------------------------------------

[2009-04-03 08:43:24] patric at zap dot lu

Well have some other stackstrace here, maybe it helps locating the
problem:

Program terminated with signal 11, Segmentation fault.
[New process 23343]
#0  _zval_ptr_dtor (zval_ptr=0x110eec70) at
/blade/install/daemon/php/Zend/zend.h:392
392             return --pz->refcount__gc;
(gdb) bt
#0  _zval_ptr_dtor (zval_ptr=0x110eec70) at
/blade/install/daemon/php/Zend/zend.h:392
392             return --pz->refcount__gc;
(gdb) bt
#0  _zval_ptr_dtor (zval_ptr=0x110eec70) at
/blade/install/daemon/php/Zend/zend.h:392
#1  0x0832ffa4 in zend_fcall_info_args_clear (fci=0xbfea649c,
free_mem=1) at /blade/install/daemon/php/Zend/zend_API.c:2860
#2  0x0826a82f in zif_call_user_func_array (ht=2,
return_value=0x110ee45c, return_value_ptr=0x0, this_ptr=0x0,
return_value_used=1)
    at /blade/install/daemon/php/ext/standard/basic_functions.c:4749
#3  0x08377cd9 in zend_do_fcall_common_helper_SPEC
(execute_data=0x8c71cf8) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:313
#4  0x0835552e in execute (op_array=0x927f07c) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:104
#5  0x083226b7 in zend_call_function (fci=0xbfea66b8,
fci_cache=0xbfea66dc)
    at /blade/install/daemon/php/Zend/zend_execute_API.c:936
#6  0x08342300 in zend_call_method (object_pp=0xbfea677c,
obj_ce=0x9cfb3a4, fn_proxy=0x9cfb4ac, function_name=0x8664063 "__call",

    function_name_len=6, retval_ptr_ptr=0xbfea6750, param_count=2,
arg1=0x110d0374, arg2=0x110e42cc)
    at /blade/install/daemon/php/Zend/zend_interfaces.c:97
#7  0x0834ba7a in zend_std_call_user_call (ht=1,
return_value=0x110e5874, return_value_ptr=0x0, this_ptr=0x110af270, 
    return_value_used=0) at
/blade/install/daemon/php/Zend/zend_object_handlers.c:681
#8  0x08377cd9 in zend_do_fcall_common_helper_SPEC
(execute_data=0x8c71bf8) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:313
#9  0x0835552e in execute (op_array=0x8c5dbe4) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:104
#10 0x083226b7 in zend_call_function (fci=0xbfea692c,
fci_cache=0xbfea6950)
    at /blade/install/daemon/php/Zend/zend_execute_API.c:936
#11 0x0826a7d7 in zif_call_user_func_array (ht=2,
return_value=0x110c9080, return_value_ptr=0x0, this_ptr=0x0,
return_value_used=1)
    at /blade/install/daemon/php/ext/standard/basic_functions.c:4745
#12 0x08377cd9 in zend_do_fcall_common_helper_SPEC
(execute_data=0x8c70f24) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:313
#13 0x0835552e in execute (op_array=0x927f07c) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:104
#14 0x083226b7 in zend_call_function (fci=0xbfea6b48,
fci_cache=0xbfea6b6c)
    at /blade/install/daemon/php/Zend/zend_execute_API.c:936
#15 0x08342300 in zend_call_method (object_pp=0xbfea6c0c,
obj_ce=0x9c211f8, fn_proxy=0x9c21300, function_name=0x8664063 "__call",

    function_name_len=6, retval_ptr_ptr=0xbfea6be0, param_count=2,
arg1=0x110d1adc, arg2=0x110e5f44)
    at /blade/install/daemon/php/Zend/zend_interfaces.c:97
#16 0x0834ba7a in zend_std_call_user_call (ht=1,
return_value=0x11066780, return_value_ptr=0x0, this_ptr=0x1106f8f4, 
    return_value_used=0) at
/blade/install/daemon/php/Zend/zend_object_handlers.c:681
#17 0x08377cd9 in zend_do_fcall_common_helper_SPEC
(execute_data=0x8c70b7c) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:313
#18 0x0835552e in execute (op_array=0x8c5dbe4) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:104
#19 0x083226b7 in zend_call_function (fci=0xbfea6dc0,
fci_cache=0xbfea6de4)
    at /blade/install/daemon/php/Zend/zend_execute_API.c:936
#20 0x0826a55f in zif_call_user_func (ht=1, return_value=0x9287cf4,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at /blade/install/daemon/php/ext/standard/basic_functions.c:4720
#21 0x08377cd9 in zend_do_fcall_common_helper_SPEC
(execute_data=0x8c6f56c) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:313
#22 0x0835552e in execute (op_array=0x92ce48c) at
/blade/install/daemon/php/Zend/zend_vm_execute.h:104
#23 0x0832cbf6 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /blade/install/daemon/php/Zend/zend.c:1188
#24 0x082dae57 in php_execute_script (primary_file=0xbfea9258) at
/blade/install/daemon/php/main/main.c:2157
#25 0x083ad5b4 in main (argc=4, argv=0xbfea93b4) at
/blade/install/daemon/php/sapi/cli/php_cli.c:1159

------------------------------------------------------------------------

[2009-04-02 17:50:09] patric at zap dot lu

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 this bug report at http://bugs.php.net/?id=47880&edit=1

Reply via email to