Skip to content

bug: obs-c-oracle: pthread probe macro redefinition blocks Fast Gate #4069

Open

Description

@zackees

Location: rust/obs-c-oracle/oracle/output_pause_queries.c:41-42. The fixture replaces pthread_mutex_lock/unlock macros already defined by build.rs GNU_ORACLE_RENAMES. Class: compile failure under -Werror. Fast Gate windows-gnu oracle compilation fails on master since #4059; verified push runs 42516069306 and 42518709778 stop there. Proposed fix: undefine the two inherited macros immediately before installing fixture probes, after their bodies have already bound to the renamed real functions. Reproduce with soldr cargo test -p obs-c-oracle --locked --no-run --target x86_64-pc-windows-gnu; retain the existing lock/unlock sentinel test.

Activity

  1. added
    bug
    P0
    on Nov 8, 2026
  2. zackees commented on Nov 8, 2026

    @zackees
    MemberAuthor

    Claiming: repair the Fast Gate pthread macro collision at the maintainer’s request. 1. Capture local RED from the windows-gnu oracle build and trace generated renames. 2. Apply the minimal fixture-only override and verify the sentinel probe test. 3. Run the pinned local gate, open the PR, and enqueue after CI Gate passes. First PR this session.

  3. zackees commented on Nov 8, 2026

    @zackees
    MemberAuthor

    Local RED reproduced with SOLDR_RUSTC_WRAPPER=none SOLDR_PORCELAIN=0 soldr cargo test -p obs-c-oracle --locked --no-run --target x86_64-pc-windows-gnu: output_pause_queries.c:41:9 and :42:9 report pthread_mutex_lock/unlock redefined [-Werror]. Three-line fixture fix is committed (RED 8dd970ecb, GREEN 272f8afe3). Same command now exits 0, Finished test profile in 34.14s; replaying the exact failing C compiler command also exits 0 with empty stderr. Native output_pause_queries tests: 8 passed, including offset_is_read_between_matching_lock_and_unlock. Pinned local gate is running before the first push.

  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 9, 2026
  5. KelboLive commented on Nov 30, 2026

    @KelboLive
    Contributor

    Checked master (914f81f6): the defect described here is fixed. rust/obs-c-oracle/oracle/output_pause_queries.c now carries the #pragma push_macro + #undef pthread_mutex_lock/pthread_mutex_unlock sequence from #4168, and that file compiles clean.

    The only remaining failure of the reproduction command on a Windows host is a different file and a different cause: soldr cargo test -p obs-c-oracle --locked --no-run --target x86_64-pc-windows-gnu stops at oracle/encoder_error_ownership.c:120 with timespec_get/TIME_UTC undeclared, because this host's soldr mingw is the msvcrt variant (_UCRT undefined; the header declares timespec_get only under _UCRT).

    That path is not the Fast Gate: ci/local_gate.py only runs windows_gnu_no_run when host_platform.is_linux(), and its comment says soldr's mingw cross toolchain is for Linux.

    Suggesting close as fixed — the original macro collision no longer reproduces. I can't verify the Linux-host cross build from this Windows machine.

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

    P0bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions