linux - Analyzing Apache/PHP Core Dump -
i have been getting occasional seg fault apache enabled core dump on servers try figure out going on. last night got 1 , trying examine core dump find out what's going on. it's php process googled how examine these php. downloaded .gdbinit file php 5.2 , ran following on dump file:
$ gdb apache2 dumpfile [reading/loading symbols] (gdb) bt [...backtrace...] (gdb) source ~/.gdbinit (gdb) dump_bt executor_globals.current_execute_data attempt extract component of value not structure.
i should getting backtrace after dump_bt executor_globals.current_execute_data
php script caused seg fault, keep getting attempt extract component of value not structure.
instead.
at first time, got same problem you. run again bt , dump_bt commands , works:
(gdb) dump_bt executor_globals.current_execute_data attempt extract component of value not structure. (gdb) bt #0 0x00002af8f874a5da in appendimages () /usr/lib64/libmagick.so.10 #1 0x00002af8f84586ce in magickappendimages () /usr/lib64/libwand.so.10 #2 0x00002af8f81a3ad8 in zim_imagick_appendimages (ht=<value optimized out>, return_value=0x2af8f9ded108, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>, return_value_used=<value optimized out>) @ /var/tmp/imagick/imagick_class.c:8790 (gdb) dump_bt executor_globals.current_execute_data [0xe8609940] appendimages() /var/www/html/xx/yy.php:803 [0xe8605070] gencode() /var/www/html/xx/zz.php:127
Comments
Post a Comment