Skip to content

< test.support > check_free_after_iterating( ) causes core dump in handling iteration. #87356

Closed

Description

@CharlesFengY
BPO 43190
Nosy @terryjreedy, @markshannon, @iritkatriel, @CharlesFengY

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2021-03-02.11:53:50.561>
created_at = <Date 2021-02-10.09:48:57.985>
labels = ['library', '3.9', 'type-crash']
title = '< test.support > check_free_after_iterating( ) causes core dump in handling iteration.'
updated_at = <Date 2021-03-02.11:53:50.560>
user = 'https://github.com/CharlesFengY'

bugs.python.org fields:

activity = <Date 2021-03-02.11:53:50.560>
actor = 'Mark.Shannon'
assignee = 'none'
closed = True
closed_date = <Date 2021-03-02.11:53:50.561>
closer = 'Mark.Shannon'
components = ['Library (Lib)']
creation = <Date 2021-02-10.09:48:57.985>
creator = 'CharlesFengY'
dependencies = []
files = []
hgrepos = []
issue_num = 43190
keywords = []
message_count = 4.0
messages = ['386768', '386784', '386909', '387920']
nosy_count = 4.0
nosy_names = ['terry.reedy', 'Mark.Shannon', 'iritkatriel', 'CharlesFengY']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue43190'
versions = ['Python 3.9']

Activity

  1. CharlesFengY commented on Feb 10, 2021

    CharlesFengYmannequin
    MannequinAuthor

    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

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-crashA hard crash of the interpreter, possibly with a core dump
    on Feb 10, 2021
  3. iritkatriel commented on Feb 10, 2021

    @iritkatriel
    Member

    This looks similar to 43185.

  4. terryjreedy commented on Feb 13, 2021

    @terryjreedy
    Member

    I suspect this is another duplicate of bpo-43185

  5. markshannon commented on Mar 2, 2021

    @markshannon
    Member

    On 3.10a, this raises a RecursionOverflow

  6. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions