GNOME Bugzilla – Bug 731093
segfault in gdp / shmsrc pipeline
Last modified: 2014-06-03 22:17:43 UTC
I am getting a segfault with the following gdppay/shmsink, shmsrc/gdpdepay pipelines. However I am not sure this is a valid way to use gdppay / gdpdepay. The segfault happens on the reader side. writer: gst-launch-1.0 uridecodebin uri=file:////opt/Videos/test.avi ! queue ! videoconvert ! video/x-raw, format="RGBA" ! gdppay ! shmsink socket-path=/tmp/sock shm-size=100000000 reader: gdb /usr/bin/gst-launch-1.0 shmsrc socket-path=/tmp/sock is-live=1 ! gdpdepay ! videoconvert ! xvimagesink Setting pipeline to PAUSED ... [New Thread 0x7ffff472d700 (LWP 15610)] [New Thread 0x7ffff3f2c700 (LWP 15611)] Pipeline is live and does not need PREROLL ... [New Thread 0x7ffff372b700 (LWP 15612)] Setting pipeline to PLAYING ... New clock: GstSystemClock (gst-launch-1.0:15606): GStreamer-CRITICAL **: gst_structure_id_get_value: assertion 'structure != NULL' failed (gst-launch-1.0:15606): GLib-GObject-CRITICAL **: g_value_get_boxed: assertion 'G_VALUE_HOLDS_BOXED (value)' failed Program received signal SIGSEGV, Segmentation fault.
+ Trace 233655
Thread 140737286162176 (LWP 15611)
Tested against recent gst-plugins-bad (ad825756), gstreamer (066fdcd4), gst-plugins-base ( ba876556), gst-plugins-good (edc7d902) . Also against libgstreamer1.0 (1.2.4-0ubuntu1) on ubuntu 14.04. Trace is very similar to https://bugzilla.gnome.org/show_bug.cgi?id=674100
Was a small bug in shmsink, it's now solved. commit 037f27756618b919056756c25d9f38ff1243c55b Author: Olivier Crête <olivier.crete@collabora.com> Date: Mon Jun 2 21:43:56 2014 -0400 gdp: Fail gracefully if event can't be parsed https://bugzilla.gnome.org/show_bug.cgi?id=731093 commit db0992284298c7f644841df2f91a1e9ad277230b Author: Olivier Crête <olivier.crete@collabora.com> Date: Mon Jun 2 21:43:34 2014 -0400 shmsink: Allocate enough memory to do alignment https://bugzilla.gnome.org/show_bug.cgi?id=731093
Backported to 1.2 branch also: commit 277b8c34e7214177764833b73f17e43ced496f8f Author: Olivier Crête <olivier.crete@collabora.com> Date: Mon Jun 2 21:51:38 2014 -0400 tests: Take account of memory alignment in shm test commit dc63c5ff517c5726c66a1a33bb3736d50306d23f Author: Olivier Crête <olivier.crete@collabora.com> Date: Mon Jun 2 21:43:34 2014 -0400 shmsink: Allocate enough memory to do alignment https://bugzilla.gnome.org/show_bug.cgi?id=731093
thanks for the quick fix!