Operating System - HP-UX
1832978 Members
3154 Online
110048 Solutions
New Discussion

Floating exception with LWP::UserAgent in SSL

 
Michael Simone
Frequent Advisor

Floating exception with LWP::UserAgent in SSL

I'm getting a "Floating exception(coredump)" error when trying to use LWP::UserAgent to access a site via https. It works fine in http. The following test script produces the error:

#!/usr/local/bin/perl

use LWP::UserAgent;

$ua = new LWP::UserAgent();
$request = new HTTP::Request('GET','https://www.ross-simons.com/');
$result = $ua->request($request);

$content = "\ncode .....: ".$result->code;
$content .= "\nmessage ..: ".$result->message;
$content .= "\ncontent ..: \n".$result->content;

print $content;

I'm using Perl 5.6.1, OpenSSL 0.9.7, and I have the Crypt-SSLeay and libwww modules installed. LWP::UserAgent reports that SSL support is there (perl -MLWP -e 'print LWP::UserAgent->new->is_protocol_supported("https"),"\n"' produces 1).

This is HP-UX 11.11, 64-bit, on an rp8400 server.

Anybody have any ideas?
4 REPLIES 4
Mark Greene_1
Honored Contributor

Re: Floating exception with LWP::UserAgent in SSL

What's your web server, and do you have the ssl and perl modules installed for it?

mark
the future will be a lot like now, only later
Michael Simone
Frequent Advisor

Re: Floating exception with LWP::UserAgent in SSL

The primary web server on this machine is Redhat Stronghold, which has SSL built in. Do you mean on this server, or the one I'm trying to access? Either way, SSL works fine on both sites.
Mark Greene_1
Honored Contributor

Re: Floating exception with LWP::UserAgent in SSL

Michael,

I meant the server your are getting the core dump on, but if ssl was pre-packaged that's likely not the issue.

Have you run "file" on the core file to see exactly which process created it? Have your tried running "adb" against it?

mark
the future will be a lot like now, only later
Michael Simone
Frequent Advisor

Re: Floating exception with LWP::UserAgent in SSL

We eliminated the problem by rebuilding OpenSSL without threads, and rebuilding Crypt-SSLeay with fPIC in the CFLAGS. My associate said this is something he frequently runs into with installing source on HP systems. All seems fine now.