Changes between Version 4 and Version 5 of HowToReportABug/GenerateBacktrace
- Timestamp:
- 2012-06-12T14:45:43+02:00 (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToReportABug/GenerateBacktrace
v4 v5 7 7 * 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 8 8 * 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: 10 10 * tcsh: unlimit coredumpsize 11 11 * bash/sh: ulimit -c unlimited 12 12 * Cause PHP to crash: 13 13 * 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 15 15 * PHP As Apache Module: Run httpd -X, and access the script that crashes PHP 16 16 == Once you have the core file == … … 29 29 {{{ 30 30 #!ShellExample 31 $ gdb /usr/local/bin/php-cgi-fcgi /tmp/core 31 $ gdb /usr/local/bin/php-cgi-fcgi /tmp/core 32 32 ........ 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 36 36 }}} 37 37 … … 40 40 {{{ 41 41 #!ShellExample 42 $ gdb /usr/local/apache/sbin/httpd /tmp/core 42 $ gdb /usr/local/apache/sbin/httpd /tmp/core 43 43 ........ 44 (gdb) bt 44 (gdb) bt 45 45 (gdb) source ~/src/php5/.gdbinit 46 (gdb) dump_bt 46 (gdb) dump_bt executor_globals.current_execute_data 47 47 }}} 48 48

