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


In reply to Strange error regarding HTTPS requests and mod_perl by c0bra

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.