perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Harrison" <jus...@astyrrian.com>
Subject RE: Segmentation faults...
Date Mon, 11 Aug 2003 08:40:22 GMT
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:richter@ecos.de] 
> Sent: August 10, 2003 2:33 PM
> To: Justin Harrison; embperl@perl.apache.org
> 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: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message