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部分代码,现在遇到一个问题,希望鸟哥有时间帮忙看一下。 #344

Closed
persiliao opened this issue Feb 23, 2017 · 2 comments

Comments

@persiliao
Copy link

persiliao commented Feb 23, 2017

  • thread make map paramters of Yaf_Route_Regex::__construct optional #1: tid = 0x0000, 0x0000000108fdd110 php`zend_string_release(s=0x00000000ffffffff) + 16 at zend_string.h:270, stop reason = signal SIGSTOP
    • frame #0: 0x0000000108fdd110 phpzend_string_release(s=0x00000000ffffffff) + 16 at zend_string.h:270 frame #1: 0x0000000108fdce3d phpdestroy_op_array(op_array=0x0000000109605b80) + 333 at zend_opcode.c:389
      frame Feature in controller class about exceptions #2: 0x0000000108fdd209 phpzend_function_dtor(zv=0x000000010966d0a0) + 121 at zend_opcode.c:122 frame #3: 0x000000010900ce79 phpzend_hash_destroy(ht=0x0000000109605700) + 169 at zend_hash.c:1270
      frame Cannot initialize Yaf\\Route\\Static #4: 0x0000000108fddc49 phpdestroy_zend_class(zv=0x00007fff56ec4bd8) + 665 at zend_opcode.c:287 frame #5: 0x000000010900c3e4 php_zend_hash_del_el_ex(ht=0x00007fb93a402a90, idx=145, p=0x00007fb93b802820, prev=0x0000000000000000) + 596 at zend_hash.c:1032
      frame Can Yaf_Dispatcher::setErrorHandler supports closure? #6: 0x000000010900bfe2 php_zend_hash_del_el(ht=0x00007fb93a402a90, idx=145, p=0x00007fb93b802820) + 210 at zend_hash.c:1055 frame #7: 0x000000010900e465 phpzend_hash_reverse_apply(ht=0x00007fb93a402a90, apply_func=(phpclean_non_persistent_class at zend_execute_API.c:118)) + 261 at zend_hash.c:1637 frame #8: 0x0000000108fd5845 phpshutdown_executor + 2021 at zend_execute_API.c:369
      frame yaf_route_simple_assemble complete #9: 0x0000000108ff2599 phpzend_deactivate + 121 at zend.c:999 frame #10: 0x0000000108f45a01 phpphp_request_shutdown(dummy=0x0000000000000000) + 865 at main.c:1873
      frame yaf_route_simple_assemble complete #11: 0x00000001091132f6 phpdo_cli(argc=2, argv=0x00007fff56ec6788) + 6486 at php_cli.c:1157 frame #12: 0x00000001091116c6 phpmain(argc=2, argv=0x00007fff56ec6788) + 1686 at php_cli.c:1388
      frame yaf_route_simple_assemble && yaf_route_supervar_assemble complete #13: 0x00007fffc71a1255 libdyld.dylibstart + 1 frame #14: 0x00007fffc71a1255 libdyld.dylibstart + 1

这是coredump bt 出来的结果。通过调试发现运行在
zend_execute_API.c:369 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class);
->_zend_hash_del_el(ht, HT_IDX_TO_HASH(idx), p);
最后在 zend_hash.c:1032 EG(class_table) ht->pDestructor(&tmp) 这里出错了。暂时没找到解决方法。如果需要复现代码,我可以立即提供。

@persiliao
Copy link
Author

已经解决了。

@laruence
Copy link
Owner

cool!

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