[gstreamer-bugs] [Bug 530317] New: GType registration error - race condition when parallel creation of pipelines

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Apr 28 02:11:11 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=530317

  GStreamer | gstreamer (core) | Ver: 0.10.18
           Summary: GType registration error - race condition when parallel
                    creation of pipelines
           Product: GStreamer
           Version: 0.10.18
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: mb at novanotio.es
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.15/2.16
   GNOME milestone: Unspecified


Steps to reproduce:
1. Two threads(pthreads) create each a pipeline at the "same time"
2. Gstreamer try to register "GstClock" in Glib
3. This was produced with Glib 2.16.3


Stack trace:
(testlib:32651): GLib-GObject-WARNING **: cannot register existing type
`GstClock'

(testlib:32651): GLib-GObject-WARNING **: gtype.c:3368: type id `0' is invalid

(testlib:32651): GLib-GObject-WARNING **: can't peek value table for type
`<invalid>' which is not currently referenced

(testlib:32651): GLib-GObject-WARNING **: gvalue.c:96: cannot initialize GValue
with type `(null)', this type has no GTypeValueTable implementation

(testlib:32651): GLib-GObject-WARNING **: gtype.c:3368: type id `0' is invalid

(testlib:32651): GLib-GObject-WARNING **: can't peek value table for type
`<invalid>' which is not currently referenced

Core was generated by `./testlib'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7ec8316 in gst_structure_set_valist (structure=0xb5f0dcd0,
    fieldname=0xb7ef4a77 "clock", varargs=0xb71051c8 "") at gststructure.c:527
527         G_VALUE_COLLECT (&field.value, varargs, 0, &err);
(gdb) bt
#0  0xb7ec8316 in gst_structure_set_valist (structure=0xb5f0dcd0,
    fieldname=0xb7ef4a77 "clock", varargs=0xb71051c8 "") at gststructure.c:527
#1  0xb7eca2e2 in gst_structure_new_valist (
    name=0xb7ef967a "GstMessageClockProvide", firstfield=0xb7ef4a77 "clock",
    varargs=0xb71051c8 "") at gststructure.c:242
#2  0xb7eca352 in gst_structure_new (name=0x0, firstfield=0xb7ef4a77 "clock")
    at gststructure.c:210
#3  0xb7eadf9b in gst_message_new_clock_provide (src=0x80db140, clock=0x0,
    ready=1) at gstmessage.c:541
#4  0xb7e8b937 in gst_bin_add_func (bin=0x80db050, element=0x80db140)
    at gstbin.c:915
#5  0xb7e88985 in gst_bin_add (bin=0x80db050, element=0x80db140)
    at gstbin.c:1046
#6  0xb7ed699c in gst_bin_add_many (bin=0x80db050, element_1=0x80db140)
    at gstutils.c:2212
#7  0x0806875e in playerSimpleCreate (fP=0x80dc080, noPort1=0, noPort2=0,
    input=0x80dc1d0 "/home/demo/media/videos/MOV01250.MPG", bitrate=0,
    sourceType=0x80dc3e0 "filesrc", nada2=0) at playerSimple.c:411
#8  0x08056fe4 in flowPipelineCreate (flowP=0x80dc080) at vicoFlow.c:150
#9  0x0805733e in vicoFlowInit (flowP=0x80dc080) at vicoFlow.c:202
#10 0x0805634a in vicoRun (arg=0x80dc080) at vico.c:609
#11 0xb7bfe46b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0xb7b826de in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)                                                        

Other information:


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=530317.




More information about the Gstreamer-bugs mailing list