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 343057 - gst-launch-0.10 segfaults when passed gst-plugin-path and bogus gst-debug flags
gst-launch-0.10 segfaults when passed gst-plugin-path and bogus gst-debug flags
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.6
Other Linux
: Normal minor
: 0.10.7
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 347559 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-26 20:16 UTC by Loïc Minier
Modified: 2006-08-21 07:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
minimally invasive patch (1.49 KB, patch)
2006-05-26 20:50 UTC, Tim-Philipp Müller
none Details | Review

Description Loïc Minier 2006-05-26 20:16:20 UTC
Hi,

This segfaults here:
/usr/bin/gst-launch-0.10 --gst-debug=1 --gst-plugin-path=/usr/lib/gstreamer-0.10

(not that it's a --gst-debug, instead of --gst-debug-level)

(gdb) run --gst-debug=1 --gst-plugin-path=/usr/lib/gstreamer-0.10  --gst-disable
-segtrap
Starting program: /usr/bin/gst-launch-0.10 --gst-debug=1 --gst-plugin-path=/usr/
lib/gstreamer-0.10  --gst-disable-segtrap
(gdb) bt
  • #0 gst_value_serialize
    from /usr/lib/libgstreamer-0.10.so.0
  • #1 gst_structure_to_string
    from /usr/lib/libgstreamer-0.10.so.0
  • #2 gst_caps_to_string
    from /usr/lib/libgstreamer-0.10.so.0
  • #3 gst_ffmpegcolorspace_register
    from /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
  • #4 gst_ffmpegcsp_codectype_to_caps
    from /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
  • #5 gst_ffmpegcolorspace_register
    from /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
  • #6 ??
    from /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
  • #7 ??
  • #8 ??
    from /usr/lib/libgstreamer-0.10.so.0
  • #9 ??
  • #10 _gst_plugin_initialize
    from /usr/lib/libgstreamer-0.10.so.0
  • #11 _gst_plugin_initialize
    from /usr/lib/libgstreamer-0.10.so.0
  • #12 gst_plugin_load_file
    from /usr/lib/libgstreamer-0.10.so.0
  • #13 gst_registry_lookup
    from /usr/lib/libgstreamer-0.10.so.0
  • #14 gst_registry_scan_path
    from /usr/lib/libgstreamer-0.10.so.0
  • #15 gst_init
    from /usr/lib/libgstreamer-0.10.so.0
  • #16 gst_init
    from /usr/lib/libgstreamer-0.10.so.0
  • #17 gst_init
    from /usr/lib/libgstreamer-0.10.so.0
  • #18 parse_arg
    at goption.c line 897
  • #19 parse_long_option
    at goption.c line 1089
  • #20 IA__g_option_context_parse
    at goption.c line 1354
  • #21 main

Bye,
Comment 1 Tim-Philipp Müller 2006-05-26 20:50:47 UTC
Created attachment 66304 [details] [review]
minimally invasive patch

Crashes parsing caps. Not that surprising, since all the GStreamer types etc. are registered only in post_init.

Maybe we should just move them to pre_init - not sure. Attached patch is minimally invasive.
Comment 2 Tim-Philipp Müller 2006-05-29 11:53:15 UTC
 2006-05-29  Tim-Philipp Müller  <tim at centricular dot net>

       * gst/gst.c: (add_path_func), (init_post):
         Don't scan registry paths passed via --gst-plugin--path immediately
         (will crash, because absolutely nothing is set up and no types are
         registered etc.); do this later in init_post(). Fixes #343057.

Comment 3 Tim-Philipp Müller 2006-08-21 07:59:31 UTC
*** Bug 347559 has been marked as a duplicate of this bug. ***