You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Karl M. Hegbloom" <ka...@microsharp.com> on 2001/03/09 18:45:10 UTC
Re: [Mason] Segmentation Fault
I've also been experiencing segmentation faults. I reported it,
yesterday, some, not fully detailed, (ie: no stack trace since no
debugging symbols...) to the mod_perl mailing list.
What I did was run "gdb", then used the "ps wauxf" output to get the
PID of an Apache child process. I used GDB's "attach PID" to debug
that process, and then "cont" to let it run, since attaching stops
it.
I then hit the page over and over (whacked it with a netscape) until
that process segv'd, and used "where" to find out where it had
crashed. It listed an address, but ?? rather than a subroutine name,
since everything has been stripped.
I started up "gtop", and got a memory map of that process, then
looked to see what library the crash address resides in. It was in
"Cookie.so", which is part of Apache::Cookie. I do not know what
routine it's in; I've not built that with "-ggdb" yet to try and
track it down. Perhaps I'll take some time for that next week if I
don't hear anything re a cure / patch before then.
James? Please follow the similar process, and see if you can
determine what .so library the segv is occuring in. Will you also
please report to both lists?
--
mailto: (Karl M. Hegbloom) karlheg@microsharp.com
http://www.microsharp.com
phone://USA/WA/360-260-2066
Re: [Mason] Segmentation Fault
Posted by "Karl M. Hegbloom" <ka...@microsharp.com>.
I found the solution. I had been using "Apache::Cookie->fetch", both
from an authen handler and from a request handler. I switched to
using "Apache::Cookie->parse" instead, and the segv went away.
The Apache::Cookie monster ought to scare that bug out of the code
though; no matter what, it should not segv.
--
mailto: (Karl M. Hegbloom) karlheg@microsharp.com
http://www.microsharp.com
phone://USA/WA/360-260-2066