[issue19442] Python crashes when a warning is emitted during shutdown

2013-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13a05ed33cf7 by Victor Stinner in branch 'default': Close #19442: warn_explicit() does nothing when called late during Python shutdown http://hg.python.org/cpython/rev/13a05ed33cf7 -- resolution: -> fixed stage: -> committed/rejected stat

[issue19442] Python crashes when a warning is emitted during shutdown

2013-10-31 Thread STINNER Victor
STINNER Victor added the comment: warn_shutdown.py does not emit warnings because the thread states are destroyed too late, when the modules have been destroyed. I opened a new issue #19466 "Clear state of threads earlier in Python shutdown" which would permit to emit properly warnings, at lea

[issue19442] Python crashes when a warning is emitted during shutdown

2013-10-29 Thread STINNER Victor
STINNER Victor added the comment: warn_shutdown.py: example of script emitting warning at shutdown. Depending on the timing, the warning is shown or not (replace "if 0:" with "if 1:" to always display the warning). This example is a simplified example of the original crasher: test_threading.te

[issue19442] Python crashes when a warning is emitted during shutdown

2013-10-29 Thread STINNER Victor
STINNER Victor added the comment: The changeset 1787277915e9 is closer to a workaround than a real fix: +if (module != Py_None) { +res = warn_explicit(category, message, filename, lineno, module, registry, +NULL); +} +else { +/* FIXME: emi

[issue19442] Python crashes when a warning is emitted during shutdown

2013-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1787277915e9 by Victor Stinner in branch 'default': Issue #19442: Fix warnings emitted during Python shutdown http://hg.python.org/cpython/rev/1787277915e9 -- nosy: +python-dev ___ Python tracker

[issue19442] Python crashes when a warning is emitted during shutdown

2013-10-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever title: Python crashs when a warning is emitted during shutdown -> Python crashes when a warning is emitted during shutdown ___ Python tracker ___