You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Importing ssl After Reinitializing Crashes #122334
This is the same issue of #121087 Thanks for fixing it!
I tested the code on that issue and it is passing. In that case the problem was that the once.v wasn't reset to 0. Is it worth adding that test in the test_embed?
Activity
neonene commentedon Jul 29, 2024
The following command crashes as well:
Related clinic code (actually unchanged since Python 3.5):
Python/getargs.c:
Currently,
_PyArg_Fini()clearsparser->kwtupleonly:IIUC, clearing
parser->once.vorparser->initializedthere will allowparser_init()to run again, which would work around the issue.ericsnowcurrently commentedon Jul 29, 2024
Good sleuthing!
gh-122334: Fix crash when importing ssl after re-initialization (#122481
pythongh-122334: Fix crash when importing ssl after re-initialization (…
[3.12] gh-122334: Fix crash when importing ssl after re-initialization (
[3.13] gh-122334: Fix crash when importing ssl after re-initialization (
neonene commentedon Aug 2, 2024
Some buildbots fail the
test_embedwithout building_sslmodule.https://buildbot.python.org/#/builders/1366/builds/1792
gh-122334: Fix test_embed failure when missing _ssl module (GH-122630)
pythongh-122334: Fix test_embed failure when missing _ssl module (pyt…
pythongh-122334: Fix test_embed failure when missing _ssl module (pyt…
[3.12] gh-122334: Fix test_embed failure when missing _ssl module (GH…
[3.13] gh-122334: Fix test_embed failure when missing _ssl module (GH…
neonene commentedon Aug 7, 2024
I think there is nothing left to do here.
encukou commentedon Aug 7, 2024
Indeed. Thank you for the fix!
pythongh-122334: Fix crash when importing ssl after re-initialization (…
pythongh-122334: Fix test_embed failure when missing _ssl module (pyt…
diegorusso commentedon Aug 20, 2024
This is the same issue of #121087 Thanks for fixing it!
I tested the code on that issue and it is passing. In that case the problem was that the
once.vwasn't reset to 0. Is it worth adding that test in thetest_embed?pythongh-122334: Fix crash when importing ssl after re-initialization (…
pythongh-122334: Fix test_embed failure when missing _ssl module (pyt…