Changeset 809fb589 in rtems for testsuites/libtests/stackchk


Ignore:
Timestamp:
Sep 9, 2009, 2:59:09 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
b2f05456
Parents:
518c2aeb
Message:

2009-09-09 Christian Mauderer <christian.mauderer@…>

  • 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.
Location:
testsuites/libtests/stackchk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/stackchk/blow.c

    r518c2aeb r809fb589  
    3131 area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area;
    3232
    33  low  = (volatile uint32_t   *) (area + HEAP_BLOCK_HEADER_SIZE);
     33 /* Look in the stack checker implementation for this magic offset */
     34 low  = (volatile uint32_t   *) (area + sizeof(Heap_Block) - HEAP_BLOCK_HEADER_SIZE);
    3435 high = (volatile uint32_t   *)
    3536            (area + _Thread_Executing->Start.Initial_stack.size - 16);
  • testsuites/libtests/stackchk/stackchk.scn

    r518c2aeb r809fb589  
    11*** TEST STACK CHECKER ***
    2 TA1  - rtems_clock_get - 09:00:00   12/31/1988
    3 TA2  - rtems_clock_get - 09:00:00   12/31/1988
    4 TA3  - rtems_clock_get - 09:00:00   12/31/1988
    5 TA1  - rtems_clock_get - 09:00:05   12/31/1988
    6 TA1  - rtems_clock_get - 09:00:10   12/31/1988
    7 TA2  - rtems_clock_get - 09:00:10   12/31/1988
    8 TA1  - rtems_clock_get - 09:00:15   12/31/1988
    9 ---> error indication similar to:
    10 BLOWN STACK!!! Offending task(0x23EE7A0): id=0x0A010002; name=0x54413120
    11   stack covers range 0x23F1BD0 - 0x23F4BDF (12304 bytes)
    12   Damaged pattern begins at 0x023F1BD8 and is 16 bytes long
     2TA1  - rtems_clock_get_tod - 09:00:00   12/31/1988
     3TA2  - rtems_clock_get_tod - 09:00:00   12/31/1988
     4TA3  - rtems_clock_get_tod - 09:00:00   12/31/1988
     5TA1  - rtems_clock_get_tod - 09:00:05   12/31/1988
     6TA1  - rtems_clock_get_tod - 09:00:10   12/31/1988
     7TA2  - rtems_clock_get_tod - 09:00:10   12/31/1988
     8TA1  - rtems_clock_get_tod - 09:00:15   12/31/1988
     9BLOWN STACK!!!
     10task control block: 0x????????
     11task ID: 0x0A010002
     12task name: 0x????????
     13task name string: TA1
     14task stack area (????? Bytes): 0x???????? .. 0x????????
     15damaged pattern area (16 Bytes): 0x???????? .. 0x????????
Note: See TracChangeset for help on using the changeset viewer.