in reply to How to debug a segfault?
if (($? & 127) == 11) { print "program segfaulted\n"; } [download]