RTEMS crash with mem address not aligned failure

Chris Johns chrisj at rtems.org
Sat Oct 4 05:07:29 UTC 2014


On 4/10/2014 7:03 am, Chris Johns wrote:
> On 3/10/2014 7:40 pm, Hoefle Marco wrote:
>> Hello,
>> to debug the Filesystem getcwd behavior we want to try latest mainline
>> RTEMS4.11 for SPARC, LEON3 BSP if the error is still there.
>> Our application consists for test purpose only of the RTEMS shell and a
>> dummy task
>>
>>
>> Starting 1 threads...
>> started thread 0: id: 0x0b010002, prio: 10
>>   =========================
>>   starting shell
>>   =========================
>>
>> RTEMS SHELL (Ver.1.0-FRC):/dev/console. Sep 30 2014. 'help' to list
>> commands.
>> [/] # hello dude, this is tick nr: 1
>> hello dude, this is tick nr: 2
>>
>> [/] # ls
>> dev
>>
>>
>>
>> Afterwards typing the ls command into the shell the debugger quits with
>> the error:
>>
>> grmon2> load cassis.elf; run
>>    40000000 .text                    460.4kB / 460.4kB
>> [===============>] 100%
>>    40073170 .data                      5.1kB /   5.1kB
>> [===============>] 100%
>>    400745D0 .jcr                         4B
>> [===============>] 100%
>>    Total size: 465.46kB (2.04Mbit/s)
>>    Entry point 0x40000000
>>    Image cassis.elf loaded
>>    CPU 0:  IU in error mode (tt = 0x07, mem address not aligned)
>>            0x40005310: c201a010  ld  [%g6 + 0x10], %g1
>> <malloc_is_system_state_OK+0>
>>    CPU 1:  Power down mode
>>
>> Could this be a newlib issue? We are using:
>
> Is the memory map ok for the BSP ? It pays when moving to 4.11 from 4.10
> to check the memory map is ok.
>

I can confirm this happens on the SIS bsp in simulator using the 
fileio.exe example. Run the sample, hit a key, start the shell and enter ls.

Sorry but I have no time at the moment to look into this.

Chris



More information about the users mailing list