[mod_python] Mod_Python 3 / Apache 2 / RedHat 7.3 / Python 2.2 = Seg fault :(

Martin Pool mbp at samba.org
Fri Sep 13 19:47:21 EST 2002


On 13 Sep 2002, Jeff Davis <list-mod_python at empires.org> wrote:
> > Try running apache under gdb?  Something like this:
> >
> >   # gdb /usr/sbin/apache2
> >   [blah blah]
> >   gdb> run -X
> >
> > Then try to access a page.  Apache should stop in gdb, and it might
> > tell you where the problem is.
> 
> I tried both gdb and valgrind and supplied the -X argument for each. When I 
> hit a page, all it said was "Segmentation Fault" (for valgrind, and gdb was 
> similar: "Program received signal SIGSEGV, Segmentation fault."). GDB also 
> said "0x402611bb in strlen () from /lib/libc.so.6" after the SIGSEGV, which 
> might be helpful. 

OK, good.  Now once you get to that point, type 

  gdb> backtrace full

to get some info on where the call to strlen() that caused trouble
came from.  

-- 
Martin 



More information about the Mod_python mailing list