<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-22)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-22 Jennifer Averett <Jennifer.Averett@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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.182&r2=text&tr2=1.183&diff_format=h">M</a></td><td width='1%'>1.183</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/Makefile.am.diff?r1=text&tr1=1.27&r2=text&tr2=1.28&diff_format=h">M</a></td><td width='1%'>1.28</td><td width='100%'>testsuites/libtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/configure.ac.diff?r1=text&tr1=1.34&r2=text&tr2=1.35&diff_format=h">M</a></td><td width='1%'>1.35</td><td width='100%'>testsuites/libtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc03/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc03/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc03/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc03/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc03/init.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc03/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc03/malloc03.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc03/malloc03.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc03/malloc03.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc03/malloc03.scn</font></td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,5 +1,12 @@
</font> 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
<font color='#000088'>+ * 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@OARcorp.com>
+
</font> * malloctest/init.c: Added error case with malloc of size 0.
2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
<font color='#006600'>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
</font><font color='#997700'>@@ -6,8 +6,9 @@
</font>
SUBDIRS = POSIX
<font color='#880000'>-SUBDIRS += bspcmdline01 cpuuse malloctest malloc02 heapwalk putenvtest monitor \
- monitor02 rtmonuse stackchk stackchk01 termios termios01 termios02 \
</font><font color='#000088'>+SUBDIRS += bspcmdline01 cpuuse malloctest malloc02 malloc03 heapwalk \
+ putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
+ termios termios01 termios02 \
</font> rtems++ tztest block01 block02 block03 block04 block05 block06 block07 \
block08 block09 block10 stringto01
<font color='#006600'>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
</font><font color='#997700'>@@ -48,6 +48,7 @@
</font> heapwalk/Makefile
malloctest/Makefile
malloc02/Makefile
<font color='#000088'>+malloc03/Makefile
</font> monitor/Makefile
monitor02/Makefile
putenvtest/Makefile
<font color='#006600'>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
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>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
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+##
+## $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@.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
</font>
<font color='#006600'>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
</font><font color='#997700'>@@ -0,0 +1,44 @@
</font><font color='#000088'>+/*
+ * 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 */
</font>
<font color='#006600'>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
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+# $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:
+
++<span style="background-color: #FF0000"> </span>
</font>
<font color='#006600'>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
</font><font color='#997700'>@@ -0,0 +1,4 @@
</font><font color='#000088'>+*** TEST MALLOC03 ***
+Attempt to free stack memory
+Program heap: free of bad pointer 2E2F0 -- range 2EA60 - 1000000<span style="background-color: #FF0000"> </span>
+*** END OF TEST MALLOC03 ***
</font></pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-22 Jennifer Averett <Jennifer.Averett@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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2450&r2=text&tr2=1.2451&diff_format=h">M</a></td><td width='1%'>1.2451</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/Makefile.am.diff?r1=text&tr1=1.121&r2=text&tr2=1.122&diff_format=h">M</a></td><td width='1%'>1.122</td><td width='100%'>cpukit/libcsupport/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/include/rtems/libio_.h.diff?r1=text&tr1=1.37&r2=text&tr2=1.38&diff_format=h">M</a></td><td width='1%'>1.38</td><td width='100%'>cpukit/libcsupport/include/rtems/libio_.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/freenode.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/libcsupport/src/freenode.c</font></td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
<font color='#000088'>+ * 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@OARcorp.com>
+
</font> * posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
code and cleaned up error checking code.
<font color='#006600'>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
</font><font color='#997700'>@@ -84,7 +84,8 @@
</font> src/setpgid.c src/setsid.c
MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \
<font color='#880000'>- src/realloc.c src/_calloc_r.c src/free.c src/_free_r.c src/_malloc_r.c \
</font><font color='#000088'>+ src/realloc.c src/_calloc_r.c src/_malloc_r.c \
+ src/free.c src/freenode.c src/_free_r.c \
</font> 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 \
<font color='#006600'>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
</font><font color='#997700'>@@ -148,13 +148,7 @@
</font> * Macro to free a node.
*/
<font color='#880000'>-#define rtems_filesystem_freenode( _node ) \
- do { \
- if ( (_node)->ops )\
- if ( (_node)->ops->freenod_h ) \
- (*(_node)->ops->freenod_h)( (_node) ); \
- } while (0)
-
</font><font color='#000088'>+void rtems_filesystem_freenode( rtems_filesystem_location_info_t* node );
</font>
/*
* External structures
<font color='#006600'>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
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+/*
+ * 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 );
+}
</font></pre>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-22 Joel Sherrill <joel.sherrilL@OARcorp.com>
* stackchk/blow.c, stackchk/stackchk.scn: Print a stack check report
before blowing stack.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.183&r2=text&tr2=1.184&diff_format=h">M</a></td><td width='1%'>1.184</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/stackchk/blow.c.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&diff_format=h">M</a></td><td width='1%'>1.15</td><td width='100%'>testsuites/libtests/stackchk/blow.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/stackchk/stackchk.scn.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/libtests/stackchk/stackchk.scn</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-06-22 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * stackchk/blow.c, stackchk/stackchk.scn: Print a stack check report
+ before blowing stack.
+
</font> 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* Makefile.am, configure.ac: Added test that attempts to free stack
<font color='#006600'>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
</font><font color='#997700'>@@ -14,6 +14,7 @@
</font> */
#include <rtems.h>
<font color='#000088'>+#include <rtems/stackchk.h>
</font>
void b(void) {}
<font color='#997700'>@@ -28,22 +29,22 @@
</font> * does not cause problems :)
*/
<font color='#880000'>- 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;
</font><font color='#000088'>+ area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area;
</font>
<font color='#000088'>+ /* 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();
</font> }
<font color='#006600'>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
</font><font color='#997700'>@@ -5,6 +5,13 @@
</font> 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
<font color='#000088'>+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
</font> TA1 - rtems_clock_get_tod - 09:00:15 12/31/1988
BLOWN STACK!!!
task control block: 0x????????
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>