[Python-Dev] Trap SIGSEGV and SIGFPE

Antoine Pitrou solipsis at pitrou.net
Thu Dec 11 14:10:48 CET 2008


<skip <at> pobox.com> writes:
> 
> The Python distribution comes with a Misc/gdbinit file (you can grab it from
> the Subversion source tree via the web as well) that defines a pystack
> command.  It will work with core files as well as running processes and
> should give you a very good idea where your Python code was executing when
> the segfault occurred.

Still, it would be much better if the stack trace could be printed by Python
itself rather than having to resort to gdb wizardry. Especially if the problem
is reported by one of your non-developer users.




More information about the Python-Dev mailing list