Skip to content

infra: Windows Rust Tier 2 is red β€” test_core_setup_rules_steps crashes (exception 11) in the audio callersΒ #2912

Closed

Description

@zackees

Build 🧱 / Rust Tier 2 (windows-2025-vs2026) fails on every tree that selects the lane, in the C cmocka binary test_core_setup_rules_steps β€” the characterization test added by #2881 (obs-core: Port the core setup rules). Three failures, all Test failed with exception: (11):

Case Group Result
test_reset_audio_ticks callers ERROR Test failed with exception: (11)
test_monitoring_device callers ERROR Test failed with exception: (11)
GROUP TEARDOWN callers ERROR Test failed with exception: (11)

The steps group (12 cases, no libobs instance) passes; the callers group reaches obs_startup() fine (info: CPU Name …, canvas 'Main' … created) and test_reset_video_gates passes, so the crash is inside the audio path: the first statement of both failing cases is obs_reset_audio2(...) (libobs/obs.c.h:1610, which starts with obs_free_audio()), and the teardown crash is obs_shutdown() after those two partial resets.

Evidence

  • Pull run 40875411169 at 66819ccaf (PR curl: ask for brotli again where the decoder is pinned (#2211)Β #2906), job Build 🧱 / Rust Tier 2 (windows-2025-vs2026) 123456184550: 2 FAILED TEST(S) β€” test_reset_audio_ticks, test_monitoring_device.
  • Pull run 40877717318 at b6704321e (same PR, rebased onto afeacf4c7), job 123462904692: the identical two cases and the identical teardown exception. Deterministic, not a flake β€” the same binary, the same three errors, two runs 30 minutes apart.
  • Linux Tier 2 in both runs is green for the same source (test_core_setup_rules_steps passes there), so this is Windows-only.
  • git log 904d6eb2b..origin/master -- test/cmocka shows the test file is unchanged since the port landed, and both runs contain obs-core-setup-rules.c as merged.

What is not verified

  • Whether a tree without any other change is red the same way. The lane is selected by a CMakeLists.txt edit, so this is the first lane run since obs-core: Port the core setup rulesΒ #2881 landed; PR curl: ask for brotli again where the decoder is pinned (#2211)Β #2906's diff touches only CMakeLists.txt, docs/features.md and shared/file-updater/ + two test/cmocka curl tests, none of which the crashing binary compiles in. The confirmation run on a clean master branch has not been made.
  • Which libobs mode crashes (C, hybrid or libobs-c-reference) β€” the log shows one callers group run and does not label the flavour.
  • The macOS Tier 2 job for the same commit was still running when this was filed.

Suggested first step

Run the binary under the Windows runner with a debugger or with cdb catch on the exception to get the exact frame; then decide whether the fix is the audio reset path (obs_free_audio()/obs_init_audio() re-entry) or a guard in the test (SKIP when the runner has no audio endpoint), since the runner reports no audio device.

Red for every PR that selects the Windows Tier 2 lane until this is fixed.

Activity

  1. added
    bug
    P0
    size:S
    on Oct 29, 2026
  2. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Claiming: investigation

    Plan:

    1. Confirm the red is master-wide, not lane-selection noise: run the binary on a Windows runner from a tree with no other change (a throwaway branch off origin/master whose only edit selects the lane).
    2. Get the frame: cdb -c "sxe -c \"kb;q\" av" test_core_setup_rules_steps.exe on the same runner, or the crash mini-dump, so the report names the function rather than the exception number.
    3. Decide the fix location β€” the audio reset path (obs_free_audio() / obs_init_audio() re-entry in libobs/obs.c.h:1610) versus a SKIP in the test when the runner exposes no audio endpoint β€” and land it as RED/GREEN with the Windows lane as the signal.
    4. /ready this issue once step 1 or 2 has an answer, then take the implementation claim.

    Evidence added since filing: Build 🧱 / Rust Tier 2 (macos-26) for the same commit b6704321e finished success in run 40877717318, so the same test file and the same obs-core-setup-rules.c pass on AppleClang β€” the crash is Windows-only.

  3. added
    needs-investigation
    on Oct 29, 2026
  4. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Fixed by #2911, merged as a32bad067.

    The investigation's two questions are answered:

    1. Root cause β€” obs_free_audio() destroyed task_mutex/monitoring_mutex unconditionally while only obs_init_audio() created them, so obs_reset_audio2(NULL) on a core that was never opened destroyed zeroed memory. On glibc that is a no-op, which is why only the Windows pthread layer crashed (test_reset_audio_ticks, test_monitoring_device, GROUP TEARDOWN, exception 11).
    2. The red was master-wide, not lane-selection noise β€” fix(libobs): only destroy the audio mutexes obs_init_audio created (#2910)Β #2911's branch reproduces the failure on the Windows lane and then passes it with the flag: Build 🧱 / Rust Tier 2 (windows-2025-vs2026) is success on head 56853180c in run 40879828636, the same job that failed in runs 40875411169 and 40877717318.

    The scope gap noted in the report (a libobs/-only change skips the Windows Tier 2 lane on PRs, so the first exercise of the #2881 characterization test on Windows was an unrelated PR touching shared/) is not addressed here; it stays a separate CI-scope question.

    Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0bugneeds-investigationsize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions