davidmiller/ipdb — pull request #1 by DamianHeard (2012-09-06 23:16:41+00:00)
Title: Infinite loop when multiple debuggers have been attached.

[master 16432ff] Fixed infinite loop on exit in the event of where multiple debuggers have been attached an there is an uncaught exception. I have submitted a similar patch for IPython and your patch will be dependant on that being accepted.

The following is the sort of example where things go wrong:

import ipdb; ipdb.set_trace()
import ipdb; ipdb.set_trace()
raise Foo
print "foo"
print "bar"