[lug] Apache segfault

Jeff Schroeder jeff at neobox.net
Wed Aug 25 15:18:45 MDT 2004

Hey all--

I've been having issues with Apache+PHP crashing on certain pages of a 
web app I wrote.  The Apache error log reports:

[notice] child pid 14601 exit signal Segmentation fault (11)
[notice] child pid 14602 exit signal Segmentation fault (11)

I suspect something is amiss with my compile of Apache, PHP, mod_perl, 
mod_ssl, and all the other goodies thrown in the mix.  However, I can't 
get a core file to run through GDB, so I can't figure out where it's 
dying.  Note that I *can* run Apache's main process (httpd) in GDB, but 
of course it spawns all of the "listeners" for the web connections, and 
it's those spawned processes that are dying.

The bottom line question is: how do I force the creation of a core file?  
I did a search in some likely places but didn't find anything, so I 
don't think Apache is dumping core now.  Is there some shell setting 
(I'm using bash) or environment variable I need to set to tell the 
system to drop a core file into some specific directory?


More information about the LUG mailing list