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 304551 - gstbus check failure
gstbus check failure
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.8.10
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-17 17:44 UTC by Thomas Vander Stichele
Modified: 2006-05-15 18:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Vander Stichele 2005-05-17 17:44:14 UTC
run gstbus on a threaded machine

running it in gdb with CK_FORK=no:
(gdb) r
Starting program: /home/thomas/gst/head/gstreamer/check/gst/.libs/lt-gstbus
[Thread debugging using libthread_db enabled]
[New Thread -1208534560 (LWP 15131)]
Running suite(s): GstBus[New Thread -1210668112 (LWP 15132)]
[New Thread -1221157968 (LWP 15133)]
[New Thread -1231647824 (LWP 15134)]
[New Thread -1242137680 (LWP 15135)]
[New Thread -1252627536 (LWP 15136)]
[New Thread -1263117392 (LWP 15137)]

GLib-GObject-ERROR **: g_type_plugin_*() invalidly modified type `GstMessage'
aborting...
[New Thread -1273607248 (LWP 15138)]

Program received signal SIGABRT, Aborted.

Thread NaN (LWP 15132)

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 raise
    from /lib/tls/libc.so.6
  • #2 abort
    from /lib/tls/libc.so.6
  • #3 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #4 g_log
    from /usr/lib/libglib-2.0.so.0
  • #5 g_type_class_ref
    from /usr/lib/libgobject-2.0.so.0
  • #6 g_type_create_instance
    from /usr/lib/libgobject-2.0.so.0
  • #7 gst_mini_object_new
    at gstminiobject.c line 131
  • #8 gst_message_new
    at gstmessage.c line 166
  • #9 gst_message_new_application
    at gstmessage.c line 329
  • #10 pound_bus_with_messages
    at gst/gstbus.c line 43
  • #11 g_static_private_free
    from /usr/lib/libglib-2.0.so.0
  • #12 start_thread
    from /lib/tls/libpthread.so.0
  • #13 clone
    from /lib/tls/libc.so.6

Comment 1 Thomas Vander Stichele 2005-05-17 17:44:39 UTC
doing g_type_class_ref/unref during _init (when there's only one thread) seems
to fix it.
Comment 2 Thomas Vander Stichele 2005-05-17 17:50:43 UTC
fixed in head
Comment 3 Antoine Tremblay 2006-05-15 17:53:00 UTC
Do we know why this is ?

I was able to reproduce it with other types like : GLib-GObject-ERROR **: g_type_plugin_*() invalidly modified type `GstFormat'

I'll patch all mini_objects derived types with ref/unref but if I could understand a bit more how it helps it would be nice...

Thanks
Comment 4 Antoine Tremblay 2006-05-15 18:49:41 UTC
And i'm trying to figureout why this is limited to mini_object types... ?

Since GstFormat isn't one... but it's from a GstEvent so it could be somehow.. just if you know why it is limmited to them i'd like to know :)