Segmentation fault php debug


调试个脚本程序,总是报这个,烦死我了
echo core > /proc/sys/kernel/core_pattern
ulimit -c unlimited

继续执行脚本
Segmentation fault (core dumped)

找到core文件
gdb /usr/local/php/bin/php core.1725

Program terminated with signal 11, Segmentation fault.
#0 0x000000000070bcd2 in gc_zval_possible_root (zv=0xfb0cec0) at /root/install/php-5.3.8/Zend/zend_gc.c:143
143 GC_ZOBJ_CHECK_POSSIBLE_ROOT(zv);

大体知道怎么回事。。

  1. No comments yet.
(will not be published)

  1. No trackbacks yet.