Message398029
This piece of code is originally from https://github.com/python/cpython/tree/main/Lib/test/test_weakref.py. In function test_proxy_iter(), we change the original data dependency and then this generated test case (see the following "test.py") crashes Python.
Crashing Python version: 3.6-master(3.11.0a0)
test.py
=========================
import weakref
def test_proxy_iter():
obj = None
class MyObj:
def __iter__(a):
nonlocal obj
del obj
- return NotImplemented
+ return p
obj = MyObj()
- p = weakref.proxy(obj)
+ p = weakref.proxy(TypeError)
- 'blech' in p
+ 'blech' in obj
test_proxy_iter()
===========================
system: ubuntu 16.04
crash: segmentation fault |
|
Date |
User |
Action |
Args |
2021-07-23 05:05:42 | xxm | set | recipients:
+ xxm |
2021-07-23 05:05:41 | xxm | set | messageid: <1627016741.96.0.306120219144.issue44720@roundup.psfhosted.org> |
2021-07-23 05:05:41 | xxm | link | issue44720 messages |
2021-07-23 05:05:41 | xxm | create | |
|