[Bug 736314] omxaacdec has a huge memory leak

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 25 23:06:09 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=736314
  GStreamer | gst-omx | 1.2.4

--- Comment #9 from Jun Ji <jun.ji at lge.com> 2014-09-26 06:06:03 UTC ---
while it refs the allocator for the below three cases.

#1

Breakpoint 11, gst_object_ref (object=object at entry=0x20418) at gstobject.c:242
242     {
(gdb) bt
#0  gst_object_ref (object=object at entry=0x20418) at gstobject.c:242
#1  0x76f4fe68 in gst_memory_init (mem=mem at entry=0x72a03400,
flags=flags at entry=0, allocator=0x20418, 
    parent=parent at entry=0x0, maxsize=maxsize at entry=8171, align=align at entry=7,
offset=offset at entry=0, 
    size=size at entry=8168) at gstmemory.c:125
#2  0x76f2a7ac in _sysmem_init (notify=0, user_data=0x0, size=8168, offset=0,
align=7, maxsize=8171, 
    data=0x72a03450, slice_size=8251, parent=0x0, flags=0, mem=0x72a03400) at
gstallocator.c:372
#3  _sysmem_new_block (flags=0, maxsize=8171, align=7, offset=0, size=8168) at
gstallocator.c:435
#4  0x76f2a89a in default_alloc (allocator=<optimized out>, size=<optimized
out>, params=<optimized out>)
    at gstallocator.c:514
#5  0x76f2ac1a in gst_allocator_alloc (allocator=<optimized out>,
allocator at entry=0x0, 
    size=size at entry=8168, params=<optimized out>) at gstallocator.c:312
#6  0x76f31f26 in gst_buffer_new_allocate (allocator=0x0, size=8168,
params=<optimized out>)
    at gstbuffer.c:668
#7  0x7691dc6a in gst_audio_decoder_allocate_output_buffer ()
   from
/home/jsea/workspace/breadnut/wd-host-script/rootfs/usr/lib/libgstaudio-1.0.so.0
#8  0x768a63cc in gst_omx_audio_dec_loop (self=0xe35c0) at gstomxaudiodec.c:518
#9  0x76f771ae in gst_task_func (task=0xf15e8) at gsttask.c:316
#10 0x76f77d4c in default_func (tdata=<optimized out>, pool=<optimized out>) at
gsttaskpool.c:70
#11 0x76e1b920 in g_thread_pool_thread_proxy (data=<optimized out>) at
gthreadpool.c:309
#12 0x76e1b03c in g_thread_proxy (data=0x74602060) at gthread.c:797
#13 0x76d97d80 in start_thread (arg=0x733ff470) at pthread_create.c:313
#14 0x76d04b98 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:96
   from /home/jsea/workspace/breadnut/wd-host-script/rootfs/lib/libc.so.6
#15 0x76d04b98 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:96
   from /home/jsea/workspace/breadnut/wd-host-script/rootfs/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


#2

Breakpoint 11, gst_object_ref (object=object at entry=0x20418) at gstobject.c:242
242     {
(gdb) bt
#0  gst_object_ref (object=object at entry=0x20418) at gstobject.c:242
#1  0x76f4fe68 in gst_memory_init (mem=mem at entry=0x727308b0,
flags=flags at entry=0, allocator=0x20418, 
    parent=parent at entry=0x0, maxsize=maxsize at entry=65539, align=align at entry=7,
offset=offset at entry=0, 
    size=size at entry=65536) at gstmemory.c:125
#2  0x76f2a7ac in _sysmem_init (notify=0, user_data=0x0, size=65536, offset=0,
align=7, maxsize=65539, 
    data=0x72730900, slice_size=65619, parent=0x0, flags=0, mem=0x727308b0) at
gstallocator.c:372
#3  _sysmem_new_block (flags=0, maxsize=65539, align=7, offset=0, size=65536)
at gstallocator.c:435
#4  0x76f2a89a in default_alloc (allocator=<optimized out>, size=<optimized
out>, params=<optimized out>)
    at gstallocator.c:514
#5  0x76f2ac1a in gst_allocator_alloc (allocator=<optimized out>,
allocator at entry=0x0, 
    size=size at entry=65536, params=<optimized out>) at gstallocator.c:312
#6  0x76f31f26 in gst_buffer_new_allocate (allocator=0x0,
size=size at entry=65536, params=<optimized out>)
    at gstbuffer.c:668
#7  0x769cf47e in gst_base_src_default_alloc (src=0xd6028, offset=<optimized
out>, size=65536, 
    buffer=0x74f8795c) at gstbasesrc.c:1438
#8  0x769ceda6 in gst_base_src_default_create (src=0xd6028, offset=<optimized
out>, size=65536, 
    buffer=0x74f87a44) at gstbasesrc.c:1476
#9  0x769d039e in gst_base_src_get_range (src=src at entry=0xd6028, offset=12360, 
    length=length at entry=65536, buf=buf at entry=0x74f87b00) at gstbasesrc.c:2466
#10 0x769d232e in gst_base_src_getrange (pad=<optimized out>, parent=0xd6028,
offset=<optimized out>, 
    length=65536, buf=0x74f87b00) at gstbasesrc.c:2633
#11 0x76f5373e in gst_pad_get_range_unchecked (pad=pad at entry=0xd8070,
offset=12360, 
    size=size at entry=65536, buffer=buffer at entry=0x74f87b84) at gstpad.c:4184
#12 0x76f59484 in gst_pad_pull_range (pad=0xd81b8, offset=12360,
size=size at entry=65536, buffer=0xdc3c8)
    at gstpad.c:4414
#13 0x769baf08 in gst_base_parse_pull_range (parse=parse at entry=0xdc0e8,
size=size at entry=65536, 
    buffer=buffer at entry=0x74f87c6c) at gstbaseparse.c:2957
#14 0x769be41c in gst_base_parse_scan_frame (parse=parse at entry=0xdc0e8,
klass=klass at entry=0xd9778)
    at gstbaseparse.c:3096
#15 0x769c16f8 in gst_base_parse_loop (pad=<optimized out>) at
gstbaseparse.c:3204
#16 0x76f771ae in gst_task_func (task=0xf1000) at gsttask.c:316
#17 0x76f77d4c in default_func (tdata=<optimized out>, pool=<optimized out>) at
gsttaskpool.c:70
#18 0x76e1b920 in g_thread_pool_thread_proxy (data=<optimized out>) at
gthreadpool.c:309
#19 0x76e1b03c in g_thread_proxy (data=0x23c00) at gthread.c:797
#20 0x76d97d80 in start_thread (arg=0x74f88470) at pthread_create.c:313
#21 0x76d04b98 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:96
   from /home/jsea/workspace/breadnut/wd-host-script/rootfs/lib/libc.so.6
#22 0x76d04b98 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:96
   from /home/jsea/workspace/breadnut/wd-host-script/rootfs/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

#3

Breakpoint 11, gst_object_ref (object=object at entry=0x20418) at gstobject.c:242
242     {
(gdb) bt
#0  gst_object_ref (object=object at entry=0x20418) at gstobject.c:242
#1  0x76f4fe68 in gst_memory_init (mem=mem at entry=0x729b0730,
flags=flags at entry=3, allocator=0x20418, 
    parent=parent at entry=0x72720858, maxsize=maxsize at entry=65539,
align=align at entry=7, 
    offset=offset at entry=0, size=size at entry=176) at gstmemory.c:125
#2  0x76f2a694 in _sysmem_init (notify=0, user_data=0x0, size=176, offset=0,
align=7, maxsize=65539, 
    data=0x727208a8, slice_size=76, parent=0x72720858, flags=3, mem=0x729b0730)
at gstallocator.c:372
#3  _sysmem_new (notify=0, user_data=0x0, size=176, offset=0, align=7,
maxsize=65539, data=0x727208a8, 
    parent=0x72720858, flags=3) at gstallocator.c:393
#4  _sysmem_share (mem=<optimized out>, offset=<optimized out>, size=176) at
gstallocator.c:483
#5  0x76f503b4 in gst_memory_share (mem=mem at entry=0x72720858,
offset=offset at entry=0, size=size at entry=176)
    at gstmemory.c:388
#6  0x76f32874 in gst_buffer_copy_into (dest=0x74688858,
src=src at entry=0x72a05848, flags=flags at entry=15, 
    offset=offset at entry=0, size=size at entry=176) at gstbuffer.c:451
#7  0x76f335f6 in gst_buffer_copy_region (buffer=buffer at entry=0x72a05848,
flags=flags at entry=15, 
    offset=offset at entry=0, size=size at entry=176) at gstbuffer.c:1795
#8  0x769b9a0a in gst_adapter_take_buffer (adapter=0xa8ab8, nbytes=176) at
gstadapter.c:856
#9  0x769c32f6 in gst_base_parse_finish_frame (parse=parse at entry=0xdc0e8,
frame=frame at entry=0xe7958, 
    size=176) at gstbaseparse.c:2445
#10 0x76994596 in gst_aac_parse_handle_frame (parse=0xdc0e8, frame=0xe7958,
skipsize=0x74f87c74)
    at gstaacparse.c:1302
#11 0x769bdebe in gst_base_parse_handle_buffer (parse=parse at entry=0xdc0e8,
buffer=0x72a05848, 
    skip=skip at entry=0x74f87c74, flushed=flushed at entry=0x74f87c70) at
gstbaseparse.c:1979
#12 0x769be45a in gst_base_parse_scan_frame (parse=parse at entry=0xdc0e8,
klass=klass at entry=0xd9778)
    at gstbaseparse.c:3131
#13 0x769c16f8 in gst_base_parse_loop (pad=<optimized out>) at
gstbaseparse.c:3204
#14 0x76f771ae in gst_task_func (task=0xf1000) at gsttask.c:316
#15 0x76f77d4c in default_func (tdata=<optimized out>, pool=<optimized out>) at
gsttaskpool.c:70
#16 0x76e1b920 in g_thread_pool_thread_proxy (data=<optimized out>) at
gthreadpool.c:309
#17 0x76e1b03c in g_thread_proxy (data=0x23c00) at gthread.c:797
#18 0x76d97d80 in start_thread (arg=0x74f88470) at pthread_create.c:313
#19 0x76d04b98 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:96
   from /home/jsea/workspace/breadnut/wd-host-script/rootfs/lib/libc.so.6
#20 0x76d04b98 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:96
   from /home/jsea/workspace/breadnut/wd-host-script/rootfs/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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