This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
Any way to ask faulthandler to also trap SIGTRAP? #27
Comments
Here's a stack trace from gdb (without debug symbols):
This hints that the only thing on the Python stack I would see would be the place where I call |
Did you try faulthandler.register(SIGTRAP)? |
Welp! No, I tried to look for environment variables/python -X option flags/optional (It works like a charm!) |
(It works like a charm!)
Cool. Good to know that faulthandler actually works :-)
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The reason I ask is that I'm debugging a Python app that uses GTK+ (via pygobject), and I can ask it to abort on any warnings by passing
--g-fatal-warnings
. Unfortunately this produces a SIGTRAP which kills my program without displaying the stack when I doThe text was updated successfully, but these errors were encountered: