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.
- start gdb:
gdb httpd
- 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
- start Apache process:
r
- make a request via web browser
- 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.