Skip to content

infra(sanitize): full allocation stacks under ASan - #2036

Merged
zackees merged 1 commit into
masterfrom
infra/sanitize-full-malloc-stacks
Oct 24, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/sanitize-full-malloc-stacks

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #2035

Adds fast_unwind_on_malloc=0 to ASAN_OPTIONS in sanitize.sh. Distro FFmpeg is built without frame pointers, so leak stacks used to stop at av_malloc.

RED (recorded locally): in run 40044944211, the test_media_remux and test_media_alpha_network leaks have two frames each, and triage shows their location as None. GREEN: an ASan run on this branch, linked below, should show the OBS caller for those leaks. ./lint passes. Config only, so Tiers 1–4 don't apply.

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

@zackees
zackees enabled auto-merge October 24, 2026 02:54
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

GREEN: ASan run 40056096027 (succeeded) now gives full stacks. The test_media_remux and test_media_alpha_network leaks now name their OBS callers: media_remux_job_create (Rust Job::create), shared/media-playback media.c.h:824 init_avformat, and the test's own check_clip. Every one is allocated inside avformat_find_stream_info (av_grow_packet / av_buffer_ref in libavformat 62 and libavcodec 62), and the callers do call avformat_close_input. So this looks like an FFmpeg-internal leak, not an OBS one. I'll treat it as external unless a narrower repro says otherwise.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

sanitize: leak stacks stop at av_malloc (fast unwind through FFmpeg)

1 participant