Comment 2 for bug 885347

Revision history for this message
Retromingent (ray-rwalk2730) wrote :

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
#0 0x00007ffff66483a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff664bb0b in __GI_abort () at abort.c:92
#2 0x00007ffff7b7bba5 in libsamplerate_resample (r=0x7f1610, input=0x7f1758, in_n_frames=441, output=0x7f1788, out_n_frames=0x7fffee01f3fc) at pulsecore/resampler.c:1214
#3 0x00007ffff7b7e0b9 in resample (input=0x7f1758, r=0x7f1610) at pulsecore/resampler.c:1137
#4 pa_resampler_run (r=0x7f1610, in=0x7fffee01f550, out=0x7fffee01f570) at pulsecore/resampler.c:1193
#5 0x00007ffff7b8ac91 in pa_sink_input_peek (i=0x7ece10, slength=17024, chunk=0x7fffee01f670, volume=0x7fffee01f688) at pulsecore/sink-input.c:875
#6 0x00007ffff7b911aa in fill_mix_info (s=0x68b5f0, length=0x7fffee021d18, info=0x7fffee01f670, maxinfo=32) at pulsecore/sink.c:913
#7 0x00007ffff7b939d7 in pa_sink_render_into (s=0x68b5f0, target=0x7fffee021d70) at pulsecore/sink.c:1152
#8 0x00007ffff7b93f29 in pa_sink_render_into_full (s=0x68b5f0, target=0x7fffee021e00) at pulsecore/sink.c:1236
#9 0x00007fffee044770 in mmap_write (on_timeout=false, polled=false, sleep_usec=<synthetic pointer>, u=0x6f0b10) at modules/alsa/alsa-sink.c:627
#10 thread_func (userdata=0x6f0b10) at modules/alsa/alsa-sink.c:1639
#11 0x00007ffff7931c78 in ?? () from /usr/lib/x86_64-linux-gnu/libpulsecommon-1.0.so
#12 0x00007ffff7048efc in start_thread (arg=0x7fffee022700) at pthread_create.c:304
#13 0x00007ffff66f389d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()