GNOME Bugzilla – Bug 665171
audio-sink: sigsegv while starting a call
Last modified: 2011-11-30 15:03:14 UTC
When I try to initiate a video call from Empathy to Gmail on the same computer I get a sigsegv. Program received signal SIGSEGV, Segmentation fault.
+ Trace 229174
Thread 2480929648 (LWP 22342)
I bisected a segfault to this commit: commit 24882e924af2c0d8576970440d92ac5b4eb25bc8 Author: Arun Raghavan <arun.raghavan@collabora.co.uk> Date: Mon Nov 21 23:27:08 2011 +0530 audio-src,audio-sink: Use lower latency values on pulsesrc/pulsesink https://bugzilla.gnome.org/show_bug.cgi?id=663124 Which added: + /* Set latency (buffering on the PulseAudio side) of 40ms and transfer data + * in 10ms chunks */ + g_object_set (sink, "buffer-time", 40000, "latency-time", 10000, NULL);
Created attachment 202420 [details] [review] [PATCH] audio-sink: fix segfault in g_object_set buffer-time + latency-time Splitting g_object_set (sink, "buffer-time", 40000, "latency-time", 10000, NULL); into g_object_set (sink, "buffer-time", 40000, NULL); g_object_set (sink, "latency-time", 10000, NULL); makes the call work; no more segfaults. I have no idea if the problem is from gobject, gstreamer, the sink implementation or some weird interaction of all of these on my system.
Hum I suppose you're using a 32 bits arch right? Could you please try this change instead: g_object_set (sink, "buffer-time", (gint64) 40000, "latency-time", (gint64) 10000, NULL);
Yep: - 32-bits - your patch works :)
Fixed in master; thanks! commit 2d4ca2150069139ab347bddce5a5c9264c1be3b1 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Wed Nov 30 15:59:36 2011 +0100 Properly cast buffer and latency times when setting properties This fix a crash on 32 bits system as gcc can't figure out the right size of the value. Thanks to Raluca-Elena Podiuc for her help in debugging this. https://bugzilla.gnome.org/show_bug.cgi?id=665171 This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.