Generating a gdb backtrace

Noticing PHP crashes

There's no absolute way to know that PHP is crashing, but there may be signs. Typically, if you access a page that is always supposed to generate output (has a leading HTML block, for example), and suddenly get "Document contains no data" from your browser, it may mean that PHP crashes somewhere along the execution of the script. Another way to tell that PHP is crashing is by looking at the Apache error logs, and looking for SEGV (Apache 1.2) or Segmentation Fault (Apache 1.3).

Important!

To get a backtrace with correct information you must have PHP configured with --enable-debug!

If you don't have a core file yet:

Once you have the core file:

If you can't get a core file:

This should generate a backtrace, that you should submit in the bug report, along with any other details you can give us about your setup, and offending script.