Andrew Svetlov <andrew.svet...@gmail.com> added the comment: Problem in _multiprocessing is: FILE* fp = _fdopen(...); int fd = _fileno(fp); _close(fd); _fclose(fp); // raises assertion
At process exit system tries to close all opened FILE* by _fcloseall, but file closed by descriptor _close has invalid state and _fclose raises assertion. Real problem not in win32_ExitProcess function but in outer finalization code. At exit time is impossible to point on real source of problem. This patch is just supressing error messages on exit of child process (we sure what we don't want to see anything related to this one, at least in buildbot test session). For particular problem in multiprocessing only (all other test passed with regrtest -n without assertion message boxes). In general maybe will helpful to add os.close check for opened FILE* for this descriptor and report about this problem (interesting question, it should be exception or stderr output?). Of course it have to be applied only to debug build. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5619> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com