Skip to content

quality: Recheck valgrind app-launch allocations after clean hotkey shutdown #448

Closed

Description

@zackees

Context

The first valgrind app launch in #160 died in the X11 hotkey thread (#126), so allocations still live at the crash were reported through OBS code. #126 is now closed. Recheck these under a clean headless launch and shutdown before calling them leaks.

Work

  • Build and run the app under valgrind with the sanitizer harness from Meta: sanitizer launch passes, round 2 (log errors, teardown, test wiring) #160, including QT_ENABLE_REGEXP_JIT=0 to avoid the known PCRE2 JIT limitation.
  • Confirm the OBS process exits normally; retain the full log and command line.
  • Triage any definitely-lost stacks for config items, canvas, portal inhibitor, and X11 hotkey display; file a separate issue for each reproducible OBS-owned leak.
  • Record a clean result or link the resulting issues here.

This is deferred verification from #160, not a claim that those allocations leak.

Activity

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

    @zackees
    MemberAuthor

    Claiming: #448. Dispatching sanitizers.yaml on master (headless launch plus SIGINT shutdown, via the #160 harness), then triaging the report here.

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

    @zackees
    MemberAuthor

    Sanitizer launch on master (run, after #457 fixed the harness's version string):

    Kept open until #462 is fixed and an exit-time leak report from a clean shutdown can be read.

  5. removed
    claimed
    on Oct 15, 2026
  6. github-actions commented on Oct 15, 2026

    @github-actions

    Claim bot: claim expired: no progress from @zackees in 48 h. Anyone may claim it now.

  7. zackees commented on Oct 20, 2026

    @zackees
    MemberAuthor

    Claiming: taking over the expired clean-shutdown Valgrind verification. 1. Run the existing sanitizer harness on current master with tools=valgrind, retaining QT_ENABLE_REGEXP_JIT=0 and the normal launch/grace periods. 2. Confirm process exit and inspect the full allocation stacks for config items, canvas, portal inhibition, and the hotkey display. 3. File reproducible OBS-owned findings separately and submit a concise evidence report today. No application fix is assumed before the clean-exit evidence exists.

  8. added
    claimed
    on Oct 20, 2026
  9. zackees commented on Oct 20, 2026

    @zackees
    MemberAuthor

    The existing Valgrind sanitizer harness is running on exact source 06b9f8f: https://github.com/obs-rust/obs-studio/actions/runs/39506926132. It uses the original C-libobs baseline, tools=valgrind, launch_seconds=45 (the harness multiplies this to 180 s), the existing 240 s graceful-shutdown allowance, and QT_ENABLE_REGEXP_JIT=0. The dedicated branch avoids cancelling any master sanitizer run. Findings will be triaged from app-exit.txt and complete raw logs, independently of the workflow conclusion.

  10. zackees commented on Oct 20, 2026

    @zackees
    MemberAuthor

    Completed the deferred verification in #1569.

    • Ran the existing sanitizer harness on 06b9f8f with QT_ENABLE_REGEXP_JIT=0: run 39506926132.
    • OBS completed shutdown following SIGINT; no forced kill. Harness status is app exit=99 (exited): 99 is the configured Valgrind diagnostic exit code. Final context/canvas cleanup and OBS allocator zero-leak report are retained.
    • Inspected both definitely-lost stacks. Neither identifies the config-item, canvas-object, portal-inhibitor or X11 hotkey-display allocation families questioned after the original crash. No reproducible OBS-owned leak was established for a separate leak issue.
    • This was not an all-clean Valgrind run: 312 direct + 120 indirect bytes remain in fontconfig and an unsymbolized graphics allocation; the latter requires symbols before ownership can be assigned. Other app diagnostics and unit-test failures are explicitly retained as limits, not treated as passing checks.

    Full app stdout/stderr, full Valgrind log, exit record, commands, hashes and ownership analysis now survive artifact expiry in the evidence report. The requested fresh-profile clean-shutdown recheck is complete; no claim is made about all runtime workloads or other backends.

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

    claimedquality

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions