STINNER Victor added the comment:

> Note that even with POSIX TLS in use, it isn't entirely safe.

I wrote faulthandler to collect debug data just before dying, when something 
already gone very bad, like a deadlock or a memory corruption. I didn't design 
faulthandler for correctness.

If you call faulthandler.dump_traceback() from regular Python code, you are 
safe. For example, if you register your own Python signal handler using 
signal.signal(), it's ok.

The grey area is when you use C signal handlers using the C API of 
faulthandler, like faulthandler.register().

----------

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

Reply via email to