homepage

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
Date 2012年11月08日.23:05:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352415910.77.0.640632287013.issue16445@psf.upfronthosting.co.za>
In-reply-to
Content
The script below segfaults cpython2.7. 
The cause is in BaseException_set_message(), which calls Py_XDECREF(self->message) and thus can call back into Python code with a dangling PyObject* pointer. Py_CLEAR should be used instead.
class Nasty(str):
 def __del__(self):
 del e.message
e = ValueError(Nasty("msg"))
e.args = ()
del e.message
del e
History
Date User Action Args
2012年11月08日 23:05:10amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc
2012年11月08日 23:05:10amaury.forgeotdarcsetmessageid: <1352415910.77.0.640632287013.issue16445@psf.upfronthosting.co.za>
2012年11月08日 23:05:10amaury.forgeotdarclinkissue16445 messages
2012年11月08日 23:05:10amaury.forgeotdarccreate

AltStyle によって変換されたページ (->オリジナル) /