[Pkg-alsa-devel] Bug#802651: [libasound2] SIG11 on 'aplay -L'

Michał Mirosław mirq-boogs at rere.qmqm.pl
Thu Oct 22 06:46:47 UTC 2015


Package: libasound2
Version: 1.0.28
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

'aplay -L' segfaults with ALSA configuration containing multiple "@hooks" 
entries. This happens, eg. with libasound2-plugins installed and having one 
@hooks in /etc/asound.conf like following:

@hooks [
        {
                func load
                files [ 
                        "/usr/share/alsa/bluetooth.conf"
                ]
                errors false
        }
]

Attached is a fix for the SIG11 alone - it adds a missing error return check 
from snd_config_copy.

There is another bug somewhere that triggers duplicate entry check in 
snd_config_add (called from snd_config_copy). I added following code
in snd_device_name_hint():

snd_output_t *errout;

fprintf(stderr, "********* snd_config_copy: %d\n", err);
snd_output_stdio_attach(&errout, stderr, 0);
snd_config_save(local_config, errout);
snd_output_close(errout);

And got this [fragment] that make snd_config_copy() fail (note two '0' entries 
below '@hooks'):

@hooks {
        0 {
                func pulse_load_if_running
                files { 
                        0 '/usr/share/alsa/pulse-alsa.conf'
                }
                errors false
        }
        0 {
                func load
                files { 
                        0 '/usr/share/alsa/bluetooth.conf'
                }
                errors false
        }
}

--- System information. ---
Architecture: amd64
Kernel:       Linux 4.2.3mq

Debian Release: 8.2
  900 stable          www.deb-multimedia.org 
  900 stable          security.debian.org 
  900 stable          repos.fds-team.de 
  900 stable          ftp.icm.edu.pl 
  800 oldstable       security.debian.org 
  800 oldstable       ftp.icm.edu.pl 
  700 unstable        www.deb-multimedia.org 
  700 unstable        ftp.icm.edu.pl 
  600 experimental    ftp.icm.edu.pl 
  500 stable          deb.opera.com 
  500 oldstable-proposed-updates ftp.icm.edu.pl 
  500 debian          packages.linuxmint.com 

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa-lib-sig11-fix.patch
Type: text/x-patch
Size: 1054 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20151022/8ded8f0e/attachment-0001.bin>


More information about the Pkg-alsa-devel mailing list