[alsa-devel] snd_device_name_hint segfaults

David Henningsson david.henningsson at canonical.com
Thu Oct 3 22:16:17 CEST 2013

On 10/03/2013 08:36 PM, Forest Bond wrote:
>>>>> Here is the backtrace:
>>>>> #0  0x003f0e78 in __strcpy_chk () from /lib/i386-linux-gnu/libc.so.6
>>>>> #1  0x0625084b in strcpy (__src=0x0, __dest=0xb6025e80 "pcm.(null)") at /usr/include/i386-li
>>>>> nux-gnu/bits/string3.h:105
>>>>> #2  try_config (config=0xaf1c4df0, list=0xb52fe804, base=0x323e962 "pcm", name=0x0) at nameh
>>>>> int.c:243
>>>>> #3  0x06251bc5 in add_software_devices (list=0xb52fe804, config=0xaf1c4df0) at namehint.c:51
>>>>> 2
>>>>> #4  snd_device_name_hint (card=-1, iface=<optimized out>, hints=0xb52fe90c) at namehint.c:59

>> In general, the configuration space itself should be static,
>> determined at the loading time.
> I've been meaning to follow up on this issue for a while.  Sorry for the delayed
> report.  We disabled PulseAudio idle exit and the problem went away, so it does
> appear to be related somehow.

Hi, a few weeks ago I came up with a related patch (based on an Ubuntu
bug report). This might be what you're looking for:


When I fixed it, I thought it was just an edge case, but if this avoids
access violations in standard scenarios for you, VLC, mythtv, chromium,
and others - maybe we should try to make an update, even for stable
Ubuntu releases (such as Ubuntu 12.04)?

David Henningsson, Canonical Ltd.

More information about the Alsa-devel mailing list