Re: first time debugging apache/mod_perl Seg fault

2009-07-16 Thread Alan McKay
>>> http://modperlbook.org/html/21-5-8-Noninteractive-Perl-Debugging-Under-mod_perl.html >> >> OK, I'm doing this, but it seems that the file it produces only ever >> gets up to 7.3M and that's it. OK, the reason the file only ever got to 7.3M was indeed because apache would of course fork a bunch

Re: first time debugging apache/mod_perl Seg fault

2009-07-15 Thread Perrin Harkins
On Tue, Jul 14, 2009 at 3:29 PM, Alan McKay wrote: >> http://modperlbook.org/html/21-5-8-Noninteractive-Perl-Debugging-Under-mod_perl.html > > OK, I'm doing this, but it seems that the file it produces only ever > gets up to 7.3M and that's it. > > I'm guessing it is because when httpd forks off al

Re: first time debugging apache/mod_perl Seg fault

2009-07-15 Thread Alan McKay
> Are you saying that you can't reproduce the crash by running the same > request again then? The crash is very spurious - no - it cannot be reproduced every time. Which is why getting down into the gdb level would seem to be the best way about this problem -- “Don't eat anything you've ever s

Re: first time debugging apache/mod_perl Seg fault

2009-07-15 Thread Perrin Harkins
On Wed, Jul 15, 2009 at 12:31 PM, Alan McKay wrote: > Nope, I send a snippet of the log it produces to my front-end guy and > he told me that this would not really tell us anything more than we > already know. > > Too high level. Are you saying that you can't reproduce the crash by running the sam

Re: first time debugging apache/mod_perl Seg fault

2009-07-15 Thread Alan McKay
Nope, I send a snippet of the log it produces to my front-end guy and he told me that this would not really tell us anything more than we already know. Too high level. Off to do more googling - unless anyone as any further suggestions. I have a number of outstanding questions now in this thread

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Alan McKay
On Tue, Jul 14, 2009 at 4:56 PM, Perrin Harkins wrote: > You might want to try mod_log_forensic to see what the request was > that crashed it. cool! Will look into that tomorrow (at home now) thanks! -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author o

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Perrin Harkins
Alan, You might want to try mod_log_forensic to see what the request was that crashed it. - Perrin On Tue, Jul 14, 2009 at 3:29 PM, Alan McKay wrote: >> http://modperlbook.org/html/21-5-8-Noninteractive-Perl-Debugging-Under-mod_perl.html > > OK, I'm doing this, but it seems that the file it prod

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Alan McKay
> http://modperlbook.org/html/21-5-8-Noninteractive-Perl-Debugging-Under-mod_perl.html OK, I'm doing this, but it seems that the file it produces only ever gets up to 7.3M and that's it. I'm guessing it is because when httpd forks off all the children, they do not record to this file anymore. So

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Alan McKay
> I have had to debug these things before, and they're very painful!  I > usually end up commenting out half the code at a time to narrow things > down, and it's never what I expect.  Usually it's a module with a > compiled library, i.e. not a pure-Perl module. Well, the really crummy thing is tha

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Scott Gifford
Alan McKay writes: > Here is what I am doing based on the mod-perl debugging page I > referred to in my first email. I basically load the core dump in > gdb, and then alternately do "up" and "curinfo" on each line shown. > Sometimes I end up with what I got here where I get to a certain point >

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Alan McKay
OK, not much response from the list :-( More googling and I'm trying this now : http://modperlbook.org/html/21-5-8-Noninteractive-Perl-Debugging-Under-mod_perl.html Will keep y'all posted ... -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In De

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Alan McKay
Here is what I am doing based on the mod-perl debugging page I referred to in my first email. I basically load the core dump in gdb, and then alternately do "up" and "curinfo" on each line shown. Sometimes I end up with what I got here where I get to a certain point and it says "cannot access mem

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Alan McKay
Unfortunately it seems we are already up to the latest and greatest : Bundle Bundle::DBI (T/TI/TIMB/DBI-1.609.tar.gz) Module DBI (T/TI/TIMB/DBI-1.609.tar.gz) Any further help on slugging through this? On Mon, Jul 13, 2009 at 8:22 PM, Alan McKay wrote: > Oh, the

Re: first time debugging apache/mod_perl Seg fault

2009-07-13 Thread Alan McKay
Oh, the symptoms sound very, very similar to mine! I'll try upgrading the module - thanks! -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"

Re: first time debugging apache/mod_perl Seg fault

2009-07-13 Thread Bryan
Alan, We fought a tiny issue last week that effected both worker (threaded) and pre- fork (non-threaded) machines that used DBI for mysql connections. Symptom were segmentation faults at seemingly random times over the past few months, especially in the early morning hours on some slow weekends,

Re: first time debugging apache/mod_perl Seg fault

2009-07-13 Thread Alan McKay
> You're threaded. Thanks > What version of Apache and mod_perl are you running here? httpd-2.2.10 mod_perl-2.0.4 > What configuration options are you using to build apache? I didn't build it, and the guy who did is not in today, but we seem to still have the config.log on-hand and it says sim

Re: first time debugging apache/mod_perl Seg fault

2009-07-13 Thread Fred Moyer
On Mon, Jul 13, 2009 at 12:15 PM, Alan McKay wrote: > Hey folks, > > I'm running CentOS 5.2 with a custom built apache not from Yum. > > I am following instructions here > http://perl.apache.org/docs/2.0/devel/debug/c.html#Getting_the_core_File_Dumped > > and here : > http://perl.apache.org/docs/2.

first time debugging apache/mod_perl Seg fault

2009-07-13 Thread Alan McKay
Hey folks, I'm running CentOS 5.2 with a custom built apache not from Yum. I am following instructions here http://perl.apache.org/docs/2.0/devel/debug/c.html#Getting_the_core_File_Dumped and here : http://perl.apache.org/docs/2.0/devel/debug/c.html#Analyzing_Dumped_Core_Files I have mod_perl b