Commit 3530feeb authored by Kevin Modzelewski's avatar Kevin Modzelewski

Ok I wasn't completely crazy about cpython having issues with this

parent c8952247
# This segfaults under python-dbg
# (In a release build it "works" since the use-after-free happens without penalty.)
class C:
def __getattr__(self, attr):
del self
print "C.__getattr__", attr
del D.__get__
raise AttributeError()
class D(object):
__get__ = C()
class E(object):
x = D()
try:
print E().x
except Exception as e:
print e
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment