[Swift-user] ignore exceptions?

Michael Wilde wilde at mcs.anl.gov
Mon Dec 17 15:51:26 CST 2012


Neil, one solution is to wrap your fortran executable in a shell app that catches the SIGSEGV and/or other signals that the program may be generating, and exits with a 0 return code.

Something like:

trap "{ exit 0; }" EXIT SEGILL SIGTRAP SIGABRT SIGSEGV # etc - whatever applies

- Mike

----- Original Message -----
> From: "Neil Best" <nbest at ci.uchicago.edu>
> To: "Michael Wilde" <wilde at mcs.anl.gov>, swift-user at ci.uchicago.edu
> Sent: Monday, December 17, 2012 3:33:33 PM
> Subject: ignore exceptions?
> I have an executable that is throwing exception after it finishes its
> work. I am treating these crashes as benign but Swift regards them as
> failures even though the data that it is writing out as a side effect
> is valid. Is there a way to get Swift to ignore these exceptions?
> It's a home-cooked Fortran executable and I suspect that its memory
> allocation and/or file handles are not being released cleanly or
> something of that nature. I am trying to avoid debugging it as it
> would not really be a good use of my time if I don't have to. Thanks.

-- 
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory




More information about the Swift-user mailing list