python-faulthandler (Display the Python traceback on a crash)

Fault handler for SIGSEGV, SIGFPE, SIGABRT, SIGBUS and SIGILL signals:
display the Python traceback and restore the previous handler.

Import the module and call faulthandler.enable() to enable the fault
handler.