-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
PHP7+Nginx+Yaf报Segmentation fault (core dumped)错误 #220
Comments
你把整个backtrace贴出来(不是zbacktrace) |
(gdb) source ~/packages/php-7.0.0/.gdbinit |
it should be fixed, please have a check. |
@laruence 我先试试,谢谢! |
@laruence 不会产生Segmentation fault这个问题了,fpm下也不会报错了,但现在不能自动渲染模板了,Yaf_Dispatcher::getInstance()->autoRender(TRUE);试了不行,protected $yafAutoRender = 1;同样不行。testAction没有加return FALSE; |
你再测试下, 我刚刚提交了个小修复 |
@laruence 测试OK,谢谢! |
Cli下报(core dumped)错误,fpm下直接502错误
_request->getRequestUri(),"\n"; //return FALSE; //加上这行不会产生错误 } ``` } root@ubuntu14:/mnt/hgfs/project/sg-area# php /mnt/hgfs/project/sg-area/cli.php request_uri=/index/test request uri:index/test Segmentation fault (core dumped) root@ubuntu14:/mnt/hgfs/project/sg-area# gdb php core GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from php...done. [New LWP 2457] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `php /mnt/hgfs/project/sg-area/cli.php request_uri=/index/test'. Program terminated with signal SIGSEGV, Segmentation fault. #0 zend_std_read_property (object=, member=0x7ffcc84c39d0, type=3, cache_slot=, rv=0x0) at /root/packages/php-7.0.0/Zend/zend_object_handlers.c:517 517 zval _zend_std_read_property(zval *object, zval *member, int type, void *_cache_slot, zval _rv) /_ {{{ */ (gdb) source ~/packages/php-7.0.0/.gdbinit (gdb) zbacktrace [0x7fbb8fc141e0] Yaf_Dispatcher->dispatch(object[0x7fbb8fc14240]) [internal function] [0x7fbb8fc14030](main) /mnt/hgfs/project/sg-area/cli.php:11 (gdb)The text was updated successfully, but these errors were encountered: