Changes between Version 4 and Version 5 of HowToReportABug/GenerateBacktrace


Ignore:
Timestamp:
2012-06-12T12:45:43Z (3 years ago)
Author:
richo
Comment:

Update dump_bt invocation for current version of .gdbinit

Legend:

Unmodified
Added
Removed
Modified
  • HowToReportABug/GenerateBacktrace

    v4 v5  
    77  * config xcache.coredump_directory in /etc/php.ini, For apache + mod_php, you have [http://httpd.apache.org/docs/2.0/mod/mpm_common.html#coredumpdirectory CoreDumpDirectory] in apache.conf
    88  * Ensure that the xcache.coredump_directory has write permissions for the user who's running PHP
    9   * Remove any limits you may have on core dump size from your shell: 
     9  * Remove any limits you may have on core dump size from your shell:
    1010    * tcsh: unlimit coredumpsize
    1111    * bash/sh: ulimit -c unlimited
    1212  * Cause PHP to crash:
    1313    * PHP CGI: Simply run php with the script that crashes it
    14     * PHP FastCGI: Simply setup normal webserver-fastcgi configuration, and access the script that crashes PHP 
     14    * PHP FastCGI: Simply setup normal webserver-fastcgi configuration, and access the script that crashes PHP
    1515    * PHP As Apache Module: Run httpd -X, and access the script that crashes PHP
    1616== Once you have the core file ==
     
    2929{{{
    3030#!ShellExample
    31 $ gdb /usr/local/bin/php-cgi-fcgi /tmp/core 
     31$ gdb /usr/local/bin/php-cgi-fcgi /tmp/core
    3232........
    33 (gdb) bt 
    34 (gdb) source ~/src/php5/.gdbinit 
    35 (gdb) dump_bt
     33(gdb) bt
     34(gdb) source ~/src/php5/.gdbinit
     35(gdb) dump_bt executor_globals.current_execute_data
    3636}}}
    3737
     
    4040{{{
    4141#!ShellExample
    42 $ gdb /usr/local/apache/sbin/httpd /tmp/core 
     42$ gdb /usr/local/apache/sbin/httpd /tmp/core
    4343........
    44 (gdb) bt 
     44(gdb) bt
    4545(gdb) source ~/src/php5/.gdbinit
    46 (gdb) dump_bt
     46(gdb) dump_bt executor_globals.current_execute_data
    4747}}}
    4848