[RTEMS Project] #3755: leak in realloc
RTEMS trac
trac at rtems.org
Wed Jul 31 00:10:57 UTC 2019
#3755: leak in realloc
--------------------------+---------------------
Reporter: Jeffrey Hill | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: score | Version: 4.11
Severity: normal | Resolution:
Keywords: realloc leak | Blocked By:
Blocking: |
--------------------------+---------------------
Comment (by Jeffrey Hill):
I noticed last week that the EPICS shell function for displaying the
"heapSpace" is implemented as follows. Furthermore, peaking in the score
area I can see perhaps that the protected heap methods do ''not'' update
the lifetime_allocated and lifetime_freed when realloc is called. So this
might be indicate that the issues was observed due to weaknesses in our
instrumentation. Whether the instrumentation issues is in EPICS our RTEMS
is matter for further discussion :-). We have isolated another leak which
is currently known now to be with the EPICS save/restore facility, or more
likely in the RTEMS NFS client. When I get that one knocked out then I
will try returning the original Lua allocator, calling realloc, and see if
this issue was a false positive due to instrumentation error.
{{{
Heap_Information_block info;
malloc_info( &info );
x = info.Stats.size - (unsigned long)(info.Stats.lifetime_allocated -
info.Stats.lifetime_freed);
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/3755#comment:13>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list