c0bra has asked for the wisdom of the Perl Monks concerning the following question:

I've run into a very strange problem that I'm having trouble finding the answer to.

I have a mod_perl application that's being used to connect to an https site using LWP. The Apache child segfaults at the line where I do:

my $res = $ua->request($req);

Now I've copied the code from my mod_perl handler into a regular script and ran it from the command line and everything went through perfectly.

There's only one version of perl installed, so they're both using the same libraries. There's no rogue copies of HTTP::Request or Net::SSLeay or anything running loose in the local directories.

Here's another kicker: the mod_perl app works fine with a http:// url, it just segfaults with https://. And since the command line version works, I have to assume Net::SSLeay/IO::Socket::SSL or whatever are all there.

This is Stronghold/2.4.2 with Apache/1.3.6 running with mod_perl 1.21. Perhaps the old version of mod_perl is the problem?

Any and all help or comments are appreciated.

Thanks

Replies are listed 'Best First'.
Re: Strange error regarding HTTPS requests and mod_perl
by perrin (Chancellor) on Sep 12, 2002 at 15:30 UTC
    You're more likeley to get help with this on the mod_perl list. I do know that people have done this successfully under mod_perl, so it may be worth just upgrading (including your perl and LWP versions) and trying it again. There could also be some kind of conflict between Stronghold and Net::SSLeay. There are instructions on the mod_perl site for getting a stack trace, which might help people figure out what's going on.