]> granicus.if.org Git - python/commit
Issue #14432: Remove the thread state field from the frame structure. Fix a
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 13 Dec 2013 01:01:38 +0000 (02:01 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 13 Dec 2013 01:01:38 +0000 (02:01 +0100)
commitfdeb6ec45ab898e2783e44495a756f56b42f4a80
tree572112b73b25f09bea638391bd351375a7ceb9a0
parent62ca10051b5aa07b86807a50674dbef4cace22f7
Issue #14432: Remove the thread state field from the frame structure. Fix a
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
Include/frameobject.h
Lib/test/test_sys.py
Lib/test/test_threading.py
Misc/NEWS
Modules/_testcapimodule.c
Objects/frameobject.c
Python/ceval.c
Python/sysmodule.c