[issue1596321] KeyError at exit after 'import threading' in other thread
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Jan 17 21:04:13 CET 2008
Amaury Forgeot d'Arc added the comment:
If a python daemon thread is still running when the interpreter exits,
it is likely to fail in random ways.
Here is another example, which does not use imports.
I run the script many times, with latest version in trunk, on Windows
XP, debug build.
In the majority of runs, I get an error message:
"""
Exception in thread Thread-1 (most likely raised during interpreter
shutdown):
"""
Other tests seem to show that all modules are emptied by the cleanup
process, but the thread insists to get "time.sleep".
And more interestingly, about every 50 runs, the process segfaults...
I suspect that this is a problem similar to http://bugs.python.org/issue1856
----------
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file9195/thread_crash.py
_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1596321>
_____________________________________
More information about the Python-bugs-list
mailing list