After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348072 - gst-launch (or any gst app) crash on startup
gst-launch (or any gst app) crash on startup
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.4
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-20 01:52 UTC by Will Webekind
Modified: 2006-07-28 09:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Will Webekind 2006-07-20 01:52:43 UTC
totem crashes on startup.

I have an AMD64 dual core running FC5.  Totem worked fine on a fresh install, however it started crashing after I installed some new packages.  I haven't been able to pin down which packages, if any, caused the crashes.  I recently updated totem using yum, and it still crashes (1.4.1-1)

I installed the totem-debuginfo package and ran totem in gdb.  Here's the backtrace:
(gdb) run
Starting program: /usr/bin/totem
[Thread debugging using libthread_db enabled]
[New Thread 46912496395120 (LWP 13699)]

Program received signal SIGSEGV, Segmentation fault.

Thread 46912496395120 (LWP 13699)

  • #0 KInstance::config
    from /usr/lib64/libkdecore.so.4
  • #1 KGlobalSettings::baseColor
    from /usr/lib64/libkdecore.so.4
  • #2 KMixApplet::qt_static_property
    from /usr/lib64/kde3/kmix_panelapplet.so
  • #3 non-virtual thunk to ColorWidget::~ColorWidget()
    from /usr/lib64/kde3/kmix_panelapplet.so
  • #4 ??


I was quite confused, as the crash seems to have happened in kde, but that doesn't make any sense to me.  

I suspect the crash is happening in the Gstreamer backend, as "gst-launch sinesrc ! osssink" crashes, as does gst-inspect

If it's any help, here's the output of gst-feedback:
+   SYSTEM INFORMATION
+++ uname -a
Linux localhost.localdomain 2.6.16-1.2111_FC5 #1 SMP Thu May 4 21:16:04 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
+++  distribution: Red Hat
Fedora Core release 5 (Bordeaux)
+++ cat /etc/issue
Fedora Core release 5 (Bordeaux)
Kernel \r on an \m


+   USER INFORMATION
+++ id
uid=500(will) gid=500(will) groups=500(will) context=user_u:system_r:unconfined_t

+   PKG-CONFIG INFORMATION
+   0.6
+++ pkg-config --version
0.20
+++ pkg-config gstreamer-0.6 --modversion
+++ pkg-config gstreamer-0.6 --cflags
+++ pkg-config gstreamer-0.6 --libs
+++ pkg-config gstreamer-libs-0.6 --modversion
+++ pkg-config gstreamer-libs-0.6 --cflags
+++ pkg-config gstreamer-libs-0.6 --libs

+   0.7
+++ pkg-config --version
0.20
+++ pkg-config gstreamer-0.7 --modversion
+++ pkg-config gstreamer-0.7 --cflags
+++ pkg-config gstreamer-0.7 --libs
+++ pkg-config gstreamer-libs-0.7 --modversion
+++ pkg-config gstreamer-libs-0.7 --cflags
+++ pkg-config gstreamer-libs-0.7 --libs

+   0.8
+++ pkg-config --version
0.20
+++ pkg-config gstreamer-0.8 --modversion
+++ pkg-config gstreamer-0.8 --cflags
+++ pkg-config gstreamer-0.8 --libs
+++ pkg-config gstreamer-libs-0.8 --modversion
+++ pkg-config gstreamer-libs-0.8 --cflags
+++ pkg-config gstreamer-libs-0.8 --libs

+   0.9
+++ pkg-config gstreamer-0.9 --modversion
+++ pkg-config gstreamer-0.9 --cflags
+++ pkg-config gstreamer-0.9 --libs

+   0.9
+++ pkg-config gstreamer-base-0.9 --modversion
+++ pkg-config gstreamer-base-0.9 --cflags
+++ pkg-config gstreamer-base-0.9 --libs

+   0.9
+++ pkg-config gstreamer-check-0.9 --modversion
+++ pkg-config gstreamer-check-0.9 --cflags
+++ pkg-config gstreamer-check-0.9 --libs

+   0.9
+++ pkg-config gstreamer-controller-0.9 --modversion
+++ pkg-config gstreamer-controller-0.9 --cflags
+++ pkg-config gstreamer-controller-0.9 --libs

