Thanks a lot Gerald! I'll get that info to you as soon as I can solidly repro a segfault, so I do not have to sit around on a production web server waiting for it with a single child :-)
Justin > -----Original Message----- > From: Gerald Richter [mailto:[EMAIL PROTECTED] > Sent: August 10, 2003 2:33 PM > To: Justin Harrison; [EMAIL PROTECTED] > Subject: Re: Segmentation faults... > > > > > What is the best way to debug segmentation faults? Randomly > all of my > > apache children are segfaulting. I am fairly certain this is due to > > some Embperl code being ran, but I don't know where to > look, or how to > > start looking... > > > > First of all compile Embperl with > > perl Makefile.PL debug > make > make install > > this will cause the compile to include debug symbols. Then > you can start your Apache under gdb: > > gdb /path/to/httpd > > next you need to set the comandline argument for apache, use > -X to get a singel process only: > > set args -X -f /path /to/httpd.conf > > enter a "r" to start APache, now do your requests and when it > segfaults enter "BT" this will print out a stack backtrace, > send it to me and we will see what's gone wrong > > Gerald > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]