segmentation fault in HTTP
psy@virginia.edu
Wed, 3 Jan 1996 14:09:24 -0500
Specs: Linux 1.2.0
Perl 5.001m
libwww-perl 5b6
I'm getting a sementation fault while executing
the following code:
$Url = 'http://some.url.goes.here/';
$hUA = new LWP::UserAgent;
$hUrl = new URI::URL($Url);
$hRequest = new HTTP::Request('GET', $hUrl);
$hResponse = $hUA->request($hRequest, undef, undef);
$hStr = $hResponse->asString;
$hHT = HTML::Parse::parse_html($hStr);
The segmentation fault appears to occur somewhere
in the 'request' call. The trace messages when
Debug is active are:
LWP::Protocol::collect: read 1894
LWP::Protocol::http::__ANON__: collecting
LWP::Socket::read: (...)
LWP::IO::read: Read 0 bytes: ''
LWP::Protocol::http::__ANON__: collected:
Segmentation fault
The code appears to work in that it GETs the URL
and parses it properly. But then the program just
dies.
I'd GREATLY appreciate any help you might be able
to offer.
Thanks,
-Paul
--
Paul Yadlowsky 2050 Ashmere Drive
psy@Virginia.EDU Charlottesville, Virginia
(804) 971-6785 22902