Skip to content

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

Closed

Description

@zackees

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.

Activity

  1. zackees commented on Oct 24, 2026

    @zackees
    MemberAuthor

    Claiming: one-line ASAN_OPTIONS change, verified with an ASan run on the branch.

  2. added
    claimed
    on Oct 24, 2026
  3. zackees commented on Oct 24, 2026

    @zackees
    MemberAuthor

    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.

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