On my development server, I have two Apaches, both with this setup:

Apache/1.3.41 (Unix) mod_perl/1.30 mod_ssl/2.8.31 OpenSSL/0.9.8g

Apache A is running a HTTPS virtualhost on port 443. Apache B is trying to connect to it using NET::SSLeay. The code looks like this:

my %fields = ( #Bunch of data goes here ); my $form_data = make_form(%fields); my ($page, $response, %reply_headers) = post_https($host, $port, $scr +ipt, $header, $form_data);

Apache B gets a segmentation fault whenever it hits the post_https.

Debugging tests and information:

  1. Taking down Apache A avoids any segmentation fault.
  2. However, when Apache A is up, the segmentation fault occurs and Apache A does not record anything in its access log.
  3. Running identical code to connect to Apache A in a command line script connects successfully and outputs the relevant data returned by Apache A.
  4. The same code runs on a production server without any problems (though not on a 100% identical Apache).

I'm not sure if this is an Apache or perl issue, but I'm hoping the wisdom here will be enough to cover both and help me figure what is stopping this post_https request and causing a segmentation fault.

Any ideas? Thanks in advance


In reply to NET::SSLeay Segmentation Fault by Likeless

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.