Skip to content

Importing ssl After Reinitializing Crashes #122334

Closed
@ericsnowcurrently

Description

@ericsnowcurrently

Crash report

What happened?

Using 3.13b4 and main (5592399):

$ Programs/_testembed test_repeated_init_exec 'import ssl' --- Loop #1 --- --- Loop #2 --- Segmentation fault (core dumped) 

Using 3.12:

$ Programs/_testembed test_repeated_init_exec 'import ssl' --- Loop #1 --- --- Loop #2 --- _testembed: Python/getargs.c:2052: parser_init: Assertion `parser->kwtuple != NULL' failed. Aborted (core dumped) 

The 3.12 output implies a problem related to argument clinic and the kwarg names tuple that gets cached.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

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

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixes3.14bugs and security fixestype-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