<div dir="ltr"><div class="gmail_quote">On Wed, Oct 5, 2011 at 6:51 PM, Amaury Forgeot d&#39;Arc <span dir="ltr">&lt;<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

2011/10/5 Ram Rachum &lt;<a href="mailto:ram@rachum.com">ram@rachum.com</a>&gt;:<br>
<div class="im">&gt; Okay, I&#39;ve spent a few hours print-debugging, and I think I&#39;ve almost got<br>
&gt; it.<br>
&gt; The crash happens on a line:<br>
&gt;     st = os.stat(s)<br>
&gt; inside `os.path.isdir`, where `s` is a string &#39;C:\\Documents and<br>
&gt; Settings\\User\\My Documents\\Python Projects\\GarlicSim\\garlicsim\\src&#39;<br>
&gt; This is a directory that happens not to exist, but of course this is not a<br>
&gt; good reason to crash.<br>
&gt; I have tried running `os.stat(s)` in the PyPy shell with that same `s`, but<br>
&gt; didn&#39;t get a crash there. I don&#39;t know why it&#39;s crashing in Nose but not in<br>
&gt; the shell.<br>
&gt;<br>
&gt; Does anyone have a clue?<br>
<br>
</div>it&#39;s possible that it&#39;s a RPython-level exception, or a bad handle because<br>
too many files wait for the garbage collector to close them.<br>
<br>
Can you give more information about the crash itself?<br>
- What are the last lines printed in the console? Try to disable<br>
&quot;stdout capture&quot; in Nose, by passing the -s option.<br></blockquote><div><br></div><div>This is the entire output:</div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">

<div class="gmail_quote"><div><div>Preparing to run tests using Python 2.7.1 (080f42d5c4b4, Aug 23 2011, 11:41:11)</div><div>[PyPy 1.6.0 with MSC v.1500 32 bit]</div><div>Running tests directly from GarlicSim repo.</div>
<div>
Pypy doesn&#39;t have wxPython, not loading `garlicsim_wx` tests.</div><div>nose.config: INFO: Set working dir to C:\Documents and Settings\User\My Documents\Python Projects\GarlicSim</div><div>nose.config: INFO: Ignoring files matching [&#39;^\\.&#39;, &#39;^_&#39;, &#39;^setup\\.py$&#39;]</div>

<div>nose.plugins.cover: INFO: Coverage report will include only packages: [&#39;garlicsim&#39;, &#39;garlicsim_lib&#39;, &#39;garlicsim_wx&#39;, &#39;test_garlicsim&#39;, &#39;test_garlicsim_lib&#39;, &#39;test_garlicsim_wx&#39;, &#39;garlicsim&#39;, &#39;garlicsim_lib&#39;, &#39;garlicsim_wx&#39;, &#39;test_garlicsim&#39;, &#39;test_garlicsim_lib&#39;, &#39;test_garlicsim_wx&#39;, &#39;garlicsim&#39;, &#39;garlicsim_lib&#39;, &#39;garlicsim_wx&#39;, &#39;test_garlicsim&#39;, &#39;test_garlicsim_lib&#39;, &#39;test_garlicsim_wx&#39;]</div>

</div></div></blockquote><div class="gmail_quote"><div> </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
- after the pypy process has exited, type &quot;echo %ERRORLEVEL%&quot; in the<br>
same console, to print the exit code<br>
of the last process. Which number is it?<br></blockquote><div><br></div><div>-1073741819</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
--<br>
Amaury Forgeot d&#39;Arc<br>
</div></div></blockquote></div><br></div>