Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
lysnikolaou opened this issue Aug 15, 2023 · 0 comments
Closed
2 tasks done
Assignees
Labels
3.12 only security fixes 3.13 bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@lysnikolaou
Copy link
Member

lysnikolaou commented Aug 15, 2023

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

@lysnikolaou lysnikolaou added type-bug An unexpected behavior, bug, or error interpreter-core (Objects, Python, Grammar, and Parser dirs) 3.12 only security fixes 3.13 bugs and security fixes labels Aug 15, 2023
@lysnikolaou lysnikolaou self-assigned this Aug 15, 2023
lysnikolaou added a commit to lysnikolaou/cpython that referenced this issue Aug 15, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 15, 2023
…rning (pythonGH-107968)

(cherry picked from commit d66bc9e)

Co-authored-by: Lysandros Nikolaou <[email protected]>
pablogsal pushed a commit that referenced this issue Aug 15, 2023
…arning (GH-107968) (#107970)

gh-107967: Fix infinite recursion on invalid escape sequence warning (GH-107968)
(cherry picked from commit d66bc9e)

Co-authored-by: Lysandros Nikolaou <[email protected]>
iritkatriel pushed a commit to iritkatriel/cpython that referenced this issue Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 only security fixes 3.13 bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant