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