alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: Forest Bond <forest@forestbond.com>, Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_device_name_hint segfaults
Date: Thu, 03 Oct 2013 22:16:17 +0200	[thread overview]
Message-ID: <524DD091.6060105@canonical.com> (raw)
In-Reply-To: <20131003183623.GB29746@alittletooquiet.net>

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:

http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=23bf1dce9438c0cf74357928289aa8f06957c283

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.
https://launchpad.net/~diwic

      reply	other threads:[~2013-10-03 20:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-26 18:39 snd_device_name_hint segfaults Forest Bond
2013-06-27  6:23 ` Takashi Iwai
2013-06-27 14:30   ` Forest Bond
2013-06-27 15:05     ` Takashi Iwai
2013-06-27 15:03       ` Forest Bond
2013-10-03 18:36       ` Forest Bond
2013-10-03 20:16         ` David Henningsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=524DD091.6060105@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=forest@forestbond.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).