Skip to content

<test.support> decorator function run_with_locale() crashes Python interpreter #87355

Closed

Description

@CharlesFengY
BPO 43189
Nosy @markshannon, @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:54:22.830>
created_at = <Date 2021-02-10.09:46:08.119>
labels = ['tests', '3.9', 'type-crash']
title = '<test.support> decorator function run_with_locale() crashes Python interpreter'
updated_at = <Date 2021-03-02.11:54:22.829>
user = 'https://github.com/CharlesFengY'

bugs.python.org fields:

activity = <Date 2021-03-02.11:54:22.829>
actor = 'Mark.Shannon'
assignee = 'none'
closed = True
closed_date = <Date 2021-03-02.11:54:22.830>
closer = 'Mark.Shannon'
components = ['Tests']
creation = <Date 2021-02-10.09:46:08.119>
creator = 'CharlesFengY'
dependencies = []
files = []
hgrepos = []
issue_num = 43189
keywords = []
message_count = 2.0
messages = ['386767', '387919']
nosy_count = 2.0
nosy_names = ['Mark.Shannon', 'CharlesFengY']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue43189'
versions = ['Python 3.9']

Activity

  1. CharlesFengY commented on Feb 10, 2021

    CharlesFengYmannequin
    MannequinAuthor

    We use run_with_locale() as decorator function, then we recursively call test_float__format__locale in the following example. Python interpreter crashes.
    +++++++++++++++++++++++++++++++++++++++++++
    from test.support import run_with_locale

    @run_with_locale('LC_NUMERIC', 'en_US.UTF8')
    def test_float__format__locale():
    test_float__format__locale()
    test_float__format__locale()
    +++++++++++++++++++++++++++++++++++++++++

    System Info: Ubuntu 16.04
    Python Version: Python 3.9.1

  2. added
    testsTests in the Lib/test dir
    type-crashA hard crash of the interpreter, possibly with a core dump
    on Feb 10, 2021
  3. markshannon commented on Mar 2, 2021

    @markshannon
    Member

    This behaves correctly (raising on RecursionOverflow) on 3.10a

  4. 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 lifetestsTests in the Lib/test dirtype-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