[Swift-user] Deep recursion on subroutine "main::stageout" at /home/ketan/work/worker.pl line 1349
Michael Wilde
wilde at mcs.anl.gov
Tue May 22 22:00:20 CDT 2012
Thanks, Mihael - strace solved the mystery. Turns out that when Swift runs an app, it closes stdin unless you specify stdin= in the app command line body.
This confused the MARS app, likely around the logic where it was reading the license file. (It seemed to be checking if stdin was a tty?) So it was failing even before it tried to open the license file.
The remedy was to specify stdin="/dev/null" on the app cmd body.
- Mike
----- Original Message -----
> From: "Mihael Hategan" <hategan at mcs.anl.gov>
> To: "Ketan Maheshwari" <ketancmaheshwari at gmail.com>
> Cc: "Michael Wilde" <wilde at mcs.anl.gov>, "Swift User" <swift-user at ci.uchicago.edu>
> Sent: Tuesday, May 22, 2012 8:37:56 PM
> Subject: Re: [Swift-user] Deep recursion on subroutine "main::stageout" at /home/ketan/work/worker.pl line 1349
> On Tue, 2012-05-22 at 20:54 -0400, Ketan Maheshwari wrote:
> > Mihael,
> >
> >
> > As far as I know there is no environment setup required before
> > running
> > mars.
> >
>
> There's an easy way to check. Type env after you verified that you
> were
> able to run the app and paste the output here.
>
> Also, you can strace the app from the wrapper and then we can see
> where
> it's looking for that file.
>
> Mihael
--
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory
More information about the Swift-user
mailing list