Message 409798 - Python tracker
> Applying the following patch upon the aforementioned commit (in 3.8) fixes > the issue for me on latest Debian By "the issue", I mean bug.py, not win_py399_crash_reproducer.py. Victor: perhaps we should open a separate issue for the bug.py issue. Applying the patch from msg409795 onto the 3.9 branch also fixes the segfault from bug.py there. main does not segfault for me, but I would apply the patch anyway, since the current code is broken.