Skip to content

Meta: ASan/UBSan launch + unit-test pass (Linux) #128

Closed
2 of 2 issues completed
Closed

Description

@zackees

First AddressSanitizer + UndefinedBehaviorSanitizer pass over OBS on Linux, at master ad60c0e39 with the default ENABLE_RUST_LIBOBS=OFF.

What ran

  • Build: RelWithDebInfo with -fsanitize=address,undefined -fno-omit-frame-pointer, frontend on. Browser, websocket, scripting, VLC, NVENC/QSV, AJA, WebRTC and VST were off for this pass.
  • Unit tests: all 42 cmocka tests passed, with no ASan or UBSan reports.
  • App: launched headless (Xvfb, Mesa llvmpipe) with a fresh profile, then SIGINT after 45 s.
  • Harness: rust/tools/sanitize/ (shell.nix + sanitize.sh), native on NixOS. Not committed yet.

Findings

Both are upstream OBS code, unchanged in this fork. Both are sub-issues of this one.

Not covered yet

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. zackees commented on Oct 11, 2026

    @zackees
    MemberAuthor

    Correction to the summary above: "all 42 cmocka tests passed, with no ASan or UBSan reports" was wrong. UBSan recovers by default and printed to the test's stdout rather than the sanitizer log file, and the first triage only checked exit codes and log files. test_formatted_filename had a dstr_left NULL-memcpy report locally too. It's now #174 (under #176). The workflow's triage.py scans test output too, so this can't be missed again.

  2. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Claiming: reconcile the first ASan/UBSan pass. Plan: verify #126 and #127 closures, update the historical checklist, record deferred clean-exit LeakSanitizer validation separately, then close this tracker. Expected PR: none; issue bookkeeping only.

  3. added
    claimed
    on Oct 13, 2026
  4. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Both launch crashes from this first pass, #126 and #127, are closed, and the checklist is updated. The deferred clean-exit LeakSanitizer run is tracked in #449; full ON-build coverage remains in #140. Closing this historical first-pass tracker.

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions