[alsa-devel] amixer cget :Assertion `ctl && info && (info->id.name[0] || info->id.numid)' failed. Aborted

Takashi Iwai tiwai at suse.de
Mon Oct 3 15:49:53 CEST 2011


At Sat, 1 Oct 2011 11:30:44 +0800,
Raymond Yau wrote:
> 
> There is assertion when specify iface=PCM  or iface=PCM,name='' when
> using amixer -c0 cget
> 
> according to the synthax
> 
> [[iface=<iface>,][name='name',][index=<index>,][device=<device>,][subdevice=<subdevice>]]|[numid=<numid>]
> 
> 
> amixer -c0 cget iface=PCM
> amixer: control.c:258: snd_ctl_elem_info: Assertion `ctl && info &&
> (info->id.name[0] || info->id.numid)' failed.
> Aborted
> 
> amixer -c0 cget iface=PCM,name=''
> amixer: control.c:258: snd_ctl_elem_info: Assertion `ctl && info &&
> (info->id.name[0] || info->id.numid)' failed.
> Aborted

So, the empty string isn't checked before assert().  It's bad.
It must be easy to fix.  Care to create and send a patch?


thanks,

Takashi


More information about the Alsa-devel mailing list