Re: Gst::PlayBin2::create() error: *** glibc detected *** ./main: malloc(): memory corruption (fast): 0x00000000009b71d0 ***



On 16/12/2012 22:34, Phong Cao wrote:
> 
> I don't know whether this is a bug with gstreamermm or Ubuntu, because the
> program is compiled and running fine on Fedora 17 with gstreamermm-0.10.10. Is
> there anybody here using Ubuntu 12.10 or Linux Mint 14 has experienced the same
> problem? Is there any way I can resolve this problem?

Looks like a bug in the gstreamermm Ubuntu has. Valgrind says:
==7385==
==7385== Invalid write of size 8
==7385==    at 0x4F80DC6: Gst::PlayBin2_Class::class_init_function(void*, void*)
(playbin2.cc:784)
==7385==    by 0x7621925: g_type_class_ref (gtype.c:2217)
==7385==    by 0x592C09D: Glib::ConstructParams::ConstructParams(Glib::Class
const&, char const*, ...) (object.cc:83)
==7385==    by 0x4F817AB: Gst::PlayBin2::PlayBin2(Glib::ustring const&)
(playbin2.cc:78)
==7385==    by 0x4F82020: Gst::PlayBin2::create(Glib::ustring const&)
(playbin2.cc:1425)
==7385==    by 0x400B9E: main (test-gstmm.cc:12)
==7385==  Address 0x135de308 is 0 bytes after a block of size 712 alloc'd
==7385==    at 0x4C29E46: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7385==    by 0x7BEB738: g_malloc0 (gmem.c:189)
==7385==    by 0x7621770: g_type_class_ref (gtype.c:2116)
==7385==    by 0x592C09D: Glib::ConstructParams::ConstructParams(Glib::Class
const&, char const*, ...) (object.cc:83)
==7385==    by 0x4F817AB: Gst::PlayBin2::PlayBin2(Glib::ustring const&)
(playbin2.cc:78)
==7385==    by 0x4F82020: Gst::PlayBin2::create(Glib::ustring const&)
(playbin2.cc:1425)
==7385==    by 0x400B9E: main (test-gstmm.cc:12)


-- 
Kind regards,
Loong Jin

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]