[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2020-03-09 Thread STINNER Victor
STINNER Victor added the comment: I believe that this issue cannot occur in Python 3.8 thanks for bpo-36475. According to the backtrace, a thread does crash in PyEval_EvalFrameEx(). I understand that it's a daemon thread. To execute PyEval_EvalFrameEx(), a daemon thread must hold the GIL. Wi

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-06 Thread Tim Peters
Tim Peters added the comment: Nothing should ever crash the interpreter :-) So this is a thoroughly legitimate bug report. However, there's no way to guess whether _this_ crasher is easy to fix, or next to impossible. Without a test program to provoke the error, there's little to go on. If

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-06 Thread A. Skrobov
A. Skrobov added the comment: That's right; and working around this issue, by taming the daemon threads a bit, wasn't too difficult. Still, if the daemon threads are part of the language, they shouldn't crash the interpreter process, I suppose? --

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, daemon threads are really dangerous because they may keep running while the interpreter has started releasing critical resources. Things have improved in 3.x compared to 2.x, though. -- nosy: +pitrou ___ Python

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-05 Thread A. Skrobov
New submission from A. Skrobov: I'm observing that this line of code: https://hg.python.org/cpython/file/ec9bffc35cad/Python/ceval.c#l3010 -- causes a SIGSEGV on interpreter shutdown, after running some really convoluted Python code with daemon threads running wild. At the time of the crash,