机器情况
PHP 5.6.24 + swoole 2.0.7 --enable-async-redis --enable-coroutine
gcc -v
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
uname -a
Linux c787bba3a50d 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
错误描述
该问题只在php5.6+swoole2.0 发生,php5.6+swoole1.9.9 无问题
tcp和http接口被调用时 WORKER Error {"worker_id":0,"worker_pid":32264,"exit_code":0}
使用gdb
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffe8b579000
Core was generated by `xx-Worker '.
Program terminated with signal 11, Segmentation fault.
#0 sw_coro_create (fci_cache=0x0, argv=0x7ffe8b5518a0, argc=3, retval=0x7ffe8b5518c0,
post_callback=0x0, params=0x0) at /root/build/swoole-src-2.0.7/swoole_coroutine.c:66
66 zend_op_array *op_array = (zend_op_array *)fci_cache->function_handler;