Skip to content

PHP7+Nginx+Yaf报Segmentation fault (core dumped)错误 #220

Closed
@karsonzhang

Description

@karsonzhang

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions