alsa-utils: alsactl segfaults after upgrading to 1.2.5
After upgrading alsa-utils and alsa-lib to version 1.2.5 on a Alpine edge x86_64 system, alsactl is no longer working properly:
$ dmesg
[...]
alsactl[1516]: segfault at c ip 00007f9d07490458 sp 00007ffd19f415f0 error 4 in libasound.so.2.0.0[7f9d0748a000+67000]
Code: c5 28 48 89 55 08 48 89 43 30 48 89 6b 28 48 89 10 31 c0 eb 05 b8 ef ff ff ff 5b 5d 41 5c 41 5d 41 5e c3 41 54 55 48 89 fd 53 <8b> 47 0c 85 c0 7e 07 ff c8 89 47 0c eb 65 8b 47 08 83 f8 03 74 2d
udevd[1395]: '/usr/sbin/alsactl restore 0' [1516] terminated by signal 11 (Segmentation fault)
[...]
$ gdb alsactl
(gdb) run restore 0
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ecb458 in snd_config_delete () from /usr/lib/libasound.so.2
(gdb) bt
#0 0x00007ffff7ecb458 in snd_config_delete () from /usr/lib/libasound.so.2
#1 0x000055555555f977 in load_state (cfgdir=cfgdir@entry=0x5555555670cc "/var/lib/alsa",
file=0x7fffffffeaa0 "", file@entry=0x5555555670b1 "/var/lib/alsa/asound.state",
initfile=initfile@entry=0x555555567095 "/usr/share/alsa/init/00main", initflags=initflags@entry=0,
cardname=cardname@entry=0x7fffffffee46 "0", do_init=do_init@entry=1) at state.c:1679
#2 0x000055555555b705 in main (argc=3, argv=<optimized out>) at alsactl.c:440
Edited by Mogens Jensen