[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Out of Memory with modperl
From: Bavo De Ridder <bavo () ace ! ulyssis ! student ! kuleuven ! ac ! be>
Date: 1998-09-01 21:07:08
[Download RAW message or body]
Hello,
I encountered a out of memory message in my error_log:
Out of memory!
[Tue Sep 1 22:48:06 1998] [notice] httpd: child pid 2844 exit signal
Segmentation fault (11)
I could trace the error to the following simple piece of code:
--- cut here ---
package Apache::Sample;
use Apache;
use Apache::Constants ':common';
use LWP::UserAgent;
use HTTP::Request;
sub handler
{
my $r = shift;
my $ua = new LWP::UserAgent;
my $req = new HTTP::Request('GET',
'http://127.0.0.1/template.html');
$r->content_type('text/plain');
$r->send_http_header;
$r->print( "Hello World!" );
return OK;
}
1;
--- cut here ---
Removing "use LWP::UserAgent" and running the request again (with the
lines using LWP::UserAgent commented out) gives no problem! Running the
code in a separate CGI perl script also doesn't give a problem...
Can anyone shed some light on this problem?
I am running Apache-1.3.1 with mod_perl 1.15
Bavo De Ridder
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic