[gst-devel] prog which seg fault. why ?

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Sun Jan 16 01:44:15 CET 2005



On Sun, 16 Jan 2005, Ronald S. Bultje wrote:

> Hi Vincent,
>
> On Sat, 2005-01-15 at 14:50, Vincent Torri wrote:
> > here is a small program that fails on a ogm file that i have and which
> > contains one video stream and 2 vorbis streams.
> > when i use it, it seg fault once the first audio pad is found.
> > It works with a mkv.
>
> If you're using 0.8.7 or older of GStreamer core, GST_PAD_CAPS() may
> crash since it is done on a ghostpad by explicitely casting it to a
> realpad (which it isn't). Anyway, we're guessing here, I'll need a
> backtrace to give any good clue of where/why it crashes, like I already
> said on IRC.
>

I use gstreamer and gst-plugin from cvs
The backtrace is attached

one other question (which is related): as i said in the previous mail, if
i remove the audioscale element, it does not seg fault. But, if i want to
get informations like the length of the audio stream, by querying on the
sink of the audio "pipeline", i have no information with a .mkv, but i can
get it with an ogm. Is it normal ?

Vincent Torri
-------------- next part --------------
(gdb) bt
#0  0x40e5e16d in gst_audioscale_chain ()
   from /home/torri/local/gstreamer/lib/gstreamer-0.8/libgstaudioscale.so
#1  0x400630a9 in gst_pad_call_chain_function (pad=0x834c250, data=0x805d468)
    at gstpad.c:4430
#2  0x4005ead5 in gst_pad_push (pad=0x834aed0, data=0x805d468) at gstpad.c:3241
#3  0x40061266 in gst_pad_event_default_dispatch (pad=0x834a740,
    element=0x8349f48, event=0x805d468) at gstpad.c:3998
#4  0x400616df in gst_pad_event_default (pad=0x834a740, event=0x805d468)
    at gstpad.c:4072
#5  0x40061c31 in gst_pad_send_event (pad=0x834a740, event=0x805d468)
    at gstpad.c:4150
#6  0x40063092 in gst_pad_call_chain_function (pad=0x834a740, data=0x805d468)
    at gstpad.c:4430
#7  0x4005ead5 in gst_pad_push (pad=0x80c9f28, data=0x805d468) at gstpad.c:3241
#8  0x40d27467 in vorbis_dec_event ()
   from /home/torri/local/gstreamer/lib/gstreamer-0.8/libgstvorbis.so
#9  0x40d2766e in vorbis_dec_chain ()
   from /home/torri/local/gstreamer/lib/gstreamer-0.8/libgstvorbis.so
#10 0x40062d72 in gst_pad_call_chain_function (pad=0x80ca1a0, data=0x8063004)
    at gstpad.c:4415
#11 0x4005ead5 in gst_pad_push (pad=0x80d9918, data=0x8063004) at gstpad.c:3241
#12 0x4094f364 in gst_ogg_pad_push ()
   from /home/torri/local/gstreamer/lib/gstreamer-0.8/libgstogg.so
#13 0x4094d840 in gst_ogg_demux_push ()
   from /home/torri/local/gstreamer/lib/gstreamer-0.8/libgstogg.so
#14 0x4094c6f3 in gst_ogg_demux_iterate ()
   from /home/torri/local/gstreamer/lib/gstreamer-0.8/libgstogg.so
#15 0x4096cc98 in gst_file_pad_chain (gst_pad=0x8282708, data=0x8063004)
    at filepad.c:173
#16 0x400630a9 in gst_pad_call_chain_function (pad=0x8282708, data=0x8063004)
    at gstpad.c:4430
#17 0x4005ead5 in gst_pad_push (pad=0x8274a18, data=0x8063004) at gstpad.c:3241
#18 0x40500d44 in gst_type_find_element_chain (pad=0x8274810, data=0x8063004)
    at gsttypefindelement.c:619
#19 0x400630a9 in gst_pad_call_chain_function (pad=0x8274810, data=0x8063004)
    at gstpad.c:4430
#20 0x4005ead5 in gst_pad_push (pad=0x8272be0, data=0x8063004) at gstpad.c:3241
#21 0x404da6cd in get_group_schedule_function (argc=0, argv=0x8275978)
    at gstoptimalscheduler.c:1305
---Type <return> to continue, or q <return> to quit---
#22 0x404d9ef1 in schedule_group (group=0x8275978)
    at gstoptimalscheduler.c:1154
#23 0x404da0ba in gst_opt_scheduler_schedule_run_queue (osched=0x826bbc8,
    only_group=0x0) at gstoptimalscheduler.c:1205
#24 0x404da361 in schedule_chain (chain=0x8275300)
    at gstoptimalscheduler.c:1258
#25 0x404de8b3 in gst_opt_scheduler_iterate (sched=0x826bbc8)
    at gstoptimalscheduler.c:2629
#26 0x4006f7b1 in gst_scheduler_iterate (sched=0x826bbc8) at gstscheduler.c:738
#27 0x4003365b in gst_bin_iterate_func (bin=0x826aef0) at gstbin.c:1220
#28 0x4008c887 in gst_marshal_BOOLEAN__VOID (closure=0x8057d90,
    return_value=0xbfffed00, n_param_values=1, param_values=0xbfffee40,
    invocation_hint=0xbfffed28, marshal_data=0x400335f9) at gstmarshal.c:509
#29 0x4015cd5d in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#30 0x08057d90 in ?? ()
#31 0xbfffed00 in ?? ()
#32 0x00000001 in ?? ()
#33 0xbfffee40 in ?? ()
#34 0xbfffed28 in ?? ()
#35 0x400335f9 in gst_bin_restore_thyself (object=0x80553a0, self=0x8057cf8)
    at gstbin.c:1204
Previous frame inner to this frame (corrupt stack?)


More information about the gstreamer-devel mailing list