+   0.9
+++ pkg-config gstreamer-dataprotocol-0.9 --modversion
+++ pkg-config gstreamer-dataprotocol-0.9 --cflags
+++ pkg-config gstreamer-dataprotocol-0.9 --libs

+   0.9
+++ pkg-config gstreamer-plugins-base-0.9 --modversion
+++ pkg-config gstreamer-plugins-base-0.9 --cflags
+++ pkg-config gstreamer-plugins-base-0.9 --libs

+   0.9
+++ pkg-config gstreamer-net-0.9 --modversion
+++ pkg-config gstreamer-net-0.9 --cflags
+++ pkg-config gstreamer-net-0.9 --libs

+   0.9
+++ pkg-config gst-python-0.9 --modversion
+++ pkg-config gst-python-0.9 --cflags
+++ pkg-config gst-python-0.9 --libs

+   0.10
+++ pkg-config gstreamer-0.10 --modversion
0.10.4
+++ pkg-config gstreamer-0.10 --cflags
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
+++ pkg-config gstreamer-0.10 --libs
-Wl,--export-dynamic -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0

+   0.10
+++ pkg-config gstreamer-base-0.10 --modversion
0.10.4
+++ pkg-config gstreamer-base-0.10 --cflags
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
+++ pkg-config gstreamer-base-0.10 --libs
-Wl,--export-dynamic -pthread -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0

+   0.10
+++ pkg-config gstreamer-check-0.10 --modversion
0.10.4
+++ pkg-config gstreamer-check-0.10 --cflags
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
+++ pkg-config gstreamer-check-0.10 --libs
-Wl,--export-dynamic -pthread -lgstcheck-0.10 -lcheck -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0

+   0.10
+++ pkg-config gstreamer-controller-0.10 --modversion
0.10.4
+++ pkg-config gstreamer-controller-0.10 --cflags
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
+++ pkg-config gstreamer-controller-0.10 --libs
-Wl,--export-dynamic -pthread -lgstcontroller-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0

+   0.10
+++ pkg-config gstreamer-dataprotocol-0.10 --modversion
0.10.4
+++ pkg-config gstreamer-dataprotocol-0.10 --cflags
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
+++ pkg-config gstreamer-dataprotocol-0.10 --libs
-Wl,--export-dynamic -pthread -lgstdataprotocol-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0

+   0.10
+++ pkg-config gstreamer-plugins-base-0.10 --modversion
+++ pkg-config gstreamer-plugins-base-0.10 --cflags
+++ pkg-config gstreamer-plugins-base-0.10 --libs

+   0.10
+++ pkg-config gstreamer-net-0.10 --modversion
0.10.4
+++ pkg-config gstreamer-net-0.10 --cflags
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
+++ pkg-config gstreamer-net-0.10 --libs
-Wl,--export-dynamic -pthread -lgstnet-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0

+   0.10
+++ pkg-config gst-python-0.10 --modversion
0.10.4
+++ pkg-config gst-python-0.10 --cflags
-pthread -I/usr/include/gst-python-0.10 -I/usr/include/pygtk-2.0 -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
+++ pkg-config gst-python-0.10 --libs
-Wl,--export-dynamic -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lz -lm -lglib-2.0

+   GSTREAMER INFORMATION
+++ which gst-inspect
/usr/bin/gst-inspect
+++ gst-inspect
/usr/bin/gst-feedback-0.10: line 7: 19003 Segmentation fault      $1
+++ gst-inspect fakesrc
/usr/bin/gst-feedback-0.10: line 7: 19005 Segmentation fault      $1
+++ gst-inspect fakesink
/usr/bin/gst-feedback-0.10: line 7: 19006 Segmentation fault      $1
+++ gst-launch fakesrc num_buffers=5 ! fakesink
/usr/bin/gst-feedback-0.10: line 7: 19008 Segmentation fault      $1
++  looking for gstreamer libraries in common locations
++  looking for gstreamer headers in common locations
/usr/include/gstreamer-0.10/gst/gst.h
+   GSTREAMER PLUG-INS INFORMATION
+++ gst-inspect volume
/usr/bin/gst-feedback-0.10: line 7: 19015 Segmentation fault      $1
++  looking for gstreamer volume plugin in common locations
++  looking for gstreamer headers in common locations
/usr/include/linux/dvb/audio.h
Comment 1 Tim-Philipp Müller 2006-07-20 10:28:02 UTC
Could you please supply a stack trace from the crash like this:

 $ gdb --args gst-launch-0.10 fakesrc num-buffers=10 ! fakesink
 Welcome to gdb bla bla
 (gdb) run
 ... wait for crash ...
 (gdb) bt
 ... paste all the output and the previous few lines ...
 (gdb) kill
 (gdb) quit


