As reported in http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00747.html, I
am seeing a few hundred failures for ACATS on i386-rtems4.9.  The failure set
appears to be about the same for 5.3.4, 4.3-branch, and SVN trunk.  I am trying
to debug
this on the SVN trunk.  I have finally captured the failure and hope someone
can 
help me run down what is broken. This report focuses on a99006a.

I am running on qemu and by turning on its debugging I have  managed find that
the Ada run-time does an indirect jump to 0x0.  I will attach a symbol table
along with the compressed qemu.log.

The last few instructions before the jump to 0x0 involve a call to
system__soft_links__set_jmpbuf_address_soft so I set a breakpoint there.
On the 8th time it hits it, the address passed in is 0x0 and the backtrace
is this:

 Breakpoint 1, system.soft_links.set_jmpbuf_address_soft (addr=(system.address)
0x0) at s-soflin.adb:270
270        procedure Set_Jmpbuf_Address_Soft (Addr : Address) is
(gdb) bt
#0  system.soft_links.set_jmpbuf_address_soft (addr=(system.address) 0x0) at
s-soflin.adb:270
#1  0x00117c52 in system.file_io.chain_file (file=0x14ffa0) at s-fileio.adb:166
#2  0x001119d8 in <ada__text_io___elabb> () at a-textio.adb:2272
#3  0x001002ea in adainit () at
../../../../../../../../../423/rtems/c/src/lib/libbsp/i386/pc386/start/start.S:192
#4  0x0010036d in gnat_main () at
../../../../../../../../../423/rtems/c/src/lib/libbsp/i386/pc386/start/start.S:192
#5  0x0010039c in start_gnat_main ()
    at
../../../../../../../../../423/rtems/c/src/lib/libbsp/i386/pc386/start/start.S:192
#6  0x00137107 in _Thread_Handler ()
    at
../../../../../../../423/rtems/c/src/../../cpukit/score/src/threadhandler.c:151

It runs and does some more calls to that same routine but eventually we 
end up doing the indirect call to 0x0 from the middle of 
system__tasking__stages__task_wrapper

I have checked and memory is initialized to zero on this BSP in case this was
an issue and none of the tasks in this test are blowing their stacks.

Advice definitely appreciated on this one.


-- 
           Summary: Branch to 0x0 from Ada run-time
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: joel at gcc dot gnu dot org
GCC target triplet: i386-rtems4.9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35284

Reply via email to