[Bug 1873] Not enough workspace reserved with RTEMS Debug enabled.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Aug 3 16:26:49 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1873

--- Comment #5 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-08-03 11:26:48 CDT ---
OK.  I think I have the culprit. And I turned up an allocation I don't think is
accounted for. :-D 

When you enable debug, the heap now turns on heap protection which adds some
amount to the overhead for each heap allocation.  This extra memory is not
accounted for.  

Sebastian.. how much more memory is required when HEAP_PROTECTION is enabled? 
Is HEAP_PROTECTION_HEADER_SIZE the right constant to use for added overhead per
block?

Chris/Sebastian.. The other thing I tripped across was a Workspace Allocate
call from ./libfs/src/devfs/devfs_init.c.  Off hand, I don't know if it is
accounted for but it seems like this memory should have been malloc'ed.  What
do you two thing.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list