You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sanitize: leak stacks stop at av_malloc (fast unwind through FFmpeg) #2035
In ASan run 40044944211, the leaks in test_media_remux and test_media_alpha_network have only two frames: posix_memalign and then av_malloc (or one libavformat frame). The triage can't name an OBS location (None), and nobody can tell which OBS call leaked.
The cause is ASan's default fast_unwind_on_malloc=1, which walks frame pointers. Distro FFmpeg is built without them, so the unwind stops inside libav. Fix: add fast_unwind_on_malloc=0 to ASAN_OPTIONS in rust/tools/sanitize/sanitize.sh. That uses the DWARF unwinder for every allocation. It is slower, but this is a manual or nightly job.
Fixed by #2036 (merged). ASan leak stacks now go through FFmpeg. The media leaks turned out to be inside avformat_find_stream_info (FFmpeg-internal); details on #2036.
Activity
zackees commentedon Oct 24, 2026
Claiming: one-line ASAN_OPTIONS change, verified with an ASan run on the branch.
zackees commentedon Oct 24, 2026
Fixed by #2036 (merged). ASan leak stacks now go through FFmpeg. The media leaks turned out to be inside avformat_find_stream_info (FFmpeg-internal); details on #2036.
infra(sanitize): full allocation stacks under ASan (obs-rust#2035) (o…
perf(sanitize): fast allocation unwinder for the asan tests that cann…