Skip to content

bug: obs-util: profiler_parity crashes under x86_64-pc-windows-gnu (STATUS_ACCESS_VIOLATION) #441

Closed

Description

@zackees

Seen on the windows-2025-vs2026 runner when the Rust suite ran as x86_64-pc-windows-gnu (MinGW) by mistake (run 38337372722, PR #431): target\x86_64-pc-windows-gnu\debug\deps\profiler_parity-*.exe exits with 0xc0000005, STATUS_ACCESS_VIOLATION. #291 reported a similar MinGW-only crash in buffered_file_serializer_parity (defaults_match_oracle), which reproduces on master too.

Since #431, every test binary builds and links for windows-gnu (the gate's rust-test lane checks this with --no-run), but nothing runs them, so MinGW runtime failures like these go unseen. The MSVC suite is unaffected.

Next step: run soldr cargo test -p obs-util --test profiler_parity --target x86_64-pc-windows-gnu on a Windows host (or under Wine), get a backtrace, and decide whether it's an oracle ABI mismatch (w32-pthreads static build vs MinGW CRT, long size, calling convention) or a real port bug.

Activity

  1. added
    claimed
    on Oct 13, 2026
  2. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Claiming.

  3. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Findings (not reproduced under Wine, no fix).

    Repro attempted on master 56ae6bc: NixOS, nix shell nixpkgs#wineWow64Packages.stable (wine 11.0), CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER=wine soldr cargo test -p obs-util --target x86_64-pc-windows-gnu --no-fail-fast.

    • The entire obs-util suite passes under Wine, including profiler_parity (3/3), profiler_snapshot_parity and buffered_file_serializer_parity (12/12, so defaults_match_oracle from bug: obs-c-oracle: no test binary links on a Windows GNU/gnullvm host (pthread comes from the compiler branch, not the target) #291 is fine too). profiler_parity run 30 more times in a loop: 0 failures.
    • So the crash is not an ordinary ABI mismatch (long size, struct layout, calling convention): those would fail under Wine too. Either it was fixed since run 38337372722 / bug: obs-c-oracle: no test binary links on a Windows GNU/gnullvm host (pthread comes from the compiler branch, not the target) #291, or it depends on something Wine does not model.
    • Candidate suspects for real Windows only (unverified): (1) w32-pthreads static init. deps/w32-pthreads/autostatic.c registers pthread_win32_process_attach_np through both .ctors and .CRT$XCU; if neither runs in a Rust-linked MinGW exe, ptw32_processInitialized stays false and the static PTHREAD_MUTEX_INITIALIZER (profiler.c:230, (pthread_mutex_t)-1) lazy init path uses uninitialized globals. Wine may tolerate zeroed CRITICAL_SECTIONs. (2) High-entropy ASLR (64-bit addresses on real Windows, low bases under Wine) exposing a pointer truncated through int/long.
    • Suggested next step: run the exe on a real Windows runner under cdb/WER (or add pthread_win32_process_attach_np check plus RUST_BACKTRACE / minidump upload) to get the faulting function. Releasing the claim.
  4. removed
    claimed
    on Oct 13, 2026
  5. nathan-v commented on Oct 14, 2026

    @nathan-v
    Contributor

    Claiming: #441, investigate the Windows MinGW profiler_parity crash.

    1. In a separate Windows session, reproduce on a real Windows host and capture a debugger backtrace or crash dump.
    2. Identify the cause, add a failing regression test, and implement a scoped fix.
    3. Run the required validation and open a PR targeting master with RED/GREEN evidence.

    This session only reserves the issue; no investigation or code changes are starting here. Work will begin in the upcoming Windows session. First PR ETA is pending Windows reproduction; the next session will update the estimate within the 48-hour claim window.

    Maintainer: please add the claimed label; my account does not have permission to apply labels.

  6. added 2 commits that reference this issue on Oct 14, 2026
    1583d96
    8769842
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions