[New-bugs-announce] [issue43190] < test.support > check_free_after_iterating( ) causes core dump in handling iteration.

Yang Feng report at bugs.python.org
Wed Feb 10 04:48:57 EST 2021


New submission from Yang Feng <charles.fy at foxmail.com>:

In the following program, we call check_free_after_iterating( ) twice, in the second time, we recursively call function test_free_after_iterating(). Python interpreter crashes.
+++++++++++++++++++++++++++++++++++++++++++
import unittest
import test.support

class UnicodeTest(unittest.TestCase):
	pass

def test_free_after_iterating():
    ut = UnicodeTest()
    test.support.check_free_after_iterating(ut, iter, str)
    test.support.check_free_after_iterating(str, test_free_after_iterating(), str)

test_free_after_iterating()
+++++++++++++++++++++++++++++++++++++++++

System Info: Ubuntu 16.04
Python Version:  Python 3.9.1

----------
components: Library (Lib)
messages: 386768
nosy: CharlesFengY
priority: normal
severity: normal
status: open
title: < test.support > check_free_after_iterating( ) causes core dump in handling iteration.
type: crash
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43190>
_______________________________________


More information about the New-bugs-announce mailing list