gmediarender segfaults on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
GMediaRender does not start when started as a service, and crashes when started on the command line.
package version: 0.0.7~git201403
$ gmediarender --logfile=
INFO [2014-11-14 20:13:18.578340 | main] gmediarender 0.0.7-git log started [ gmediarender 0.0.7-git (libupnp-1.6.17; glib-2.42.0; gstreamer-1.4.3) ]
INFO [2014-11-14 20:13:18.584364 | output] Using output module: gst (GStreamer multimedia framework)
INFO [2014-11-14 20:13:18.633999 | connmgr] Registering support for 'application/x-hls'
INFO [2014-11-14 20:13:18.639542 | connmgr] Registering support for 'audio/*'
INFO [2014-11-14 20:13:18.651792 | connmgr] Registering support for 'audio/x-raw'
INFO [2014-11-14 20:13:18.743386 | connmgr] Registering support for 'video/mpeg'
INFO [2014-11-14 20:13:18.748977 | connmgr] Registering support for 'audio/mpeg'
INFO [2014-11-14 20:13:18.751780 | connmgr] Registering support for 'audio/x-mpeg'
INFO [2014-11-14 20:13:18.752076 | connmgr] Registering support for 'audio/x-scpls'
INFO [2014-11-14 20:13:18.752261 | connmgr] Registering support for 'audio/
INFO [2014-11-14 20:13:18.752437 | connmgr] Registering support for 'audio/x-ac3'
[...snip...]
INFO [2014-11-14 20:13:23.107708 | connmgr] Registering support for 'application/
INFO [2014-11-14 20:13:23.139872 | connmgr] Registering support for 'video/x-mimic'
INFO [2014-11-14 20:13:23.177525 | connmgr] Registering support for 'audio/x-amr-nb-sh'
INFO [2014-11-14 20:13:23.182473 | connmgr] Registering support for 'audio/x-amr-wb-sh'
INFO [2014-11-14 20:13:23.189737 | connmgr] Registering support for 'audio/
INFO [2014-11-14 20:13:23.221377 | connmgr] Registering support for 'application/x-icy'
INFO [2014-11-14 20:13:23.303935 | connmgr] Registering support for 'image/jp2'
INFO [2014-11-14 20:13:23.357466 | connmgr] Registering support for 'application/
INFO [2014-11-14 20:13:23.400098 | connmgr] Registering support for 'application/mxf'
Segmentation fault
The same using gdb:
[...snip...]
INFO [2014-11-14 20:29:35.304225 | connmgr] Registering support for 'audio/x-xi'
INFO [2014-11-14 20:29:40.014707 | connmgr] Registering support for 'application/
INFO [2014-11-14 20:29:44.959509 | connmgr] Registering support for 'video/x-mimic'
INFO [2014-11-14 20:29:48.203822 | connmgr] Registering support for 'audio/x-amr-nb-sh'
INFO [2014-11-14 20:29:48.212237 | connmgr] Registering support for 'audio/x-amr-wb-sh'
INFO [2014-11-14 20:29:48.217083 | connmgr] Registering support for 'audio/
INFO [2014-11-14 20:29:51.762901 | connmgr] Registering support for 'application/x-icy'
[New Thread 0xb0b0c460 (LWP 12893)]
INFO [2014-11-14 20:30:06.846872 | connmgr] Registering support for 'image/jp2'
INFO [2014-11-14 20:30:12.866230 | connmgr] Registering support for 'application/
INFO [2014-11-14 20:30:14.753974 | connmgr] Registering support for 'application/mxf'
[Thread 0xb0b0c460 (LWP 12893) exited]
Program received signal SIGSEGV, Segmentation fault.
strchr () at ../ports/
28 ../ports/
(gdb) bt
#0 strchr () at ../ports/
#1 0xb6d688d8 in g_param_
#2 0xb6d636a4 in g_object_set_valist () from /usr/lib/
#3 0xb6d6400c in g_object_set () from /usr/lib/
Cannot access memory at address 0x140
#4 0xaffa0110 in ?? () from /usr/lib/
Cannot access memory at address 0x140
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) info threads
Id Target Id Frame
2 Thread 0xb600a460 (LWP 10864) "gmediarender" 0xb6c437a4 in __pthread_cond_wait (cond=0x2a135e70,
cond@
* 1 Thread 0xb6a21000 (LWP 10754) "gmediarender" strchr () at ../ports/
(gdb) thread 2
[Switching to thread 2 (Thread 0xb600a460 (LWP 10864))]
#0 0xb6c437a4 in __pthread_cond_wait (cond=0x2a135e70, cond@entry=<error reading variable: Cannot access memory at address 0x7268636a>, mutex=0x2a135e24)
at pthread_
187 pthread_
(gdb) bt
#0 0xb6c437a4 in __pthread_cond_wait (cond=0x2a135e70, mutex=0x2a135e24) at pthread_
#1 0xb6040ca4 in ?? () from /usr/lib/
/build/
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
Changed in raspbian: | |
status: | Fix Released → Fix Committed |
Changed in raspbian: | |
status: | Fix Committed → New |
This bug is worked-around by uninstalling gstreamer1. 0-plugins- bad. It looks like the actual bug is within that package, looking at the stack trace.
Here is a more useful stack trace (I installed some relevant -dbg packages):
Program received signal SIGSEGV, Segmentation fault. sysdeps/ arm/armv6/ strchr. S:28 sysdeps/ arm/armv6/ strchr. S: No such file or directory. sysdeps/ arm/armv6/ strchr. S:28 spec_pool_ lookup (pool=0x32cd8, param_name= param_name@ entry=0x2 <error: Cannot access memory at address 0x2>, type=11052728, walk_ancestors= walk_ancestors@ entry=1) at /build/ glib2.0- 87CS9e/ glib2.0- 2.42.0/ ./gobject/ gparam. c:1070 object@ entry=0xdb2a70, property_ name=first_ property_ name@entry= 0xaf93ce68 "max-size-buffers", var_args=..., var_args@entry=...) glib2.0- 87CS9e/ glib2.0- 2.42.0/ ./gobject/ gobject. c:2121 name=0xaf93ce68 "max-size-buffers") glib2.0- 87CS9e/ glib2.0- 2.42.0/ ./gobject/ gobject. c:2269 0xa008a8) at dvbbasebin.c:419 create_ instance (type=<optimized out>) at /build/ glib2.0- 87CS9e/ glib2.0- 2.42.0/ ./gobject/ gtype.c: 1865 new_internal (class=0x0, class@entry= 0xffdd58, params= params@ entry=0x0, n_params= n_params@ entry=0) glib2.0- 87CS9e/ glib2.0- 2.42.0/ ./gobject/ gobject. c:1774 type=16768120, n_parameters= n_parameters@ entry=0, parameters= parameters@ entry=0x0) glib2.0- 87CS9e/ glib2.0- 2.42.0/ ./gobject/ gobject. c:1922 factory_ create (factory=0x75120, name=name@ entry=0x0) at gstelementfacto ry.c:376 gstreamer. c:133 gstreamer_ init () at output_ gstreamer. c:494
strchr () at ../ports/
28 ../ports/
(gdb) bt
#0 strchr () at ../ports/
#1 0xb6d678d8 in g_param_
owner_
#2 0xb6d626a4 in g_object_set_valist (object=
first_
at /build/
#3 0xb6d6300c in g_object_set (_object=0xdb2a70, first_property_
at /build/
#4 0xaf934110 in dvb_base_bin_init (dvbbasebin=
#5 0xb6d80d48 in g_type_
#6 0xb6d5fee4 in g_object_
at /build/
#7 0xb6d61ed8 in g_object_newv (object_
at /build/
#8 0xb6df4424 in gst_element_
#9 0x0001804c in scan_mime_list () at output_
#10 output_
#11 0x000126f4 in main (argc=<optimized out>, argv=<optimized out>) at main.c:249