[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread Steve Dower

Steve Dower added the comment:

It is a direct duplicate of multiple issues.

The assertion is coming from the CRT, because their definition of "undefined 
behaviour" includes displaying an assert dialog in debug mode, and last time we 
tried disabling them completely we upset people. (I'm not 100% clear how you 
get from "closing an already-closed fd" to "undefined behaviour", but I assume 
it's an interpretation of invalid parameters.)

I'll get the patch for issue 23919 together, based on what Zach described in 
issue 25001.

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

STINNER Victor added the comment:

See also issue #23919, this issue may be a duplicate of this one.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

STINNER Victor added the comment:

See also the issue #25306 "test_huntrleaks_fd_leak() of test_regrtest hangs on 
Windows". It may be caused by this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

STINNER Victor added the comment:

By the way, these warnings are flooding buildbot output, it became really hard 
to read these logs :-( Extract:


minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1182) : Assertion failed: false

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25305] Windows: python opens a popup and flood stderr with assertion error on FD error

2015-10-03 Thread STINNER Victor

New submission from STINNER Victor:

I compiled Python 3.6 in debug mode on Windows, and I'm trying to run 
test_regrtest to try to reproduce a bug. The problem is that the test opens a 
million of popup. Clicking on Ignore is useless, the popup continues to 
reappear again and again. The stderr is also flooded with "Assertion error ..." 
with the MSCRT.

I don't understand the usage of this popup and this error message. Python 
already raises a nice OSError when a FD is invalid.

Can we please always turn these warnings off even in debug mode when calling a 
MSCRT function protected by _Py_BEGIN_SUPPRESS_IPH/_Py_END_SUPPRESS_IPH?

See also issue #25001 "Make --nowindows argument to regrtest propagate when 
running with -j".

--
components: Windows
messages: 252226
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows: python opens a popup and flood stderr with assertion error on 
FD error
versions: Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com