Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Binary search the cause of a Segmentation Fault

by Athanasius (Archbishop)
on Apr 02, 2013 at 04:39 UTC ( [id://1026579]=note: print w/replies, xml ) Need Help??


in reply to Binary search the cause of a Segmentation Fault (searching automatically the cause of a segfault)

How do I robustly and properly check in Perl, for a segfault that occured upon running a child process ?

From perlvar under “$CHILD_ERROR”:

Thus, the exit value of the subprocess is really ($? >> 8), and $? & 127 gives which signal, if any, the process died from, and $? & 128 reports whether there was a core dump.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

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

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

    No recent polls found