You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matt Sergeant <ma...@sergeant.org> on 2000/06/02 14:28:43 UTC
Segfault in second time through sub request...
Running under httpd -X, first time through my subrequest goes fine, second
time through it segfaults. Here's the non-debugging bt:
Program received signal SIGSEGV, Segmentation fault.
0x8080757 in ap_copy_table ()
(gdb) bt
#0 0x8080757 in ap_copy_table ()
#1 0x80937ef in ap_set_sub_req_protocol ()
#2 0x8098156 in ap_sub_req_lookup_file ()
#3 0x2af188 in XS_Apache_lookup_file ()
from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/Apache.so
#4 0x5f6b6f6f in ?? ()
Cannot access memory at address 0x62636f64
Probably not a huge amount of help, and it smacks of a bug in Apache,
rather than mod_perl. Still a PITA for me ;-)
Config: Apache 1.3.12, Perl 5.00503, mod_perl 1.24. Non-DSO.
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org
Re: Segfault in second time through sub request...
Posted by Matt Sergeant <ma...@sergeant.org>.
Replying to my own post... I found the problem - I was caching a
subrequest in the child's memory and trying to call lookup_* again with
that cached request. Doesn't work for fairly obvious reasons.
On Fri, 2 Jun 2000, Matt Sergeant wrote:
> Running under httpd -X, first time through my subrequest goes fine, second
> time through it segfaults. Here's the non-debugging bt:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x8080757 in ap_copy_table ()
> (gdb) bt
> #0 0x8080757 in ap_copy_table ()
> #1 0x80937ef in ap_set_sub_req_protocol ()
> #2 0x8098156 in ap_sub_req_lookup_file ()
> #3 0x2af188 in XS_Apache_lookup_file ()
> from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/Apache.so
> #4 0x5f6b6f6f in ?? ()
> Cannot access memory at address 0x62636f64
>
> Probably not a huge amount of help, and it smacks of a bug in Apache,
> rather than mod_perl. Still a PITA for me ;-)
>
> Config: Apache 1.3.12, Perl 5.00503, mod_perl 1.24. Non-DSO.
>
>
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org