This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, pitrou, vstinner
Date 2008-08-20.21:21:24
SpamBayes Score 0.0006105682
Marked as misclassified No
Message-id <1219267286.19.0.694792965175.issue3611@psf.upfronthosting.co.za>
In-reply-to
Content
> Having a snippet deterministically reproducing the problem 
> would really help in any case.
Here you are. Don't ask how I found this.

The attached script, when run, prints

(KeyError(), ValueError())
(KeyError(), None)

The current exception context (tstate->exc_value) is lost when a
generator is deleted, if it was paused inside a "try" block.

This is the cause of the crash: the gc runs inside PyErr_SetObject and
collects such a generator.
History
Date User Action Args
2008-08-20 21:21:26amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, vstinner
2008-08-20 21:21:26amaury.forgeotdarcsetmessageid: <1219267286.19.0.694792965175.issue3611@psf.upfronthosting.co.za>
2008-08-20 21:21:25amaury.forgeotdarclinkissue3611 messages
2008-08-20 21:21:25amaury.forgeotdarccreate