This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xxm
Recipients xxm
Date 2021-07-23.05:05:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This piece of code is originally from In function test_proxy_iter(), we change the original data dependency and then this generated test case (see the following "") crashes Python. 

Crashing Python version: 3.6-master(3.11.0a0)
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


system: ubuntu 16.04
crash: segmentation fault
Date User Action Args
2021-07-23 05:05:42xxmsetrecipients: + xxm
2021-07-23 05:05:41xxmsetmessageid: <>
2021-07-23 05:05:41xxmlinkissue44720 messages
2021-07-23 05:05:41xxmcreate