Closed
Description
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
- gh-122334: Fix crash when importing ssl after re-initialization #122481
- [3.12] gh-122334: Fix crash when importing ssl after re-initialization (GH-122481) #122495
- [3.13] gh-122334: Fix crash when importing ssl after re-initialization (GH-122481) #122614
- gh-122334: Fix test_embed failure when missing _ssl module #122630
- [3.13] gh-122334: Fix test_embed failure when missing _ssl module (GH-122630) #122647
- [3.12] gh-122334: Fix test_embed failure when missing _ssl module (GH-122630) #122648