Just a note that this behavior (closed stdin) is not seen in the local execution provider.<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 11:00 PM, Michael Wilde <span dir="ltr"><<a href="mailto:wilde@mcs.anl.gov" target="_blank">wilde@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>
<br>
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.<br>
<br>
The remedy was to specify stdin="/dev/null" on the app cmd body.<br>
<div class="im HOEnZb"><br>
- Mike<br>
<br>
<br>
----- Original Message -----<br>
</div><div class="im HOEnZb">> From: "Mihael Hategan" <<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>><br>
> To: "Ketan Maheshwari" <<a href="mailto:ketancmaheshwari@gmail.com">ketancmaheshwari@gmail.com</a>><br>
> Cc: "Michael Wilde" <<a href="mailto:wilde@mcs.anl.gov">wilde@mcs.anl.gov</a>>, "Swift User" <<a href="mailto:swift-user@ci.uchicago.edu">swift-user@ci.uchicago.edu</a>><br>
</div><div class="im HOEnZb">> Sent: Tuesday, May 22, 2012 8:37:56 PM<br>
> Subject: Re: [Swift-user] Deep recursion on subroutine "main::stageout" at /home/ketan/work/<a href="http://worker.pl" target="_blank">worker.pl</a> line 1349<br>
</div><div class="HOEnZb"><div class="h5">> On Tue, 2012-05-22 at 20:54 -0400, Ketan Maheshwari wrote:<br>
> > Mihael,<br>
> ><br>
> ><br>
> > As far as I know there is no environment setup required before<br>
> > running<br>
> > mars.<br>
> ><br>
><br>
> There's an easy way to check. Type env after you verified that you<br>
> were<br>
> able to run the app and paste the output here.<br>
><br>
> Also, you can strace the app from the wrapper and then we can see<br>
> where<br>
> it's looking for that file.<br>
><br>
> Mihael<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">--<br>
Michael Wilde<br>
Computation Institute, University of Chicago<br>
Mathematics and Computer Science Division<br>
Argonne National Laboratory<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace">Ketan</font><br><br><br>