* heapwalk/init.c, heapwalk/heapwalk.scn, malloctest/init.c,
	malloctest/malloctest.scn: New test cases.
	* stackchk/blow.c, stackchk/stackchk.scn: Update for heap API changes.
This commit is contained in:
Joel Sherrill
2009-09-09 14:59:09 +00:00
parent 518c2aeba2
commit 809fb589fc
7 changed files with 1717 additions and 1173 deletions

View File

@@ -30,7 +30,8 @@ b();
area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area;
low = (volatile uint32_t *) (area + HEAP_BLOCK_HEADER_SIZE);
/* Look in the stack checker implementation for this magic offset */
low = (volatile uint32_t *) (area + sizeof(Heap_Block) - HEAP_BLOCK_HEADER_SIZE);
high = (volatile uint32_t *)
(area + _Thread_Executing->Start.Initial_stack.size - 16);

View File

@@ -1,12 +1,15 @@
*** TEST STACK CHECKER ***
TA1 - rtems_clock_get - 09:00:00 12/31/1988
TA2 - rtems_clock_get - 09:00:00 12/31/1988
TA3 - rtems_clock_get - 09:00:00 12/31/1988
TA1 - rtems_clock_get - 09:00:05 12/31/1988
TA1 - rtems_clock_get - 09:00:10 12/31/1988
TA2 - rtems_clock_get - 09:00:10 12/31/1988
TA1 - rtems_clock_get - 09:00:15 12/31/1988
---> error indication similar to:
BLOWN STACK!!! Offending task(0x23EE7A0): id=0x0A010002; name=0x54413120
stack covers range 0x23F1BD0 - 0x23F4BDF (12304 bytes)
Damaged pattern begins at 0x023F1BD8 and is 16 bytes long
TA1 - rtems_clock_get_tod - 09:00:00 12/31/1988
TA2 - rtems_clock_get_tod - 09:00:00 12/31/1988
TA3 - rtems_clock_get_tod - 09:00:00 12/31/1988
TA1 - rtems_clock_get_tod - 09:00:05 12/31/1988
TA1 - rtems_clock_get_tod - 09:00:10 12/31/1988
TA2 - rtems_clock_get_tod - 09:00:10 12/31/1988
TA1 - rtems_clock_get_tod - 09:00:15 12/31/1988
BLOWN STACK!!!
task control block: 0x????????
task ID: 0x0A010002
task name: 0x????????
task name string: TA1
task stack area (????? Bytes): 0x???????? .. 0x????????
damaged pattern area (16 Bytes): 0x???????? .. 0x????????