New submission from Albert Zeyer:

SIGUSR1/2 will get delivered to any running thread. The current thread of the 
signal doesn't give any useful information. Try to get the current Python 
thread which holds the GIL instead, or use NULL.

I have patched this for the external faulthandler module here:
https://github.com/haypo/faulthandler/pull/12
https://github.com/albertz/faulthandler/commit/dc92265

----------
components: Library (Lib)
messages: 240252
nosy: Albert.Zeyer
priority: normal
severity: normal
status: open
title: faulthandler_user should use _PyThreadState_Current
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23886>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to