diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-04 05:41:33 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-04 05:41:33 +0000 |
commit | b8436b026a90291ba26afa4f7a2700720b03339f (patch) | |
tree | 3098aede87640c80567ecb31022e0404a8b5ec75 /sys/lib/python/test/crashers/borrowed_ref_2.py | |
parent | 6c1b42188259a6f1636cd15a9570b18af03e2dbb (diff) |
remove python test cases
Diffstat (limited to 'sys/lib/python/test/crashers/borrowed_ref_2.py')
-rw-r--r-- | sys/lib/python/test/crashers/borrowed_ref_2.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/sys/lib/python/test/crashers/borrowed_ref_2.py b/sys/lib/python/test/crashers/borrowed_ref_2.py deleted file mode 100644 index 1a7b3ff75..000000000 --- a/sys/lib/python/test/crashers/borrowed_ref_2.py +++ /dev/null @@ -1,38 +0,0 @@ -""" -_PyType_Lookup() returns a borrowed reference. -This attacks PyObject_GenericSetAttr(). - -NB. on my machine this crashes in 2.5 debug but not release. -""" - -class A(object): - pass - -class B(object): - def __del__(self): - print "hi" - del C.d - -class D(object): - def __set__(self, obj, value): - self.hello = 42 - -class C(object): - d = D() - - def g(): - pass - - -c = C() -a = A() -a.cycle = a -a.other = B() - -lst = [None] * 1000000 -i = 0 -del a -while 1: - c.d = 42 # segfaults in PyMethod_New(im_func=D.__set__, im_self=d) - lst[i] = c.g # consume the free list of instancemethod objects - i += 1 |