AnsweredAssumed Answered

i.MX6  failed to allocate 65623 bytes

Question asked by 28059 24352 on Aug 28, 2016
Latest reply on Aug 29, 2016 by igorpadykov

In the iMX6 platform.
I use GStreamer to play a 45 minute MP2 file. When I perform rewind.program is crash!



gmem.c:103: failed to allocate 65623 bytes
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to LWP 3137]
0x76b52748 in raise () from /lib/
(gdb) bt
#0 0x76b52748 in raise () from /lib/
#1 0x76d3f94c in _g_log_abort (breakpoint=0) at gmessages.c:308
#2 g_logv (log_domain=0x76da6d10 "GLib", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x0, args=..., args@entry=...) at gmessages.c:1033
#3 0x76d3fa18 in g_log (log_domain=<optimized out>, log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=0x76daf248 "%s: failed to allocate %u bytes") at gmessages.c:1071
#4 0x76d3e254 in g_malloc (n_bytes=n_bytes@entry=65623) at gmem.c:102
#5 0x76d555f4 in g_slice_alloc (mem_size=mem_size@entry=65623) at gslice.c:1007
#6 0x73220ca0 in _sysmem_new_block (flags=(unknown: 0), maxsize=65543, align=7, offset=0, size=65536) at gstallocator.c:434
#7 0x73220ef4 in default_alloc (allocator=<optimized out>, size=<optimized out>, params=<optimized out>) at gstallocator.c:537
#8 0x732213dc in gst_allocator_alloc (allocator=<optimized out>, allocator@entry=0x0, size=size@entry=65536, params=<optimized out>) at gstallocator.c:319
#9 0x7322c914 in gst_buffer_new_allocate (allocator=0x0, size=size@entry=65536, params=<optimized out>) at gstbuffer.c:755
#10 0x7073fb14 in gst_base_src_default_alloc (src=0x70628170, offset=<optimized out>, size=65536, buffer=0x6bb9c7ac) at gstbasesrc.c:1435
#11 0x7073ea6c in gst_base_src_default_create (src=0x70628170, offset=<optimized out>, size=65536, buffer=0x6bb9c8a4) at gstbasesrc.c:1473
#12 0x70741c8c in gst_base_src_get_range (src=src@entry=0x70628170, offset=1885503868, length=65536, length@entry=1885503856, buf=0x6bb9c964, buf@entry=0x73268640 <gst_pad_get_range_unchecked+1376>)
at gstbasesrc.c:2455
#13 0x707438f8 in gst_base_src_getrange (pad=<optimized out>, parent=0x70628170, offset=<optimized out>, length=65536, buf=0x6bb9c964) at gstbasesrc.c:2623
#14 0x73268640 in gst_pad_get_range_unchecked (pad=pad@entry=0x7061a178, offset=2859990, size=65536, size@entry=1885532288, buffer=0x6bb9c9e4, buffer@entry=0x6bb9c9dc) at gstpad.c:4536
#15 0x732712f4 in gst_pad_pull_range (pad=pad@entry=0x7062e038, offset=<optimized out>, size=65536, size@entry=1885528120, buffer=buffer@entry=0x6bb9ca8c) at gstpad.c:4775
#16 0x73256ff0 in gst_proxy_pad_getrange_default (pad=0x7062f080, parent=<optimized out>, offset=<optimized out>, size=65536, buffer=0x6bb9ca8c) at gstghostpad.c:184
#17 0x73268640 in gst_pad_get_range_unchecked (pad=pad@entry=0x7062f080, offset=2859990, size=65536, size@entry=1885447192, buffer=0x6bb9cb0c, buffer@entry=0x6bb9cb04) at gstpad.c:4536
#18 0x732712f4 in gst_pad_pull_range (pad=0x7061a2c8, offset=<optimized out>, size=65536, buffer=0x6bb9cb94) at gstpad.c:4775
#19 0x73268640 in gst_pad_get_range_unchecked (pad=pad@entry=0x7061a418, offset=2859990, size=65536, size@entry=1807338732, buffer=0x6bb9cc14, buffer@entry=0x6bb9cc0c) at gstpad.c:4536
#20 0x732712f4 in gst_pad_pull_range (pad=0x7061a568, offset=<optimized out>, size=size@entry=65536, buffer=0xfeaa8) at gstpad.c:4775
#21 0x70722d74 in gst_base_parse_pull_range (parse=parse@entry=0xfeb78, size=size@entry=65536, buffer=buffer@entry=0x6bb9ccec) at gstbaseparse.c:3139
#22 0x70727858 in gst_base_parse_scan_frame (parse=parse@entry=0xfeb78, klass=0xfe388) at gstbaseparse.c:3275
#23 0x7072c388 in gst_base_parse_loop (pad=<optimized out>) at gstbaseparse.c:3389
#24 0x732a0ae0 in gst_task_func (task=task@entry=0x70630e10) at gsttask.c:331
#25 0x732a1cec in default_func (tdata=<optimized out>, pool=<optimized out>) at gsttaskpool.c:68
#26 0x76d60794 in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:307
#27 0x76d5fc54 in g_thread_proxy (data=0xf10f0) at gthread.c:764
#28 0x76b4905c in ?? () from /lib/
#29 0x76b4905c in ?? () from /lib/
Backtrace stopped: previous frame identical to this frame (corrupt stack?)



It aborts because it fails to allocate 65623 bytes:


This is not a huge or unusual amount of memory,so have to figure out why that can't be allocated on my system??