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 pitrou
Recipients amaury.forgeotdarc, pitrou, vstinner
Date 2008-08-20.20:03:59
SpamBayes Score 1.9478762e-06
Marked as misclassified No
Message-id <1219262636.5651.15.camel@fsol>
In-reply-to <[email protected]>
Content
> The problem comes when PyErr_SetObject triggers garbage collection which
> runs python code (finalizers...).

Mmmh, normally this shouldn't change the value of tstate->exc_value once
that Python code returns. That's what exception stacking is for.

Having a snippet deterministically reproducing the problem would really
help in any case.

> An obvious fix is to save exc_value near the "/* Implicit exception
> chaining */" comment.

Well, it may be a fix for the crash but I'm not sure it makes the
semantics correct. If tstate->exc_value was really changed, there is a
reason and I'm not sure it should be ignored.
History
Date User Action Args
2008-08-20 20:04:00pitrousetrecipients: + pitrou, amaury.forgeotdarc, vstinner
2008-08-20 20:03:59pitroulinkissue3611 messages
2008-08-20 20:03:59pitroucreate