Dear all,
I dont get this problem if I run the software locally, but it crashes with a segmentation fault if I try to run it via CGI.
Basically i have a XML-RPC cgi file set-up, and when the method inside is called, it runs the main external perl script.
This perl script, amongst other things, uses two external C programs to do some work...
here's the two lines that uses the two programs:
qx "$msms $coords1 $coords2 $$Vertex_Density >$mslog 2>&1";
qx "$hbplus $pdbfile >$hblog 2>&1";
the first program runs without a hitch, the second program is the one that crashes, EVEN though the main perl script runs ok locally.
I've pinpointed two possible areas of fault:
-
the second program is designed so that it's output occurs in the directory it is run from, thus there is a chdir $path command before it. This chdir works, but does the change in dir crash the program?
-
the first program is run from a fork deliberately created by perl, because it is run twice, in parallel. there is no deliberate fork for the second as it runs once on it's own. should this be the case?
thanks
Sam Seaver
ps there is no output, just "Segmentation Fault";
pps all uids are go. I hope.
20030516 Edit by Corion Removed PRE tags, added formatting
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.