[pulseaudio-tickets] [Bug 73692] New: crash in module-combine-sink adjust_rates
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 16 01:56:34 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=73692
Priority: medium
Bug ID: 73692
CC: lennart at poettering.net
Assignee: pulseaudio-bugs at lists.freedesktop.org
Summary: crash in module-combine-sink adjust_rates
QA Contact: pulseaudio-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: daniel at lbers.com
Hardware: Other
Status: NEW
Version: unspecified
Component: modules
Product: PulseAudio
Created attachment 92212
--> https://bugs.freedesktop.org/attachment.cgi?id=92212&action=edit
module-combine-sink: fix segfault
Pulseaudio often crashes here when pavucontrol is running.
Program received signal SIGSEGV, Segmentation fault.
adjust_rates (u=0x7cf7b0) at modules/module-combine-sink.c:219
219 uint32_t current_rate = o->sink_input->sample_spec.rate;
(gdb) p *o
$1 = {userdata = 0x7cf7b0, sink = 0x807880, sink_input = 0x0,
ignore_state_change = false, inq = 0x804780, outq = 0x8047b0,
inq_rtpoll_item_read = 0x0, inq_rtpoll_item_write = 0x0, outq_rtpoll_item_read
= 0x0, outq_rtpoll_item_write = 0x0, memblockq = 0x8047e0, total_latency = 0,
max_request = {value = 0}, requested_latency = {value = 0}, next = 0x0, prev =
0x0}
(gdb) p o->sink_input
$2 = (pa_sink_input *) 0x0
(gdb) list
214
215 base_rate = u->sink->sample_spec.rate;
216
217 PA_IDXSET_FOREACH(o, u->outputs, idx) {
218 uint32_t new_rate = base_rate;
219 uint32_t current_rate = o->sink_input->sample_spec.rate;
220
221 if (!o->sink_input ||
!PA_SINK_IS_OPENED(pa_sink_get_state(o->sink)))
222 continue;
223
Putting the check in line 221f before the assignment in 219 seems to fix this.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20140116/0ece441d/attachment.html>
More information about the pulseaudio-bugs
mailing list