Skip to content

Crash in substitution of nested TypeVar after TypeVarTuple #93345

Closed

Description

@serhiy-storchaka

During work on #93330 I have found an error in the C code which causes crash when substitute a TypeVar in nested generic alias after TypeVarTuple.

For example:

>>> from typing import *
>>> T = TypeVar('T')
>>> Ts = TypeVarTuple('Ts')
>>> tuple[*Ts, list[T]][int, str, bool]
Segmentation fault (core dumped)

Activity

  1. added
    3.11
    type-crash
    3.12
    on May 30, 2022
  2. added a commit that references this issue on May 30, 2022
  3. added a commit that references this issue on May 31, 2022
  4. added 2 commits that reference this issue on Jun 1, 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.113.12topic-typingtype-crash

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions