[issue30998] faulthandler: Show C stacktrace

2017-07-24 Thread STINNER Victor
STINNER Victor added the comment: > While faulthandler's output is already quite useful when dealing with crashes > in C libraries, it'd be much more useful when it could also show a low-level > C/C++ stack. It's a deliberate choice to not read the "C" backtrace: it requires complex non-porta

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Ammar Askar
Ammar Askar added the comment: No need to close it off just yet, what I posted was just my opinion. We can wait for haypo's expert opinion seeing as he implemented faulthandler. Maybe it would be useful to have an option to say always generate a core dump? Something like the stuff listed here

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Florian Bruhin
Florian Bruhin added the comment: Hmm, fair point. I thought I had seen this being used in a SEGV handler in some other software I use, but I can't find that anymore - so either I was dreaming, or they noticed it was problematic and removed it again. I'm closing this then. My goal was to get m

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Ammar Askar
Ammar Askar added the comment: As the faulthandler documentation notes: > The fault handler is called on catastrophic cases and therefore can only use > signal-safe functions (e.g. it cannot allocate memory on the heap). Because > of this limitation traceback dumping is minimal compared to no

[issue30998] faulthandler: Show C stacktrace

2017-07-23 Thread Florian Bruhin
New submission from Florian Bruhin: While faulthandler's output is already quite useful when dealing with crashes in C libraries, it'd be much more useful when it could also show a low-level C/C++ stack. glibc has functions to do that: https://www.gnu.org/software/libc/manual/html_node/Backtr