[issue10207] test_file2k crashes under Windows

David Bolen report at bugs.python.org
Wed Oct 27 03:31:23 CEST 2010


David Bolen <db3l.net at gmail.com> added the comment:

Ok, when it fails, the failure always appears to be one of the FileThreadingTests tests, with the affected close() call occurring within _close_file, called from _close_and_reopen_file, called from _test_close_open_io.  It seems tough to backtrace the VS traces to the exact parent test due to the threading involved, but so far I've only been able to see the problem (with some debugging output added) while in test_close_open_print_buffered.

It's a little tough to be positive, but I can seem to influence the odds of failure a bit with host I/O load, and I have yet to see a failure if I remove that test, while limiting the FileThreadingTests class to just that test fails with about the same frequency as the original full class did.  So even if the issue is more general, that test seems the best way to exercise/analyze it.

So there does seem to likely be a real race condition somewhere.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10207>
_______________________________________


More information about the Python-bugs-list mailing list