On Thu, Nov 27, 2003 at 04:47:52PM -0800, Stas Bekman wrote:
Found the build; rebuilt with debug. Make test skipped a *bunch* of stuff, but doesn't appear to have failed. Installed, stopped apache, started apache, same results; no backtrace in the webgui.log or either apache error log (master or vhost), and no core file anywhere. is this because my apache runs as nobody and the trees (/appl/apache/httpd and /appl/apache/WebGUI) are both owned by apache?
Most likely it's because you didn't tell the shell you start httpd from to allow core dumping:
http://perl.apache.org/docs/2.0/devel/debug/c.html#Getting_the_core_File_Dumped
Hey, he said you'd be in bed. :-)
Not really ;)
So I need to hand run an httpd? It's still going to switch to nobody, won't it? Or does it only do that if it daemonizes? Ok, I guess I'll go run one by hand on 8080 and talk to *it* and see if I can get it to dump.
You need to start it in a single server mode, in which case it doesn't switch to 'nobody'
cd /appl/apache/bin/ # or whereever your httpd is located ulimit -c unlimited httpd -DONE_PROCESS -DNO_DETACH <run the request> gdb /appl/apache/bin/httpd core # notice that the core may be in form core.45487 gdb> bt
or as Ged suggests you can start httpd under gdb:
gdb /appl/apache/bin/httpd gdb> run -DONE_PROCESS -DNO_DETACH <run the request> gdb> bt
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html