[Python-Dev] Trap SIGSEGV and SIGFPE

Adam Olsen rhamph at gmail.com
Wed Dec 10 21:05:17 CET 2008

On Wed, Dec 10, 2008 at 12:22 PM, BJörn Lindqvist <bjourne at gmail.com> wrote:
> One thing i think it would be useful for in the real world is for
> unittesting extension modules. You cant profitably write unit tests
> for segfaults because that breaks the test harness. In situations like
> those, recovering would be likely (caveat emptor of course).

The only safe option there is a subprocess.

Adam Olsen, aka Rhamphoryncus

More information about the Python-Dev mailing list