1. 程式人生 > >GDB除錯php擴充套件錯誤(Segmentation fault (core dumped))

GDB除錯php擴充套件錯誤(Segmentation fault (core dumped))

(gdb) print (char *)(executor_globals.function_state_ptr->function)->common.function_name

(gdb) print (char *)executor_globals.active_op_array->filename
$3 = 0x9c7ccc "/home/down.php"

print executor_globals.current_execute_data.opline->lineno
$5 = 2

{gdb-path}/gdb /usr/local/bin/apache [apache子プロセスID]
(gdb) continue
    --- ここまで実行したら、ブラウザで問題の発生している畫面を表示します
Program received signal SIGSEGV, Segmentation fault.
0x21d94c2d in zif_down_method (ht=0, return_value=0x81010c, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at Down.cc:32

http://d.hatena.ne.jp/JiaLu/20120113/1330396897