Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: strange failure of a system call

by jbert (Priest)
on Nov 12, 2007 at 20:36 UTC ( [id://650374]=note: print w/replies, xml ) Need Help??


in reply to strange failure of a system call

Perhaps:

  • the child process always exits with 0, even if it fails to produce output
  • it fails unpredictably in this way (so your cut-and-paste works). Perhaps because of a bug or intermittent memory allocation failure due to system load?
One way to get more information (although it may make the whole thing run so slowly as to not reproduce the problem usefully) would be to run your script under strace -f. When the script exits, you should see the exit code of the child process and also whether it died to to a signal or not.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://650374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-24 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found