Thank you for so amazing debugging tutorial :). I owe you a beer.
I found source of problem: then unhandled in python code exception occurs frame_dealloc() (Objects/frameobject.c:422) not called. Even if I call PyErr_Print(). But! If I call PyErr_Clear() then all okay! Docs says that both this functions clears error indicator... I hit a bug or my brains overheated? Some gdb output if you are intrested: Without exception: http://dpaste.com/104973/ With exception: http://dpaste.com/104975/ -- http://mail.python.org/mailman/listinfo/python-list