Skip to content

Infinite recursion in the tokenizer when emitting invalid escape sequence warnings #107967

Closed

Description

@lysnikolaou

Checklist

  • I am confident this is a bug in CPython, not a bug in a third-party project
  • I have searched the CPython issue tracker,
    and am confident this bug has not been reported before

CPython versions tested on:

3.12, CPython main branch

Operating systems tested on:

macOS

Output from running 'python -VV' on the command line:

Python 3.11.3 (main, May 8 2023, 13:16:43) [Clang 14.0.3 (clang-1403.0.22.14.1)]

A clear and concise description of the bug:

The tokenizer has an infinite recursion when emitting an invalid escape sequence SyntaxWarning. This was probably introduced in #106993. Fix will be up shortly.

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    3.12only security fixes
    3.13only security fixes
    on Aug 15, 2023
  2. self-assigned this
    on Aug 15, 2023
  3. added 2 commits that reference this issue on Aug 15, 2023
  4. added a commit that references this issue on Aug 15, 2023
  5. added a commit that references this issue on Aug 15, 2023
  6. added a commit that references this issue on Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions