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, benjamin.peterson, pitrou, vstinner
Date 2008-08-22.10:07:53
SpamBayes Score 4.9222752e-05
Marked as misclassified No
Message-id <1219399736.03.0.207425184128.issue3611@psf.upfronthosting.co.za>
In-reply-to
Content
Victor, your patch addresses the symptom of the problem, not the cause.

The cause is that in some cases, the exception context chain is lost. Of
course what could be a minor annoyance becomes dramatic when this
precisely happens in code that makes use of this context.

IMO, PyErr_SetObject should not restore the previous exc_* members; it's
not its job to correct others' mistakes.
I join a patch that only protects it from crashing in this case: it just
saves exc_value in a local variable.

The bug shown by lostcontext2.py is still unresolved, but at least it
won't crash the interpreter.
History
Date User Action Args
2008-08-22 10:08:56amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, vstinner, benjamin.peterson
2008-08-22 10:08:56amaury.forgeotdarcsetmessageid: <1219399736.03.0.207425184128.issue3611@psf.upfronthosting.co.za>
2008-08-22 10:07:55amaury.forgeotdarclinkissue3611 messages
2008-08-22 10:07:54amaury.forgeotdarccreate