PowerPC Ada program terminates with internal error (on psim)

Joel Sherrill joel.sherrill at oarcorp.com
Mon Jan 8 16:09:51 UTC 2007


avy st wrote:
> Hello All,
>  
>   I just completed a what I hope is a successful build of a Cygwin 
> based Ada supporing toolset (based on gcc-4.1.20060909 snapshot) for 
> PowerPC, and RTEMS 4.6.99.3, psim and ss555 BSP.
>  
>   However, when running a simple Ada 'hello' test program, the program 
> runs correctly, and then RTEMS complains about an internal error.  
> Here is a gdb log that shows the problem (psim BSP):
>  
>
>     GNU gdb 6.4
>     Copyright 2005 Free Software Foundation, Inc.
>     GDB is free software, covered by the GNU General Public License,
>     and you are
>     welcome to change it and/or distribute copies of it under certain
>     conditions.
>     Type "show copying" to see the conditions.
>     There is absolutely no warranty for GDB.  Type "show warranty" for
>     details.
>     This GDB was configured as "--host=i686-pc-cygwin
>     --target=powerpc-rtems"...
>     Connected to the simulator.
>     Breakpoint 1 at 0x1f3d8
>     Breakpoint 2 at 0x1dad0
>     Breakpoint 3 at 0x2912c: file
>     ../../../../../../source/gcc-4.1-20060929/newlib/libc/stdlib/assert.c,
>     line 57.
>     (gdb) run
>     Starting program: /home/avy/t.exe
>     Hello RTEMS Ada
>     Breakpoint 1, 0x0001f3d8 in _Internal_error_Occurred ()
>     (gdb) quit
>     The program is running.  Exit anyway? (y or n)
>     The Ada test program is:
>      
>     with Ada.Text_io;
>     procedure T is
>     begin
>       Ada.Text_IO.Put_Line("Hello RTEMS Ada");
>     end T;
>
> The C hello test progam shows the 'normal, expected' behavior:
>  
>
>     GNU gdb 6.4
>     Copyright 2005 Free Software Foundation, Inc.
>     GDB is free software, covered by the GNU General Public License,
>     and you are
>     welcome to change it and/or distribute copies of it under certain
>     conditions.
>     Type "show copying" to see the conditions.
>     There is absolutely no warranty for GDB.  Type "show warranty" for
>     details.
>     This GDB was configured as "--host=i686-pc-cygwin
>     --target=powerpc-rtems"...
>     Connected to the simulator.
>     Breakpoint 1 at 0xbb7c
>     Breakpoint 2 at 0xa274
>     Breakpoint 3 at 0x13afc: file
>     ../../../../../../source/gcc-4.1-20060929/newlib/libc/stdlib/assert.c,
>     line 57.
>     (gdb) run
>     Starting program:
>     /opt/rtems-tools-4.7/powerpc-rtems/psim/lib/rtems-4.7/tests/hello.exe
>
>     *** HELLO WORLD TEST ***
>     Hello World
>     *** END OF HELLO WORLD TEST ***
>     Program exited normally.
>     (gdb) quit
>
>  
> Any Ideas?
Could you provide a backtrace?  The program looks like it ran OK so we 
don't know if
something happened on the backtrace.

--joel
> Sincerely
> Avy Strominger
> astominger at yahoo.com <mailto:astominger at yahoo.com>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list