[Bug 1873] Not enough workspace reserved with RTEMS Debug enabled.
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Tue Aug 23 09:04:59 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1873
Sebastian Huber <sebastian.huber at embedded-brains.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #10 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-08-23 04:04:58 CDT ---
I propose this patch:
Index: score/include/rtems/score/heap.h
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/score/include/rtems/score/heap.h,v
retrieving revision 1.46
diff -u -r1.46 heap.h
--- score/include/rtems/score/heap.h 21 Aug 2011 19:51:41 -0000 1.46
+++ score/include/rtems/score/heap.h 23 Aug 2011 09:02:02 -0000
@@ -177,9 +177,7 @@
} Heap_Protection_block_end;
#define HEAP_PROTECTION_HEADER_SIZE \
- (sizeof(Heap_Protection_block_begin) + \
- CPU_ALIGNMENT + \
- sizeof(Heap_Protection_block_end))
+ (sizeof(Heap_Protection_block_begin) + sizeof(Heap_Protection_block_end))
#endif
/**
Index: sapi/include/confdefs.h
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/sapi/include/confdefs.h,v
retrieving revision 1.169
diff -u -r1.169 confdefs.h
--- sapi/include/confdefs.h 17 Aug 2011 09:14:09 -0000 1.169
+++ sapi/include/confdefs.h 23 Aug 2011 09:02:02 -0000
@@ -864,7 +868,7 @@
* may be applied.
*/
#define _Configure_From_workspace(_size) \
- (ssize_t)((_size) + (2 * sizeof(uint32_t)) + CPU_ALIGNMENT)
+ (ssize_t)((_size) + HEAP_BLOCK_HEADER_SIZE + CPU_HEAP_ALIGNMENT - 1)
/**
* Do not use the unlimited bit as part of the multiplication
With this patch the following tests fail:
WARNING - log/devfs03 did not appear to complete execution
WARNING - log/heapwalk did not appear to complete execution
WARNING - log/imfs_fspermission did not appear to complete execution
WARNING - log/imfs_fsrdwr did not appear to complete execution
WARNING - log/imfs_fssymlink did not appear to complete execution
WARNING - log/malloc04 did not appear to complete execution
WARNING - log/malloctest did not appear to complete execution
WARNING - log/mdosfs_fspatheval did not appear to complete execution
WARNING - log/mdosfs_fsrdwr did not appear to complete execution
WARNING - log/mdosfs_fstime did not appear to complete execution
WARNING - log/mimfs_fspermission did not appear to complete execution
WARNING - log/mimfs_fsrdwr did not appear to complete execution
WARNING - log/mimfs_fssymlink did not appear to complete execution
WARNING - log/mrfs_fserror did not appear to complete execution
WARNING - log/mrfs_fspatheval did not appear to complete execution
WARNING - log/mrfs_fspermission did not appear to complete execution
WARNING - log/mrfs_fsrdwr did not appear to complete execution
WARNING - log/mrfs_fssymlink did not appear to complete execution
WARNING - log/mrfs_fstime did not appear to complete execution
WARNING - log/psxchroot01 did not appear to complete execution
WARNING - log/psxfile01 did not appear to complete execution
WARNING - log/psximfs02 did not appear to complete execution
WARNING - log/psxkey01 did not appear to complete execution
WARNING - log/psxkey02 did not appear to complete execution
WARNING - log/psxmsgq02 did not appear to complete execution
WARNING - log/psxobj01 did not appear to complete execution
WARNING - log/psxpipe01 did not appear to complete execution
WARNING - log/sp09 did not appear to complete execution
WARNING - log/sp16 did not appear to complete execution
WARNING - log/sp18 did not appear to complete execution
WARNING - log/sp62 did not appear to complete execution
WARNING - log/sp64 did not appear to complete execution
WARNING - log/sp69 did not appear to complete execution
WARNING - log/spmountmgr01 did not appear to complete execution
WARNING - log/spprivenv01 did not appear to complete execution
WARNING - log/spsimplesched02 did not appear to complete execution
WARNING - log/termios01 did not appear to complete execution
WARNING - log/tm20 did not appear to complete execution
WARNING - log/tm27 did not appear to complete execution
I picked some of them up and none had a problem with a too small work space.
--
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