Issue 43190: < test.support > check_free_after_iterating( ) causes core dump in handling iteration.
Created on 2021-02-10 09:48 by CharlesFengY, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg386768 - (view) | Author: Yang Feng (CharlesFengY) | Date: 2021-02-10 09:48 | |
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
|
|||
| msg386784 - (view) | Author: Irit Katriel (iritkatriel) * ![]() |
Date: 2021-02-10 15:04 | |
This looks similar to 43185. |
|||
| msg386909 - (view) | Author: Terry J. Reedy (terry.reedy) * ![]() |
Date: 2021-02-13 05:10 | |
I suspect this is another duplicate of #43185 |
|||
| msg387920 - (view) | Author: Mark Shannon (Mark.Shannon) * ![]() |
Date: 2021-03-02 11:53 | |
On 3.10a, this raises a RecursionOverflow |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:41 | admin | set | github: 87356 |
| 2021-03-02 11:53:50 | Mark.Shannon | set | status: open -> closed resolution: duplicate stage: resolved |
| 2021-03-02 11:53:29 | Mark.Shannon | set | nosy:
+ Mark.Shannon messages: + msg387920 |
| 2021-02-13 05:10:26 | terry.reedy | set | nosy:
+ terry.reedy messages: + msg386909 |
| 2021-02-10 15:04:10 | iritkatriel | set | nosy:
+ iritkatriel messages: + msg386784 |
| 2021-02-10 09:48:57 | CharlesFengY | create | |
