79434751

Date: 2025-02-12 23:53:46
Score: 0.5
Natty:
Report link

I wasn't able to get a coredump from the segfault directly, but I did eventually found a way to get a coredump.

I found this answer to a previous question, https://stackoverflow.com/a/18400/555303, from @Nathan Fellman, which I ran the httpd (single thread mode) under GDB, and then while in GDB, I "attached " to the PID of the running httpd.

I then sent a request, and the GDB showed that it had encountered segfault.

In GDB, I entered generate-core-file and it asked me to enter the name of a file, which I did and it created a corefile with that name.

I then started GDB gdb /apps/httpd2.4/bin/httpd fooo (where fooo was the corefile, and was amazed that it worked!!

Finally, in GDB I entered bt full to get full backtrace and the last (first in the display) showed it was trying some certificate call. I then GUESSED that I had to SSL-enable the Apache, which was weird because I wasn't using https, but I did that anyway and then, even more amazingly, the APACHE started working after that, with NO SEGFAULT!!

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Nathan
  • Self-answer (0.5):
Posted by: user555303