HELP: traceback from signal handler

Pete Shinners pete at visionart.com
Mon Jan 8 15:40:59 EST 2001


i have a C signal handler that is catching my segfaults. i'd
like to print a traceback before the program quits. i'm having
a tricky time figuring this out.

it appears first off that my signal handler doesn't have
the global interp lock, so i can't get ahold of the current
thread_state. (i assume i need the thread_state to create
a traceback object). do i need to get the thread_state? is
it safe for me to get it from inside a signal handler?
am i even on the right track?

thanks






More information about the Python-list mailing list