Author xiang.zhang
Recipients brett.cannon, ethan.furman, xiang.zhang
Date 2016-07-14.09:28:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468488493.55.0.648642707869.issue27512@psf.upfronthosting.co.za>
In-reply-to
Content
When any exception is raised inside __fspath__, operations involving it like os.fspath, open are certain to crash.

>>> import os
>>> class Test:
...     def __fspath__(self):
...             raise RuntimeError
... 
>>> os.fspath(Test())
Segmentation fault (core dumped)

Attach a patch to fix this.
History
Date User Action Args
2016-07-14 09:28:13xiang.zhangsetrecipients: + xiang.zhang, brett.cannon, ethan.furman
2016-07-14 09:28:13xiang.zhangsetmessageid: <1468488493.55.0.648642707869.issue27512@psf.upfronthosting.co.za>
2016-07-14 09:28:13xiang.zhanglinkissue27512 messages
2016-07-14 09:28:13xiang.zhangcreate