GStreamer abort when trying to alsasink or Videoscale

Ashwini Sharma ak.ashwini at gmail.com
Sun Jun 12 23:20:32 PDT 2011


Replying to Self:

  All,
    This crash is *gst_element_factory_make(), *is happening for almost all
the elements randomly. Even the gst_bin_new is failing, is there something
wrong with my environment? *(But there are times when the same code works
just very fine.)*

**
Please help.
-Ashwini


On Mon, Jun 13, 2011 at 11:30 AM, Ashwini Sharma <ak.ashwini at gmail.com>wrote:

> Hi All,
>
>
>  I have written an application in which i try to create an "alsasink"
> element.
>
> But at times it aborts, with the following stack.... (*At times it works
> just fine*)
>
> *** glibc detected *** ./qemu-system-arm_jit: realloc(): invalid pointer:
> 0x5c75c4a0 ***
> ======= Backtrace: =========
> /lib/libc.so.6(+0x3d31e1)[0xbb31e1]
> /lib/libc.so.6(realloc+0x2bc)[0xbb833c]
> /lib/libglib-2.0.so.0(g_realloc+0x40)[0x48c0050]
> /lib/libgobject-2.0.so.0[0x27cc39]
> /lib/libgobject-2.0.so.0[0x27cec8]
> /lib/libgobject-2.0.so.0(g_type_register_static+0x1e1)[0x280201]
>
> /home/ashwini/gstreamer/gst_install/lib/libgstreamer-0.10.so.0(gst_implements_interface_get_type+0x74)[0x5c18e4]
>
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstalsa.so(+0x7162)[0x40a162]
>
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstalsa.so(+0x8b92)[0x40bb92]
>
> /home/ashwini/gstreamer/gst_install/lib/libgstreamer-0.10.so.0(+0x5e999)[0x5d7999]
>
> /home/ashwini/gstreamer/gst_install/lib/libgstreamer-0.10.so.0(gst_plugin_load_file+0x28c)[0x5d896c]
>
> /home/ashwini/gstreamer/gst_install/lib/libgstreamer-0.10.so.0(gst_plugin_load_by_name+0xa8)[0x5d96e8]
>
> /home/ashwini/gstreamer/gst_install/lib/libgstreamer-0.10.so.0(gst_plugin_feature_load+0xe7)[0x5dad67]
>
> /home/ashwini/gstreamer/gst_install/lib/libgstreamer-0.10.so.0(gst_element_factory_create+0x30)[0x5b4080]
>
> /home/ashwini/gstreamer/gst_install/lib/libgstreamer-0.10.so.0(gst_element_factory_make+0x102)[0x5b5242]
> ./qemu-system-arm_jit[0x82328df]
> ./qemu-system-arm_jit[0x823097a]
> ./qemu-system-arm_jit[0x823128c]
> ./qemu-system-arm_jit[0x8233b19]
> ./qemu-system-arm_jit[0x822eef1]
> ./qemu-system-arm_jit[0x822e27a]
> ./qemu-system-arm_jit[0x81aa062]
> ======= Memory map: ========
> 00110000-0011a000 r-xp 00000000 fd:02 10488964
> /home/ashwini/gstreamer/gst_install/lib/libgstapp-0.10.so.0.23.0
> 0011a000-0011b000 rw-p 00009000 fd:02 10488964
> /home/ashwini/gstreamer/gst_install/lib/libgstapp-0.10.so.0.23.0
> 0011b000-0015a000 r-xp 00000000 fd:02 10487441
> /home/ashwini/gstreamer/gst_install/lib/libgstbase-0.10.so.0.28.0
> 0015a000-0015b000 rw-p 0003e000 fd:02 10487441
> /home/ashwini/gstreamer/gst_install/lib/libgstbase-0.10.so.0.28.0
> 0015b000-00178000 r-xp 00000000 fd:00 3150051
> /lib/libgcc_s-4.4.4-20100503.so.1
> 00178000-00179000 rw-p 0001d000 fd:00 3150051
> /lib/libgcc_s-4.4.4-20100503.so.1
> 00179000-001a3000 r-xp 00000000 fd:00 3145869    /lib/libk5crypto.so.3.1
> 001a3000-001a4000 rw-p 0002a000 fd:00 3145869    /lib/libk5crypto.so.3.1
> 001a4000-001a6000 r-xp 00000000 fd:00 3150055    /lib/libcom_err.so.2.1
> 001a6000-001a7000 rw-p 00002000 fd:00 3150055    /lib/libcom_err.so.2.1
> 001a7000-001af000 r-xp 00000000 fd:00 3145867    /lib/libkrb5support.so.0.1
> 001af000-001b0000 rw-p 00008000 fd:00 3145867    /lib/libkrb5support.so.0.1
> 001b0000-001b2000 r-xp 00000000 fd:00 3150052    /lib/libkeyutils-1.2.so
> 001b2000-001b3000 rw-p 00001000 fd:00 3150052    /lib/libkeyutils-1.2.so
> 001b3000-001bb000 r-xp 00000000 fd:00 1108404
> /usr/lib/libXrender.so.1.3.0
> 001bb000-001bc000 rw-p 00008000 fd:00 1108404
> /usr/lib/libXrender.so.1.3.0
> 001bc000-001c3000 r-xp 00000000 fd:00 1108412
> /usr/lib/libXrandr.so.2.2.0
> 001c3000-001c4000 rw-p 00006000 fd:00 1108412
> /usr/lib/libXrandr.so.2.2.0
> 001c4000-001cd000 r-xp 00000000 fd:00 1108414
> /usr/lib/libXcursor.so.1.0.2
> 001cd000-001ce000 rw-p 00008000 fd:00 1108414
> /usr/lib/libXcursor.so.1.0.2
> 001ce000-001d3000 r-xp 00000000 fd:00 1099154
> /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
> 001d3000-001d4000 rw-p 00004000 fd:00 1099154
> /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
> 001d4000-001d8000 r-xp 00000000 fd:00 3145834
> /lib/libgthread-2.0.so.0.2400.1
> 001d8000-001d9000 rw-p 00003000 fd:00 3145834
> /lib/libgthread-2.0.so.0.2400.1
> 001d9000-001e0000 r-xp 00000000 fd:00 1108446    /usr/lib/libSM.so.6.0.0
> 001e0000-001e1000 rw-p 00006000 fd:00 1108446    /usr/lib/libSM.so.6.0.0
> 001e8000-0023b000 r-xp 00000000 fd:00 1101581    /usr/lib/libssl.so.1.0.0
> 0023b000-0023f000 rw-p 00052000 fd:00 1101581    /usr/lib/libssl.so.1.0.0
> 0023f000-00256000 r-xp 00000000 fd:00 1108445    /usr/lib/libICE.so.6.3.0
> 00256000-00258000 rw-p 00016000 fd:00 1108445    /usr/lib/libICE.so.6.3.0
> 00258000-00259000 rw-p 00000000 00:00 0
> 00259000-0029d000 r-xp 00000000 fd:00 3145841
> /lib/libgobject-2.0.so.0.2400.1
> 0029d000-0029e000 rw-p 00044000 fd:00 3145841
> /lib/libgobject-2.0.so.0.2400.1
> 0029e000-002ab000 r-xp 00000000 fd:00 1108411    /usr/lib/libXi.so.6.1.0
> 002ab000-002ac000 rw-p 0000d000 fd:00 1108411    /usr/lib/libXi.so.6.1.0
> 002ac000-002b8000 r-xp 00000000 fd:00 3145857    /lib/libnss_files-2.12.so
> 002b8000-002b9000 r--p 0000b000 fd:00 3145857    /lib/libnss_files-2.12.so
> 002b9000-002ba000 rw-p 0000c000 fd:00 3145857    /lib/libnss_files-2.12.so
> 002ba000-002f8000 r-xp 00000000 fd:02 10487512
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstcoreelements.so
> 002f8000-002fa000 rw-p 0003d000 fd:02 10487512
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstcoreelements.so
> 002fa000-0031d000 r-xp 00000000 fd:02 10488842
> /home/ashwini/gstreamer/gst_install/lib/libgsttag-0.10.so.0.23.0
> 0031d000-0031f000 rw-p 00022000 fd:02 10488842
> /home/ashwini/gstreamer/gst_install/lib/libgsttag-0.10.so.0.23.0
> 00326000-0032d000 r-xp 00000000 fd:00 3145818    /lib/librt-2.12.so
> 0032d000-0032e000 r--p 00006000 fd:00 3145818    /lib/librt-2.12.so
> 0032e000-0032f000 rw-p 00007000 fd:00 3145818    /lib/librt-2.12.so
> 00334000-00338000 r-xp 00000000 fd:00 3150062    /lib/libattr.so.1.1.0
> 00338000-00339000 rw-p 00003000 fd:00 3150062    /lib/libattr.so.1.1.0
> 0033e000-0035c000 r-xp 00000000 fd:00 3149992    /lib/ld-2.12.so
> 0035c000-0035d000 r--p 0001d000 fd:00 3149992    /lib/ld-2.12.so
> 0035d000-0035e000 rw-p 0001e000 fd:00 3149992    /lib/ld-2.12.so
> 0035e000-00392000 r-xp 00000000 fd:02 10520161
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstmpegdemux.so
> 00392000-00393000 rw-p 00034000 fd:02 10520161
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstmpegdemux.so
> 00393000-0039c000 r-xp 00000000 fd:02 10488990
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstdecodebin.so
> 0039c000-0039d000 rw-p 00008000 fd:02 10488990
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstdecodebin.so
> 0039d000-003b8000 r-xp 00000000 fd:02 10488948
> /home/ashwini/gstreamer/gst_install/lib/libgstpbutils-0.10.so.0.23.0
> 003b8000-003ba000 rw-p 0001a000 fd:02 10488948
> /home/ashwini/gstreamer/gst_install/lib/libgstpbutils-0.10.so.0.23.0
> 003ba000-003c4000 r-xp 00000000 fd:02 10488938
> /home/ashwini/gstreamer/gst_install/lib/libgstvideo-0.10.so.0.23.0
> 003c4000-003c5000 rw-p 00009000 fd:02 10488938
> /home/ashwini/gstreamer/gst_install/lib/libgstvideo-0.10.so.0.23.0
> 003c5000-003d3000 r-xp 00000000 fd:02 10488976
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstaudioconvert.so
> 003d3000-003d4000 rw-p 0000e000 fd:02 10488976
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstaudioconvert.so
> 003d4000-003f4000 r-xp 00000000 fd:02 10488850
> /home/ashwini/gstreamer/gst_install/lib/libgstaudio-0.10.so.0.23.0
> 003f4000-003f5000 rw-p 00020000 fd:02 10488850
> /home/ashwini/gstreamer/gst_install/lib/libgstaudio-0.10.so.0.23.0
> 003f5000-00402000 r-xp 00000000 fd:02 10488822
> /home/ashwini/gstreamer/gst_install/lib/libgstinterfaces-0.10.so.0.23.0
> 00402000-00403000 rw-p 0000d000 fd:02 10488822
> /home/ashwini/gstreamer/gst_install/lib/libgstinterfaces-0.10.so.0.23.0
> 00403000-00417000 r-xp 00000000 fd:02 10489016
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstalsa.so
> 00417000-00418000 rw-p 00013000 fd:02 10489016
> /home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstalsa.so
> 004a2000-004a3000 r-xp 00000000 00:00 0          [vdso]
> 004f2000-004f5000 r-xp 00000000 fd:00 3150030    /lib/libdl-2.12.so
> 004f5000-004f6000 r--p 00002000 fd:00 3150030    /lib/libdl-2.12.so
> 004f6000-004f7000 rw-p 00003000 fd:00 3150030    /lib/libdl-2.12.so
> 004f9000-00510000 r-xp 00000000 fd:00 3150031    /lib/libpthread-2.12.so
> 00510000-00511000 r--p 00016000 fd:00 3150031    /lib/libpthread-2.12.so
> Program received signal SIGABRT, Aborted.
>
> And the gdb trace is
>
> (gdb) bt
> #0  0x004a2424 in __kernel_vsyscall ()
> #1  0x00b6ed71 in raise () from /lib/libc.so.6
> #2  0x00b7064a in abort () from /lib/libc.so.6
> #3  0x00bacd9d in __libc_message () from /lib/libc.so.6
> #4  0x00bb31e1 in malloc_printerr () from /lib/libc.so.6
> #5  0x00bb833c in realloc () from /lib/libc.so.6
> #6  0x048c0050 in g_realloc () from /lib/libglib-2.0.so.0
> #7  0x0027cc39 in ?? () from /lib/libgobject-2.0.so.0
> #8  0x0027cec8 in ?? () from /lib/libgobject-2.0.so.0
> #9  0x00280201 in g_type_register_static () from /lib/libgobject-2.0.so.0
> #10 0x005c18e4 in gst_implements_interface_get_type () at gstinterface.c:67
> #11 0x0040a162 in gst_alsa_mixer_element_init_interfaces () at
> gstalsamixerelement.c:86
> #12 gst_alsa_mixer_element_get_type () at gstalsamixerelement.c:40
> #13 0x0040bb92 in plugin_init (plugin=0x57717e60) at gstalsaplugin.c:61
> #14 0x005d7999 in gst_plugin_register_func (plugin=0x57717e60,
> desc=0x417d20, user_data=0x0) at gstplugin.c:557
> #15 0x005d896c in gst_plugin_load_file (filename=0x5772d008
> "/home/ashwini/gstreamer/gst_install/lib/gstreamer-0.10/libgstalsa.so",
> error=0x9ef1de3c) at gstplugin.c:843
> #16 0x005d96e8 in gst_plugin_load_by_name (name=0x5772cfc0 "alsa") at
> gstplugin.c:1297
> #17 0x005dad67 in gst_plugin_feature_load (feature=0x5772b3f0) at
> gstpluginfeature.c:107
> #18 0x005b4080 in gst_element_factory_create (factory=0x5772b3f0, name=0x0)
> at gstelementfactory.c:359
> #19 0x005b5242 in gst_element_factory_make (factoryname=0x831551e
> "alsasink", name=0x0) at gstelementfactory.c:451
> #20 0x082328df in CGstCommon::get_audiosink() ()
> #21 0x0823097a in CAudDec::CAudDec (this=0x5777c7e0, eAudDecId=SD_AUDDEC0,
> psCAudDecInitParam=0x833d16c)
>     at
> /home/ashwini/perforceView/INT/Source/Source_Code/qemu-0.14.0/hw/genoa_sdal/Common/src/CAudDec.cpp:92
> #22 0x0823128c in CCreator::createAudDec(SdAudDecID_k) ()
> #23 0x08233b19 in SdAVDec_AudioInit (eAudDecId=SD_AUDDEC0) at
> /home/ashwini/perforceView/INT/Source/Source_Code/qemu-0.14.0/hw/genoa_sdal/SdAVDec.cpp:473
> #24 0x0822eef1 in receiver_audio_decoder_init () at
> /home/ashwini/perforceView/INT/Source/Source_Code/qemu-0.14.0/hw/receiverif.c:386
> #25 0x0822e27a in call_receiver_function (opaque=0x9cf56a8, offset=4,
> value=1) at
> /home/ashwini/perforceView/INT/Source/Source_Code/qemu-0.14.0/hw/receiver.c:132
> #26 receiver_write (opaque=0x9cf56a8, offset=4, value=1) at
> /home/ashwini/perforceView/INT/Source/Source_Code/qemu-0.14.0/hw/receiver.c:340
> #27 0x081aa062 in io_writel (addr=<value optimized out>, val=1,
> mmu_idx=<value optimized out>) at ../softmmu_template.h:213
> #28 __stl_mmu (addr=<value optimized out>, val=1, mmu_idx=<value optimized
> out>) at ../softmmu_template.h:245
> #29 0xa820b692 in ?? ()
> *Also when i try to create a videoscale element, it gives an error. But
> when i use it with gst-launch from command line the videoscale works fine.
> *
> **
> *Please help me in this regard,*
> **
> *--Ashwini*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110613/b3efe939/attachment.html>


More information about the gstreamer-devel mailing list