Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yaf_Loader::autolaod() 导致 Segmentation fault #100

Closed
liweing opened this issue May 26, 2014 · 6 comments
Closed

Yaf_Loader::autolaod() 导致 Segmentation fault #100

liweing opened this issue May 26, 2014 · 6 comments

Comments

@liweing
Copy link

liweing commented May 26, 2014

yaf autoload导致偶发的core,辛苦帮忙看看。

trace 信息如下:
#0 _zend_mm_alloc_int (heap=0x151a330, size=56) at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_alloc.c:1835
#1 0x00000000007cff7b in _zend_hash_add_or_update (ht=0x1888bc0, arKey=, nKeyLength=,

pData=0x7fff7ff38e90, nDataSize=<value optimized out>, pDest=0x0, flag=1) at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_hash.c:256

#2 0x00000000007c475d in zend_declare_property_ex (ce=0x1888b00, name=0x1833280 "_outputType", name_length=,

property=0x1829088, access_type=512, doc_comment=0x0, doc_comment_len=0) at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_API.c:3161

#3 0x00000000007ac615 in zend_do_declare_property (var_name=0x7fff7ff39160, value=0x7fff7ff391a0, access_type=512)

at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_compile.c:3668

#4 0x0000000000793152 in zendparse () at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_language_parser.c:4178
#5 0x000000000079e417 in compile_file (file_handle=0x7fff7ff3c730, type=2) at Zend/zend_language_scanner.l:364
#6 0x00007fc8b03e3f73 in apc_compile_cache_entry (key=..., h=0x7fff7ff3c730, type=2, t=, op_array=0x7fff7ff3b438,

cache_entry=0x7fff7ff3b440) at /home/data/rpmbuild/BUILD/APC-3.1.9/apc_main.c:409

#7 0x00007fc8b03e49b5 in my_compile_file (h=0x7fff7ff3c730, type=2) at /home/data/rpmbuild/BUILD/APC-3.1.9/apc_main.c:610
#8 0x00000000006008aa in phar_compile_file (file_handle=0x7fff7ff3c730, type=2) at /home/data/rpmbuild/BUILD/php-5.3.10/ext/phar/phar.c:3393
#9 0x00007fc8b01bfede in yaf_loader_import (

path=0x188abf0 "/home/work/data_lw/www/mi_com_i18n/application/components/MiGlobal/Base/Action.php", len=<value optimized out>, 
use_path=<value optimized out>) at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_loader.c:341

#10 0x00007fc8b01c0c7a in yaf_internal_autoload (file_name=, name_len=, directory=0x7fff7ff3d878)

at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_loader.c:466

#11 0x00007fc8b01c1240 in zim_yaf_loader_autoload (ht=, return_value=0x1832a80, return_value_ptr=,

this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_loader.c:799

#12 0x00000000007b7c5c in zend_call_function (fci=0x7fff7ff3da30, fci_cache=)

at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_execute_API.c:991

#13 0x00000000007d7f6f in zend_call_method (object_pp=0x181fa50, obj_ce=, fn_proxy=0x181fa48,

function_name=0x181fb78 "yaf_loader::autoload\a", function_name_len=<value optimized out>, retval_ptr_ptr=0x7fff7ff3db88, param_count=1, 
arg1=0x187d4f0, arg2=0x0) at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_interfaces.c:97

#14 0x000000000066d556 in zif_spl_autoload_call (ht=, return_value=,

return_value_ptr=<value optimized out>, this_ptr=<value optimized out>, return_value_used=<value optimized out>)
at /home/data/rpmbuild/BUILD/php-5.3.10/ext/spl/php_spl.c:405

#15 0x00000000007b7c5c in zend_call_function (fci=0x7fff7ff3dda0, fci_cache=)

at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_execute_API.c:991

#16 0x00000000007b826e in zend_lookup_class_ex (name=0x18851d8 "MiGlobal_Base_Action", name_length=20, use_autoload=1, ce=0x7fff7ff3deb8)

at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_execute_API.c:1126

#17 0x00000000007b8530 in zend_fetch_class (class_name=0x18851d8 "MiGlobal_Base_Action", class_name_len=20, fetch_type=4)

at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_execute_API.c:1568

#18 0x00000000007e5961 in ZEND_FETCH_CLASS_SPEC_CONST_HANDLER (execute_data=0x1909dc0)

at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_vm_execute.h:731

#19 0x00000000007e6d78 in execute (op_array=0x1884c30) at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_vm_execute.h:107
#20 0x00007fc8b01bff99 in yaf_loader_import (path=, len=, use_path=)

at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_loader.c:367

#21 0x00007fc8b01a9c83 in yaf_dispatcher_get_action (app_dir=0x1815d78 "/home/work/data_lw/www/mi_com_i18n/application", controller=0x1833250,

module=0x181f520 "Index", def_module=1, action=0x181f0d0 "index", len=5) at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_dispatcher.c:377

#22 0x00007fc8b01aa8aa in yaf_dispatcher_handle (dispatcher=0x1820368, request=0x1820718, response=0x181f2d8, view=0x187f848)

at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_dispatcher.c:654

#23 0x00007fc8b01ac493 in yaf_dispatcher_dispatch (dispatcher=) at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_dispatcher.c:908
#24 0x00007fc8b01a79ca in zim_yaf_application_run (ht=, return_value=0x181e1b0, return_value_ptr=,

this_ptr=0x181e0b8, return_value_used=<value optimized out>) at /home/data/rpmbuild/BUILD/yaf-2.2.9/yaf_application.c:472

#25 0x000000000080e660 in zend_do_fcall_common_helper_SPEC (execute_data=0x1909970)

at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_vm_execute.h:320

#26 0x00000000007e6d78 in execute (op_array=0x1811398) at /home/data/rpmbuild/BUILD/php-5.3.10/Zend/zend_vm_execute.h:107

---Type to continue, or q to quit---q

@laruence
Copy link
Owner

#1 0x00000000007cff7b in _zend_hash_add_or_update (ht=0x1888bc0, arKey=, nKeyLength=, 
pData=0x7fff7ff38e90, nDataSize=, pDest=0x0, flag=1) at /home/data/rpmbuild/BUILD/php-

这里面的arKey和nKeyLength具体的值是?

@liweing
Copy link
Author

liweing commented May 26, 2014

都是

@liweing
Copy link
Author

liweing commented May 26, 2014

value optimized out

@laruence
Copy link
Owner

我感觉这个应该是APC的问题, 和Yaf应该没啥关系

@liweing
Copy link
Author

liweing commented May 26, 2014

有啥建议吗?

@laruence
Copy link
Owner

没有..........如果一定要说: 别用apc了, 用opcache吧...

@liweing liweing closed this as completed Aug 6, 2014
defender-11 added a commit to defender-11/yaf that referenced this issue Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants