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
bug: obs-util: profiler_parity crashes under x86_64-pc-windows-gnu (STATUS_ACCESS_VIOLATION) #441
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.
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.
Claiming: #441, investigate the Windows MinGW profiler_parity crash.
In a separate Windows session, reproduce on a real Windows host and capture a debugger backtrace or crash dump.
Identify the cause, add a failing regression test, and implement a scoped fix.
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.
Activity
zackees commentedon Oct 13, 2026
Claiming.
zackees commentedon Oct 13, 2026
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.deps/w32-pthreads/autostatic.cregisterspthread_win32_process_attach_npthrough both.ctorsand.CRT$XCU; if neither runs in a Rust-linked MinGW exe,ptw32_processInitializedstays false and the staticPTHREAD_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.pthread_win32_process_attach_npcheck plusRUST_BACKTRACE/ minidump upload) to get the faulting function. Releasing the claim.nathan-v commentedon Oct 14, 2026
Claiming: #441, investigate the Windows MinGW profiler_parity crash.
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
claimedlabel; my account does not have permission to apply labels.obs-c-oracle: Keep w32-pthreads off MinGW's pthread symbols (GREEN)
bug: obs-util: windows-gnu profiler_parity access violation (#682)