Getting a stack trace from a running Python application
There are several tricks here. These include
- Breaking into an interpreter/printing a stack trace by sending a signal
- Getting a stack trace out of an unprepared Python process
- Running the interpreter with flags to make it useful for debugging