Debugging an apache segfault
Use '%' for wildcards and quotes for "exact phrases"
|Debugging an apache segfault||Last Modified: Aug 8, 2017, 12:32 am|
|Debugging Apache segfaults can be tricky, in an attempt to find out which module may be causing it.|
You might see something like this in the /var/log/httpd/error_log:
[Mon Aug 07 23:56:18.309463 2017] [core:notice] [pid 17630] AH00052: child pid 18187 exit signal Aborted (6)
- You can debug it using the gdb option, like this:
service httpd stopand quickly (before the dataskq starts it up again), run:
run -X -d /etc/httpdwhich should let you trigger one request in the foreground, so do it quickly, before any other connections arrive to your server.
- Hopefully this has triggered your segfault, in which case it might show:
Thread 1 "httpd" received signal SIGABRT, Aborted.along with other info about exactly where it crashed.
- To see more details about the function tree used to get to that point, call a backtrace like this:
bt fullwhich should give you the list of functions called, where it started lower down, and ended at the top of the output. Somewhere in there might show you which module triggered it.
- To quit gdb, just run:
2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB
T8N 1P7 Canada. Mon-Fri 9AM-5PM MST