Also note that the current GStreamer core version is 0.10.9, 0.10.4 is quite old. Maybe you could try a current version as well?

In addition to that, it doesn't seem like you have plugins installed whatsoever, you should install at least gst-plugins-base and gst-plugins-good as well (those are required for totem anyway).
Comment 2 Will Webekind 2006-07-20 12:12:19 UTC
actually, I do have gstreamer-plugins-good-0.10.2-1, gstreamer-plugins-ugly-0.10.3-1.fc5, and gstreamer-plugins-base-0.10.5-1 installed.  I'll try running a newer version of gstreamer, but I was hoping it wouldn't have to come to compiling from source.  Meanwhile, here's the stack trace you asked for:

(gdb) run
Starting program: /usr/bin/gst-launch-0.10 fakesrc num-buffers=10 \! fakesink
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 46912496281680 (LWP 27983)]
(no debugging symbols found)
warning: the debug information found in "/usr/lib/debug//usr/lib64/nautilus/extensions-1.0/libtotem-properties-page.so.debug" does not match "/usr/lib64/nautilus/extensions-1.0/libtotem-properties-page.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib64/mozilla/plugins/libtotem_mozilla.so.debug" does not match "/usr/lib64/mozilla/plugins/libtotem_mozilla.so" (CRC mismatch).


Program received signal SIGSEGV, Segmentation fault.

Thread 46912496281680 (LWP 27983)

  • #0 KInstance::config
    from /usr/lib64/libkdecore.so.4
  • #1 KGlobalSettings::baseColor
    from /usr/lib64/libkdecore.so.4
  • #2 KMixApplet::qt_static_property
    from /usr/lib64/kde3/kmix_panelapplet.so
  • #3 non-virtual thunk to ColorWidget::~ColorWidget()
    from /usr/lib64/kde3/kmix_panelapplet.so
  • #4 ??



I know a little bit about gstreamer and have lurked in #gstreamer on irc in years past, but I am very confused as to why the crash would be happening in libkdecore.so.  I do have the kde libs installed, but I'm running gnome.
Comment 3 Tim-Philipp Müller 2006-07-20 12:19:11 UTC
That is ... bizarre :)

What's the output of 

  $ ldd /usr/bin/gst-launch-0.10

and

  $ ls -l /usr/lib/gstreamer-0.10/

?

Could you also do:

  $ export GST_DEBUG=*:5
  $ gst-launch-0.10 fakesrc ! fakesink 2>dbg.log
  ... wait for crash ...
  $ bzip2 dbg.log

and then attach the dbg.log.bz2 file?


What's your IRC nick?
Comment 4 Will Webekind 2006-07-20 12:26:57 UTC
actually, it seems that I have somehow solved my problem by removing kdebase and the packages that depend on it.  totem just played an mpeg I fed it, and gst-launch-0.10 fakesrc ! fakesink worked as well.  I will run the other tests you asked me to run when I get back from work this evening :(
Comment 5 Tim-Philipp Müller 2006-07-21 07:55:31 UTC
> actually, it seems that I have somehow solved my problem by removing kdebase
> and the packages that depend on it.  totem just played an mpeg I fed it, and
> gst-launch-0.10 fakesrc ! fakesink worked as well.  I will run the other tests
> you asked me to run when I get back from work this evening :(

That would be great, thanks. I don't really think it's GStreamer's fault, but I would still like to know how we end up crashing in kde libs from gst_init() ...

Comment 6 Tim-Philipp Müller 2006-07-28 09:19:19 UTC
Closing as INCOMPLETE. If you ever run into this again, please re-open and provide the information asked for. Thanks!