[Bug 782812] gst_element_factory_make: Program received signal SIGSEGV, Segmentation fault. g_slice_alloc (mem_size=mem_size at entry=368)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue May 23 00:31:42 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=782812

--- Comment #8 from minfrin at sharp.fm ---
Leaving the valgrind running, I eventually stumbled on this, not sure if this
is breaking something:

==1574== Conditional jump or move depends on uninitialised value(s)
==1574==    at 0x4BDFA74: vfprintf (vfprintf.c:1641)
==1574==    by 0x4C80607: __vasprintf_chk (vasprintf_chk.c:66)
==1574==    by 0x4ADB1F3: vasprintf (stdio2.h:210)
==1574==    by 0x4ADB1F3: g_vasprintf (gprintf.c:316)
==1574==    by 0x4AB27AB: g_strdup_vprintf (gstrfuncs.c:507)
==1574==    by 0x4AB280B: g_strdup_printf (gstrfuncs.c:533)
==1574==    by 0x4A1627F: value_transform_int_string (gvaluetransform.c:156)
==1574==    by 0x4A15437: g_value_transform (gvalue.c:613)
==1574==    by 0x496FEC7: gst_value_serialize_int (gstvalue.c:3368)
==1574==    by 0x497909B: gst_value_serialize (gstvalue.c:6106)
==1574==    by 0x493A14F: priv_gst_structure_append_to_gstring
(gststructure.c:1811)
==1574==    by 0x48AEE63: gst_caps_to_string (gstcaps.c:2248)
==1574==    by 0x48E0C23: gst_debug_print_object (gstinfo.c:818)
==1574==  Uninitialised value was created by a heap allocation
==1574==    at 0x484550C: malloc (vg_replace_malloc.c:299)
==1574==    by 0x4A9824F: g_malloc (gmem.c:97)
==1574==    by 0x4A00977: g_signal_newv (gsignal.c:1660)
==1574==    by 0x4A01533: g_signal_new_valist (gsignal.c:1840)
==1574==    by 0x4A015B7: g_signal_new (gsignal.c:1395)
==1574==    by 0x5B36487: gst_rtp_ssrc_demux_class_init (gstrtpssrcdemux.c:385)
==1574==    by 0x5B35ADB: gst_rtp_ssrc_demux_class_intern_init
(gstrtpssrcdemux.c:102)
==1574==    by 0x4A0C053: type_class_init_Wm (gtype.c:2217)
==1574==    by 0x4A0C053: g_type_class_ref (gtype.c:2932)
==1574==    by 0x49F0EB3: g_object_newv (gobject.c:1869)
==1574==    by 0x49F156F: g_object_new (gobject.c:1614)
==1574==    by 0x48D306F: gst_element_factory_create (gstelementfactory.c:372)
==1574==    by 0x48D349B: gst_element_factory_make (gstelementfactory.c:445)

The code at gstrtpssrcdemux.c:385 looks like this:

  gst_rtp_ssrc_demux_signals[SIGNAL_NEW_SSRC_PAD] =
      g_signal_new ("new-ssrc-pad",
      G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
      G_STRUCT_OFFSET (GstRtpSsrcDemuxClass, new_ssrc_pad),
      NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, G_TYPE_UINT,
      GST_TYPE_PAD);

Not sure if there is anything uninitialised in there?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list