[Pkg-alsa-devel] Bug#913264: libasound2 device enumeration leaks

RĂ©mi Denis-Courmont courmisch at gmail.com
Thu Nov 8 19:46:28 GMT 2018

Package: libasound2
Version: 1.1.7-1
Severity: normal

Dear Maintainer,

Since updating to version 1.1.7, the VLC test suite fails with ASan due
to leaks within libasound2:

==19562==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 432 byte(s) in 6 object(s) allocated from:
    #0 0x7f8041c9e0b8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe90b8)
    #1 0x7f803c630634  (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x30634)
    #2 0x60700008d74f  (<unknown module>)

Indirect leak of 30 byte(s) in 6 object(s) allocated from:
    #0 0x7f8041bef7e0 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x3a7e0)
    #1 0x7f803c63184c in snd_config_make (/usr/lib/x86_64-linux-gnu/libasound.so.2+0x3184c)

SUMMARY: AddressSanitizer: 462 byte(s) leaked in 12 allocation(s).
FAIL test_libvlc_core (exit status: 1)

It looks like snd_device_name_free_hint() is not freeing everything it

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fi_FI.UTF-8), LANGUAGE=fr_FR:fr (charmap=UTF-8) (ignored: LC_ALL set to fi_FI.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libasound2 depends on:
ii  libasound2-data  1.1.7-1
ii  libc6            2.27-8

libasound2 recommends no packages.

Versions of packages libasound2 suggests:
ii  libasound2-plugins  1.1.7-2

-- no debconf information

More information about the Pkg-alsa-devel mailing list