[New-bugs-announce] [issue16447] SEGFAULT when setting type.__name__

Amaury Forgeot d'Arc report at bugs.python.org
Fri Nov 9 01:09:20 CET 2012


New submission from Amaury Forgeot d'Arc:

Following script crashes all versions of Python.  Cause is the "Py_DECREF(et->ht_name)" in type_set_name().

class Nasty(str):
    def __del__(self):
        C.__name__ = "other"
class C(object):
    pass
C.__name__ = Nasty("abc")
C.__name__ = "normal"

----------
messages: 175210
nosy: amaury.forgeotdarc
priority: normal
severity: normal
status: open
title: SEGFAULT when setting type.__name__
type: crash

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16447>
_______________________________________


More information about the New-bugs-announce mailing list