[Bug 758039] gstgl: fix memory leaks and memory mishandlings

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 12 18:25:02 PST 2015


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

--- Comment #5 from Vineeth <vineeth.tm at samsung.com> ---
Created attachment 315383
  --> https://bugzilla.gnome.org/attachment.cgi?id=315383&action=edit
glshader: Fix illegal access of memory

Due to illegal memory access in for loop, get the below error

==10034== Thread 3 gstglcontext:
==10034== Invalid read of size 4
==10034==    at 0x40557E6: gst_gl_shader_release_unlocked (gstglshader.c:671)
==10034==    by 0x405587B: _cleanup_shader (gstglshader.c:96)
==10034==    by 0x404713F: _gst_gl_context_thread_run_generic
(gstglcontext.c:1456)
==10034==    by 0x406023A: _run_message_sync (gstglwindow.c:628)
==10034==    by 0x40601A1: _run_message_async (gstglwindow.c:697)
==10034==    by 0x42A0C4F: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42A40A6: g_main_context_dispatch (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42A4467: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42A476A: g_main_loop_run (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x40602B3: gst_gl_window_default_run (gstglwindow.c:537)
==10034==    by 0x40609B8: gst_gl_window_run (gstglwindow.c:558)
==10034==    by 0x4049D97: gst_gl_context_create_thread (gstglcontext.c:1224)
==10034==    by 0x42CA9A9: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x4370F6F: start_thread (pthread_create.c:312)
==10034==    by 0x4471BED: clone (clone.S:129)
==10034==  Address 0x534bc7c is 4 bytes inside a block of size 12 free'd
==10034==    at 0x402D3D8: free (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10034==    by 0x42A9D2F: g_free (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42C087A: g_slice_free1 (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42A0056: g_list_delete_link (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x4054B6B: gst_gl_shader_detach_unlocked (gstglshader.c:423)
==10034==    by 0x40557E5: gst_gl_shader_release_unlocked (gstglshader.c:674)
==10034==    by 0x405587B: _cleanup_shader (gstglshader.c:96)
==10034==    by 0x404713F: _gst_gl_context_thread_run_generic
(gstglcontext.c:1456)
==10034==    by 0x406023A: _run_message_sync (gstglwindow.c:628)
==10034==    by 0x40601A1: _run_message_async (gstglwindow.c:697)
==10034==    by 0x42A0C4F: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42A40A6: g_main_context_dispatch (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42A4467: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x42A476A: g_main_loop_run (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x40602B3: gst_gl_window_default_run (gstglwindow.c:537)
==10034==    by 0x40609B8: gst_gl_window_run (gstglwindow.c:558)
==10034==    by 0x4049D97: gst_gl_context_create_thread (gstglcontext.c:1224)
==10034==    by 0x42CA9A9: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==10034==    by 0x4370F6F: start_thread (pthread_create.c:312)
==10034==    by 0x4471BED: clone (clone.S:129)

-- 
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