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 563837 - gst_tag_list_new () segfaults
gst_tag_list_new () segfaults
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.18
Other All
: Normal critical
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-09 12:07 UTC by Kari Kallioinen
Modified: 2008-12-10 09:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
crashing code (293 bytes, text/x-csrc)
2008-12-09 12:08 UTC, Kari Kallioinen
Details

Description Kari Kallioinen 2008-12-09 12:07:42 UTC
Steps to reproduce:
1. create new GstTagList with gst_tag_list_new ()
2. 
3. 


Stack trace:
[Thread debugging using libthread_db enabled]

(process:16823): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.16.6/gobject/gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior to this function
[New Thread 0xb7a606b0 (LWP 16823)]

Program received signal SIGSEGV, Segmentation fault.

Thread 3081111216 (LWP 16823)

  • #0 g_value_register_transform_func
    from /usr/lib/libgobject-2.0.so.0
  • #1 gst_structure_get_type
    from /usr/lib/libgstreamer-0.10.so.0
  • #2 ??
    from /usr/lib/libgstreamer-0.10.so.0
  • #3 gst_structure_new_valist
    from /usr/lib/libgstreamer-0.10.so.0
  • #4 gst_structure_new
    from /usr/lib/libgstreamer-0.10.so.0
  • #5 gst_tag_list_new
    from /usr/lib/libgstreamer-0.10.so.0
  • #6 main
    at test.c line 13


Other information:
Comment 1 Kari Kallioinen 2008-12-09 12:08:43 UTC
Created attachment 124259 [details]
crashing code
Comment 2 Sebastian Dröge (slomo) 2008-12-09 12:38:30 UTC
You have to call g_type_init() and g_thread_init() before using any GStreamer functions (well, the latter can be dropped in some cases).
Comment 3 Tim-Philipp Müller 2008-12-10 09:47:30 UTC
Above all, you have to call gst_init() before you use any other GStreamer function.