<br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 6:44 PM, Andrew Bennetts <span dir="ltr">&lt;<a href="mailto:andrew.bennetts@canonical.com">andrew.bennetts@canonical.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My wild guess would be timing sensitivity, but the complete determinism (100%<br>
reproducible in 10 attempts) suggests not.<br>
<br>
Hmm, perhaps it&#39;s a garbage collection issue?  Turning on -v will have the<br>
effect of producing slightly different object allocation/deallocation counts,<br>
which will cause the periodic cyclic garbage collector to kick in at slightly<br>
different points... it&#39;s not the first time I&#39;ve seen an issue like that...<br>
<br>
I don&#39;t have time to do this right now, but if I were investigating this I&#39;d be<br>
experimenting with adding &quot;import gc; gc.disable()&quot; early in the &#39;bzr&#39; script<br>
and see how that affects results.<br>
</blockquote><div><br>Thanks for the suggestion.  I was pretty excited about this, because I vaguely recall seeing a warning about garbage collection at some point in the last couple days.  So I  made a copy bzr with import gc; gc.disable() right at the top, ahead of import os.  I regret to report that I found the same curious behaviors with bzr-no_gc (my modified copy) as I originally reported for &#39;selftest http_test&#39;.  <br>
<br>So I did a grep &quot;import gc&quot; *.py in /usr/lib/python2.6/dist-packages/bzrlib to see if anything else is trivially pulling in gc and trumping gc.disable.  No matches.  I suppose there might be indirect ways to get import gc, but I have not looked any harder.  A less specific grep for &quot;gc.&quot; only turns up references to groupcompress, which is obviously unrelated to this discussion.<br>
<br>Anyway, I&#39;ve only tested test_http without garbage collection.  I am going to go through my other unusual results and see if garbage collection makes any difference.<br><br>Thanks!<br>-M<br><br></div></div><br>