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 Mark.Shannon
Recipients Mark.Shannon, alexis, benjamin.peterson, eric.araujo, larry, ncoghlan, pitrou, tarek
Date 2012-07-07.14:03:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341669802.73.0.612072752068.issue14241@psf.upfronthosting.co.za>
In-reply-to
Content
>>> io.UnsupportedOperation.__new__(io.UnsupportedOperation)
behaves correctly now (rev d9c98730e2e8)

This bug was (I believe) caused somehow by an error in OSError_new() which did not initialize self->args if OSError_init() was not called.

Here is a crash which exploited the lack of initialization:
(Works on rev 2a142141e5fd)

>>> class C(ValueError, OSError):pass
... 
>>> c = OSError.__new__(C)
>>> str(c)
Segmentation fault (core dumped)

This has already been fixed, so I'm closing this issue.
History
Date User Action Args
2012-07-07 14:03:22Mark.Shannonsetrecipients: + Mark.Shannon, ncoghlan, pitrou, larry, benjamin.peterson, tarek, eric.araujo, alexis
2012-07-07 14:03:22Mark.Shannonsetmessageid: <1341669802.73.0.612072752068.issue14241@psf.upfronthosting.co.za>
2012-07-07 14:03:22Mark.Shannonlinkissue14241 messages
2012-07-07 14:03:22Mark.Shannoncreate