This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eryksun, gaborjbernat, maggyero, neologix, paul.moore, pdgoins-work, pitrou, steve.dower, tim.golden, tim.peters, vstinner, zach.ware
Date 2021-09-27.14:11:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632751890.24.0.128386551014.issue21822@roundup.psfhosted.org>
In-reply-to
Content
I mark this issue as a duplicate of bpo-45274.

--

I fixed bpo-45274 with this change:

New changeset a22be4943c119fecf5433d999227ff78fc2e5741 by Victor Stinner in branch 'main':
bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532)
https://github.com/python/cpython/commit/a22be4943c119fecf5433d999227ff78fc2e5741

I tested join.py with the fix. It nows displays:
---
vstinner@DESKTOP-DK7VBIL C:\vstinner\python\main>python x.py
Running Debug|x64 interpreter...
started. Press Ctrl-C now
Ctrl-C [2.99]  done=True  alive=False
finish [2.99]  done=True  alive=False
Terminate batch job (Y/N)? n
---

The script no longer hangs.
History
Date User Action Args
2021-09-27 14:11:30vstinnersetrecipients: + vstinner, tim.peters, paul.moore, pitrou, tim.golden, neologix, zach.ware, eryksun, steve.dower, pdgoins-work, maggyero, gaborjbernat
2021-09-27 14:11:30vstinnersetmessageid: <1632751890.24.0.128386551014.issue21822@roundup.psfhosted.org>
2021-09-27 14:11:30vstinnerlinkissue21822 messages
2021-09-27 14:11:30vstinnercreate