aplay segfaults with custom .asoundrc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alsa-lib (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
With the following ~/.asoundrc file the aplay program from alsa-utils package version 1.0.11-6ubuntu2 segfaults in verbose mode.
------------ .asoundrc
pcm.20to51 {
type plug
slave.pcm cutoffsub
ttable {
0.0 1
1.1 1
0.2 1
1.3 1
0.4 0.5
1.4 0.5
0.5 0.5
1.5 0.5
}
}
pcm.cutoffsub {
type ladspa
slave.pcm "plughw:0,0"
path "/usr/lib/ladspa"
plugins {
0 {
}
1 {
}
}
}
------------ .asoundrc
------------ The output of aplay
$ aplay -v -D 20to51 ~/test.wav
Playing WAVE '/home/
Plug PCM: Route conversion PCM (sformat=S16_LE)
Transformation table:
0 <- 0
1 <- 1
2 <- 0
3 <- 1
4 <- 0*0.5 + 1*0.5
5 <- 0*0.5 + 1*0.5
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 2049
period_size : 683
period_time : 15487
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 683
xfer_align : 683
start_threshold : 2049
stop_threshold : 2049
silence_
silence_size : 0
boundary : 1074266112
Slave: Linear Integer <-> Linear Float conversion PCM (FLOAT_LE)
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 6
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 2049
period_size : 683
period_time : 15487
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 683
xfer_align : 683
start_threshold : 2049
stop_threshold : 2049
silence_
silence_size : 0
boundary : 1074266112
Slave: LADSPA PCM
Playback:
Policy: none
Filename: /usr/lib/
Plugin Name: 4 Pole Low-Pass Filter with Resonance (FCRCIA)
Plugin Label: lp4pole_fcrcia_oa
Plugin Unique ID: 1672
Instances:
Depth: 0
InPorts: -Segmentation fault
------------ The output of aplay
------------ backtrace from gdb
#0 0xb7da1c0b in strlen () from /lib/tls/
#1 0xb7d74874 in _IO_vfprintf_
#2 0xb7d750b2 in buffered_vfprintf () from /lib/tls/
#3 0xb7d71020 in _IO_vfprintf_
#4 0xb7ed1348 in snd_output_
#5 0xb7ed1371 in snd_output_printf () from /usr/lib/
#6 0xb7f19842 in snd_pcm_
from /usr/lib/
#7 0xb7f19a3c in snd_pcm_
from /usr/lib/
#8 0xb7f19b14 in snd_pcm_
from /usr/lib/
#9 0xb7ee8160 in snd_pcm_dump () from /usr/lib/
#10 0xb7f182f6 in _snd_pcm_
#11 0xb7ee8160 in snd_pcm_dump () from /usr/lib/
#12 0xb7eff248 in snd_pcm_
from /usr/lib/
#13 0xb7ee8160 in snd_pcm_dump () from /usr/lib/
#14 0xb7f09d52 in _snd_pcm_plug_open () from /usr/lib/
#15 0xb7ee8160 in snd_pcm_dump () from /usr/lib/
#16 0x0804b892 in ?? ()
#17 0x08079678 in ?? ()
#18 0x08054028 in ?? ()
#19 0x000002ab in ?? ()
#20 0x00000000 in ?? ()
------------ backtrace from gdb
slave.pcm "plughw:0,0"
in pcm.cutoffsub {} should read slave.pcm "hw:0,0"