Skip to content

Rare CPython 3.10 crashes on Windows #105400

@lazka

Description

@lazka

Bug report

This is a bit of a long shot, as I'm out of ideas, please stay with me :)

The MSYS2 project has been plagued by random Python crashes over the last year in CI (GitHub and GitLab), in combination with meson and I finally got some time to reproduce/bisect it, still only in CI:

https://github.com/lazka/python-crash-test (see the workflow file there for the setup)

This sets the error mode to SEM_NOGPFAULTERRORBOX and runs ninja which repeatedly calls python, until python crashes.

Python crashes with STATUS_ACCESS_VIOLATION, only on CI, and only if just-in-time debugging is disabled via SEM_NOGPFAULTERRORBOX, which makes it quite hard to pin down/debug.

I've now taken the time to git bisect it via GHA CI and come to the following result:

I'd welcome any ideas on why those commits could have an effect and what I could try to further pin this down.

My initial goal was to revert or backport commits after the bisect, but those commits have so many conflicts and touch so many things that I gave up.

Your environment

  • CPython versions tested on: all versions from 3.10.0a1 up to 3.11.3
  • Operating system and architecture: on all of Windows Server 2019/2022 (via GHA) Windows Server 2016 (via GitLab CI)

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixesOS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions