<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RTEMS crash with mem address not aligned failure</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hello,<BR>
to debug the Filesystem getcwd behavior we want to try latest mainline RTEMS4.11 for SPARC, LEON3 BSP if the error is still there.<BR>
Our application consists for test purpose only of the RTEMS shell and a dummy task<BR>
<BR>
<BR>
Starting 1 threads...<BR>
started thread 0: id: 0x0b010002, prio: 10<BR>
=========================<BR>
starting shell<BR>
=========================<BR>
<BR>
RTEMS SHELL (Ver.1.0-FRC):/dev/console. Sep 30 2014. 'help' to list commands.<BR>
[/] # hello dude, this is tick nr: 1<BR>
hello dude, this is tick nr: 2<BR>
<BR>
[/] # ls<BR>
dev<BR>
<BR>
<BR>
<BR>
Afterwards typing the ls command into the shell the debugger quits with the error:<BR>
<BR>
grmon2> load cassis.elf; run<BR>
40000000 .text 460.4kB / 460.4kB [===============>] 100%<BR>
40073170 .data 5.1kB / 5.1kB [===============>] 100%<BR>
400745D0 .jcr 4B [===============>] 100%<BR>
Total size: 465.46kB (2.04Mbit/s)<BR>
Entry point 0x40000000<BR>
Image cassis.elf loaded<BR>
CPU 0: IU in error mode (tt = 0x07, mem address not aligned)<BR>
0x40005310: c201a010 ld [%g6 + 0x10], %g1 <malloc_is_system_state_OK+0><BR>
CPU 1: Power down mode<BR>
<BR>
Could this be a newlib issue? We are using:<BR>
#<BR>
# Tools configuration.<BR>
#<BR>
4.11/rtems-autotools<BR>
devel/expat-2.1.0-1<BR>
tools/rtems-binutils-2.24-1<BR>
tools/rtems-gcc-4.7.3-newlib-2.0.0-1<BR>
tools/rtems-gdb-7.7-1<BR>
tools/rtems-kernel-4.11<BR>
<BR>
We are using rtems-source-builder for building toolchain and kernel but the suggested newlib cvs repo is down so we switched to an older one.<BR>
<BR>
Thanks,<BR>
Marco<BR>
</FONT>
</P>
</BODY>
</HTML>