change log for rtems (2010-06-22)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Jun 22 20:12:03 UTC 2010
*jennifer*:
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* Makefile.am, configure.ac: Added test that attempts to free stack
memory. This causes a error to be printed from the free function.
* malloc03/.cvsignore, malloc03/Makefile.am, malloc03/init.c,
malloc03/malloc03.doc, malloc03/malloc03.scn: New files.
M 1.183 testsuites/libtests/ChangeLog
M 1.28 testsuites/libtests/Makefile.am
M 1.35 testsuites/libtests/configure.ac
A 1.1 testsuites/libtests/malloc03/.cvsignore
A 1.1 testsuites/libtests/malloc03/Makefile.am
A 1.1 testsuites/libtests/malloc03/init.c
A 1.1 testsuites/libtests/malloc03/malloc03.doc
A 1.1 testsuites/libtests/malloc03/malloc03.scn
diff -u rtems/testsuites/libtests/ChangeLog:1.182 rtems/testsuites/libtests/ChangeLog:1.183
--- rtems/testsuites/libtests/ChangeLog:1.182 Tue Jun 22 13:20:46 2010
+++ rtems/testsuites/libtests/ChangeLog Tue Jun 22 14:27:11 2010
@@ -1,5 +1,12 @@
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+ * Makefile.am, configure.ac: Added test that attempts to free stack
+ memory. This causes a error to be printed from the free function.
+ * malloc03/.cvsignore, malloc03/Makefile.am, malloc03/init.c,
+ malloc03/malloc03.doc, malloc03/malloc03.scn: New files.
+
+2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+
* malloctest/init.c: Added error case with malloc of size 0.
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
diff -u rtems/testsuites/libtests/Makefile.am:1.27 rtems/testsuites/libtests/Makefile.am:1.28
--- rtems/testsuites/libtests/Makefile.am:1.27 Mon Jun 21 15:05:43 2010
+++ rtems/testsuites/libtests/Makefile.am Tue Jun 22 14:27:12 2010
@@ -6,8 +6,9 @@
SUBDIRS = POSIX
-SUBDIRS += bspcmdline01 cpuuse malloctest malloc02 heapwalk putenvtest monitor \
- monitor02 rtmonuse stackchk stackchk01 termios termios01 termios02 \
+SUBDIRS += bspcmdline01 cpuuse malloctest malloc02 malloc03 heapwalk \
+ putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
+ termios termios01 termios02 \
rtems++ tztest block01 block02 block03 block04 block05 block06 block07 \
block08 block09 block10 stringto01
diff -u rtems/testsuites/libtests/configure.ac:1.34 rtems/testsuites/libtests/configure.ac:1.35
--- rtems/testsuites/libtests/configure.ac:1.34 Mon Jun 21 15:05:45 2010
+++ rtems/testsuites/libtests/configure.ac Tue Jun 22 14:27:12 2010
@@ -48,6 +48,7 @@
heapwalk/Makefile
malloctest/Makefile
malloc02/Makefile
+malloc03/Makefile
monitor/Makefile
monitor02/Makefile
putenvtest/Makefile
diff -u /dev/null rtems/testsuites/libtests/malloc03/.cvsignore:1.1
--- /dev/null Tue Jun 22 15:12:02 2010
+++ rtems/testsuites/libtests/malloc03/.cvsignore Tue Jun 22 14:27:12 2010
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff -u /dev/null rtems/testsuites/libtests/malloc03/Makefile.am:1.1
--- /dev/null Tue Jun 22 15:12:02 2010
+++ rtems/testsuites/libtests/malloc03/Makefile.am Tue Jun 22 14:27:12 2010
@@ -0,0 +1,26 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = malloc03
+malloc03_SOURCES = init.c ../../support/src/spin.c
+
+dist_rtems_tests_DATA = malloc03.scn
+dist_rtems_tests_DATA += malloc03.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(malloc03_OBJECTS) $(malloc03_LDADD)
+LINK_LIBS = $(malloc03_LDLIBS)
+
+malloc03$(EXEEXT): $(malloc03_OBJECTS) $(malloc03_DEPENDENCIES)
+ @rm -f malloc03$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
diff -u /dev/null rtems/testsuites/libtests/malloc03/init.c:1.1
--- /dev/null Tue Jun 22 15:12:02 2010
+++ rtems/testsuites/libtests/malloc03/init.c Tue Jun 22 14:27:12 2010
@@ -0,0 +1,44 @@
+/*
+ * COPYRIGHT (c) 1989-2010.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <tmacros.h>
+#include "test_support.h"
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ void *p1;
+ unsigned int val = 999;
+
+ puts( "\n\n*** TEST MALLOC03 ***" );
+
+ p1 = &val;
+ printf("Attempt to free stack memory\n");
+ free( p1 );
+
+ puts( "*** END OF TEST MALLOC03 ***" );
+
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */
diff -u /dev/null rtems/testsuites/libtests/malloc03/malloc03.doc:1.1
--- /dev/null Tue Jun 22 15:12:02 2010
+++ rtems/testsuites/libtests/malloc03/malloc03.doc Tue Jun 22 14:27:12 2010
@@ -0,0 +1,22 @@
+#
+# $Id$
+#
+# COPYRIGHT (c) 1989-2010.
+# On-Line Applications Research Corporation (OAR).
+#
+# The license and distribution terms for this file may be
+# found in the file LICENSE in this distribution or at
+# http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name: malloc03
+
+directives:
+
+ + free stack memory
+
+concepts:
+
++
diff -u /dev/null rtems/testsuites/libtests/malloc03/malloc03.scn:1.1
--- /dev/null Tue Jun 22 15:12:02 2010
+++ rtems/testsuites/libtests/malloc03/malloc03.scn Tue Jun 22 14:27:12 2010
@@ -0,0 +1,4 @@
+*** TEST MALLOC03 ***
+Attempt to free stack memory
+Program heap: free of bad pointer 2E2F0 -- range 2EA60 - 1000000
+*** END OF TEST MALLOC03 ***
*jennifer*:
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/libio_.h: Moved
method to free a node from a define to an external method.
* libcsupport/src/freenode.c: New file.
M 1.2451 cpukit/ChangeLog
M 1.122 cpukit/libcsupport/Makefile.am
M 1.38 cpukit/libcsupport/include/rtems/libio_.h
A 1.1 cpukit/libcsupport/src/freenode.c
diff -u rtems/cpukit/ChangeLog:1.2450 rtems/cpukit/ChangeLog:1.2451
--- rtems/cpukit/ChangeLog:1.2450 Tue Jun 22 10:36:05 2010
+++ rtems/cpukit/ChangeLog Tue Jun 22 15:03:40 2010
@@ -1,5 +1,11 @@
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+ * libcsupport/Makefile.am, libcsupport/include/rtems/libio_.h: Moved
+ method to free a node from a define to an external method.
+ * libcsupport/src/freenode.c: New file.
+
+2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+
* posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
code and cleaned up error checking code.
diff -u rtems/cpukit/libcsupport/Makefile.am:1.121 rtems/cpukit/libcsupport/Makefile.am:1.122
--- rtems/cpukit/libcsupport/Makefile.am:1.121 Thu Jun 10 04:07:28 2010
+++ rtems/cpukit/libcsupport/Makefile.am Tue Jun 22 15:03:41 2010
@@ -84,7 +84,8 @@
src/setpgid.c src/setsid.c
MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \
- src/realloc.c src/_calloc_r.c src/free.c src/_free_r.c src/_malloc_r.c \
+ src/realloc.c src/_calloc_r.c src/_malloc_r.c \
+ src/free.c src/freenode.c src/_free_r.c \
src/_realloc_r.c src/__brk.c src/__sbrk.c src/mallocfreespace.c \
src/mallocinfo.c src/malloc_walk.c src/malloc_get_statistics.c \
src/malloc_report_statistics.c src/malloc_report_statistics_plugin.c \
diff -u rtems/cpukit/libcsupport/include/rtems/libio_.h:1.37 rtems/cpukit/libcsupport/include/rtems/libio_.h:1.38
--- rtems/cpukit/libcsupport/include/rtems/libio_.h:1.37 Mon Jun 14 08:35:45 2010
+++ rtems/cpukit/libcsupport/include/rtems/libio_.h Tue Jun 22 15:03:41 2010
@@ -148,13 +148,7 @@
* Macro to free a node.
*/
-#define rtems_filesystem_freenode( _node ) \
- do { \
- if ( (_node)->ops )\
- if ( (_node)->ops->freenod_h ) \
- (*(_node)->ops->freenod_h)( (_node) ); \
- } while (0)
-
+void rtems_filesystem_freenode( rtems_filesystem_location_info_t* node );
/*
* External structures
diff -u /dev/null rtems/cpukit/libcsupport/src/freenode.c:1.1
--- /dev/null Tue Jun 22 15:12:03 2010
+++ rtems/cpukit/libcsupport/src/freenode.c Tue Jun 22 15:03:41 2010
@@ -0,0 +1,22 @@
+/*
+ * freenode()
+ *
+ * COPYRIGHT (c) 1989-2010.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <stdlib.h>
+#include <rtems/libio_.h>
+
+void rtems_filesystem_freenode( rtems_filesystem_location_info_t *_node )
+{
+ if ( _node->ops )
+ if ( _node->ops->freenod_h )
+ _node->ops->freenod_h(_node );
+}
*joel*:
2010-06-22 Joel Sherrill <joel.sherrilL at OARcorp.com>
* stackchk/blow.c, stackchk/stackchk.scn: Print a stack check report
before blowing stack.
M 1.184 testsuites/libtests/ChangeLog
M 1.15 testsuites/libtests/stackchk/blow.c
M 1.4 testsuites/libtests/stackchk/stackchk.scn
diff -u rtems/testsuites/libtests/ChangeLog:1.183 rtems/testsuites/libtests/ChangeLog:1.184
--- rtems/testsuites/libtests/ChangeLog:1.183 Tue Jun 22 14:27:11 2010
+++ rtems/testsuites/libtests/ChangeLog Tue Jun 22 14:59:35 2010
@@ -1,3 +1,8 @@
+2010-06-22 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ * stackchk/blow.c, stackchk/stackchk.scn: Print a stack check report
+ before blowing stack.
+
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* Makefile.am, configure.ac: Added test that attempts to free stack
diff -u rtems/testsuites/libtests/stackchk/blow.c:1.14 rtems/testsuites/libtests/stackchk/blow.c:1.15
--- rtems/testsuites/libtests/stackchk/blow.c:1.14 Mon Oct 26 00:44:07 2009
+++ rtems/testsuites/libtests/stackchk/blow.c Tue Jun 22 14:59:35 2010
@@ -14,6 +14,7 @@
*/
#include <rtems.h>
+#include <rtems/stackchk.h>
void b(void) {}
@@ -28,22 +29,22 @@
* does not cause problems :)
*/
- area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area;
-
- /* 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);
-
-
- low[0] = 0x11111111;
- low[1] = 0x22222222;
- low[2] = 0x33333333;
- low[3] = 0x44444444;
-
- high[0] = 0x55555555;
- high[1] = 0x66666666;
- high[2] = 0x77777777;
- high[3] = 0x88888888;
+ area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area;
+ /* 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);
+
+ low[0] = 0x11111111;
+ low[1] = 0x22222222;
+ low[2] = 0x33333333;
+ low[3] = 0x44444444;
+
+ high[0] = 0x55555555;
+ high[1] = 0x66666666;
+ high[2] = 0x77777777;
+ high[3] = 0x88888888;
+ rtems_stack_checker_report_usage();
}
diff -u rtems/testsuites/libtests/stackchk/stackchk.scn:1.3 rtems/testsuites/libtests/stackchk/stackchk.scn:1.4
--- rtems/testsuites/libtests/stackchk/stackchk.scn:1.3 Wed Sep 9 09:59:09 2009
+++ rtems/testsuites/libtests/stackchk/stackchk.scn Tue Jun 22 14:59:35 2010
@@ -5,6 +5,13 @@
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
+Stack usage by thread
+ ID NAME LOW HIGH CURRENT AVAILABLE USED
+0x09010001 IDLE 0002022AE0 - 0002023AEF 00020238B0 4096 592
+0x0A010002 TA1 0002025630 - 000202863F 0002028420 12288 2752
+0x0A010003 TA2 0002028BD8 - 000202BBE7 000202B9C0 12288 2856
+0x0A010004 TA3 000202C180 - 000202F18F 000202EF70 12288 2752
+0xFFFFFFFF INTR 0002020200 - 00020211FF 0000000000 4080 792
TA1 - rtems_clock_get_tod - 09:00:15 12/31/1988
BLOWN STACK!!!
task control block: 0x????????
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100622/c2f8db38/attachment-0001.html>
More information about the vc
mailing list