pulseaudio crashes on resampler.c:1230,
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pulseaudio (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 11.10 (upgraded from 11.04). After upgrade: Pulseaudio crashes on error below (have verbose output from pulseaudio) when certain HTML embedded audio files are played in Chrome, Firefox or Opera. This affects entire sound system. For example, playing Amarok song then going to browser and going to site that plays music (www.screvs.com), pulseaudio then crashes and all sound including Amarok stops. Uninstalled pulseaudio and there are no more problems. Reinstalled pulseaudio and problems came back.
D: [alsa-sink] sink.c: Processing rewind...
D: [alsa-sink] source.c: Processing rewind...
E: [alsa-sink] resampler.c: Assertion '(unsigned) data.input_
The error in pulseaudio is from a failed assert for the in_n_frames check against input_frames_used:
pa_assert( (unsigned) data.input_ frames_ used == in_n_frames);
I ran pulseaudio through GDB and re-created error. Here are the exact steps I took to do that:
Ubuntu 11.10
pulseaudio 1.0
1. Uninstalled pulseaudio and installed pulseaudio-dbg so I'd have symbols
2. Started pulseaudio under GDB
3. Re-created error:
a) Started Chrome browser (version 15)
b) Went to website that has HTML <embed> audio track (*not* HTML 5)
c) pulseaudio crashed as expected and reported in this ticket
Here is the GDB back trace at the time of this error:
(gdb) bt sysdeps/ unix/sysv/ linux/raise. c:64 resample (r=0x7f1610, input=0x7f1758, in_n_frames=441, output=0x7f1788, out_n_frames= 0x7fffee01f3fc) at pulsecore/ resampler. c:1214 resampler. c:1137 resampler. c:1193 1f670, volume= 0x7fffee01f688) at pulsecore/ sink-input. c:875 0x7fffee021d18, info=0x7fffee01 f670, maxinfo=32) at pulsecore/ sink.c: 913 0x7fffee021d70) at pulsecore/ sink.c: 1152 render_ into_full (s=0x68b5f0, target= 0x7fffee021e00) at pulsecore/ sink.c: 1236 <synthetic pointer>, u=0x6f0b10) at modules/ alsa/alsa- sink.c: 627 alsa/alsa- sink.c: 1639 x86_64- linux-gnu/ libpulsecommon- 1.0.so 2700) at pthread_ create. c:304 unix/sysv/ linux/x86_ 64/clone. S:112
#0 0x00007ffff66483a5 in __GI_raise (sig=6) at ../nptl/
#1 0x00007ffff664bb0b in __GI_abort () at abort.c:92
#2 0x00007ffff7b7bba5 in libsamplerate_
#3 0x00007ffff7b7e0b9 in resample (input=0x7f1758, r=0x7f1610) at pulsecore/
#4 pa_resampler_run (r=0x7f1610, in=0x7fffee01f550, out=0x7fffee01f570) at pulsecore/
#5 0x00007ffff7b8ac91 in pa_sink_input_peek (i=0x7ece10, slength=17024, chunk=0x7fffee0
#6 0x00007ffff7b911aa in fill_mix_info (s=0x68b5f0, length=
#7 0x00007ffff7b939d7 in pa_sink_render_into (s=0x68b5f0, target=
#8 0x00007ffff7b93f29 in pa_sink_
#9 0x00007fffee044770 in mmap_write (on_timeout=false, polled=false, sleep_usec=
#10 thread_func (userdata=0x6f0b10) at modules/
#11 0x00007ffff7931c78 in ?? () from /usr/lib/
#12 0x00007ffff7048efc in start_thread (arg=0x7fffee02
#13 0x00007ffff66f389d in clone () at ../sysdeps/
#14 0x0000000000000000 in ?? ()