Howto get Apache stackbacktrace

Recently I faced with problem: Embperl started give Segmentation fault after upgrade to Fedora Core 5. To resolve this problem Gerald Richard – the author of Embperl asked me send him Apache stackbacktrace. I didn’t do this before. I made a search and found a simple receipt howto get the stackbacktrace.

  1. start gdb:
    gdb httpd
  2. we have to specify config file for Apache and define a set single-process mode (option -X):
    set args -f /path/to/your/httpd.conf -X
  3. start Apache process:
    r
  4. make a request via web browser
  5. after display a message about Segmentation fault in the gdb console type a command BT:
    BT

Now you can analyse given backtrace or send it to the application author.

Leave a Reply

Your email address will not be published. Required fields are marked *