The external C program, $hbplus, that keeps crashing. I wrote a seperate CGI to run it alone, and it still crashes.

Ive used both qx and system, and the only output I get from either, is a line in my httpd log that says "Bad header: Segmentation Fault"..

i've attempted to write a little xtra output into the C program (the source code is available) right at the beginning so I could being to trace the crash, but it won't even output these lines, it crashes straight away.

Does this give anyone an idea of what is going on? I even set up $hbplus in '/home/tomcat' so that when httpd runs $hbplus, it is writing the output into it's own directory, but that still doesn't work.

Does anyone know of a good CGI/'C' mailing list?

Thanks Sam


In reply to Re: Re: External C ran from External Perl ran from CGI by seaver
in thread External C ran from External Perl ran from CGI by seaver

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.