[Bug target/29111] New: FAIL: gcc.dg/torture/pr26565.c -O0 execution test

danglin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Sep 16 17:56:00 GMT 2006


Executing on host: /home/dave/gcc-4.2/objdir/gcc/xgcc
-B/home/dave/gcc-4.2/objdi
r/gcc/ /home/dave/gcc-4.2/gcc/gcc/testsuite/gcc.dg/torture/pr26565.c   -O0  
-fn
o-show-column  -lm   -o ./pr26565.exe    (timeout = 300)
PASS: gcc.dg/torture/pr26565.c  -O0  (test for excess errors)
Setting LD_LIBRARY_PATH to
:/home/dave/gcc-4.2/objdir/gcc::/home/dave/gcc-4.2/ob
jdir/gcc:/home/dave/gcc-4.2/objdir/hppa-linux/libstdc++-v3/.libs:/home/dave/gcc-
4.2/objdir/hppa-linux/libmudflap/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/libs
sp/.libs:/home/dave/gcc-4.2/objdir/hppa-linux/libgomp/.libs:/home/dave/gcc-4.2/o
bjdir/./gcc:/home/dave/gcc-4.2/objdir/./prev-gcc
FAIL: gcc.dg/torture/pr26565.c  -O0  execution test

(gdb) r
Starting program: /home/dave/gcc-4.2/objdir/gcc/testsuite/gcc/pr26565.xg

Program received signal SIGBUS, Bus error.
0x00010474 in send_probe (outdata=0x20a28, tp=0x20a24)
    at /home/dave/gcc-4.2/gcc/gcc/testsuite/gcc.dg/torture/pr26565.c:20
20          memcpy(&outdata->tv, tp, sizeof outdata->tv);
(gdb) bt
#0  0x00010474 in send_probe (outdata=0x20a28, tp=0x20a24)
    at /home/dave/gcc-4.2/gcc/gcc/testsuite/gcc.dg/torture/pr26565.c:20
#1  0x000104ac in main ()
    at /home/dave/gcc-4.2/gcc/gcc/testsuite/gcc.dg/torture/pr26565.c:28
(gdb) p/x $pc
$1 = 0x10474
(gdb) disass send_probe
Dump of assembler code for function send_probe:
0x00010450 <send_probe+0>:      copy r3,r1
0x00010454 <send_probe+4>:      copy sp,r3
0x00010458 <send_probe+8>:      stw,ma r1,40(sp)
0x0001045c <send_probe+12>:     stw r26,-24(r3)
0x00010460 <send_probe+16>:     stw r25,-28(r3)
0x00010464 <send_probe+20>:     ldw -24(r3),ret0
0x00010468 <send_probe+24>:     ldo 5(ret0),r19
0x0001046c <send_probe+28>:     ldw -28(r3),ret0
0x00010470 <send_probe+32>:     ldw 0(ret0),ret0
0x00010474 <send_probe+36>:     stw ret0,0(r19)
0x00010478 <send_probe+40>:     ldo 40(r3),sp
0x0001047c <send_probe+44>:     ldw,mb -40(sp),r3
0x00010480 <send_probe+48>:     bv,n r0(rp)
End of assembler dump.
(gdb) p/x $r19
$2 = 0x20a2d

The "stw" at 0x00010474 is unaligned.  I noticed this because I
disabled the default unaligned fixup support in the kernel.

This is a regression from 3.4 which called memcpy.  All 4.x branches
fail.  The test doesn't fail under hpux because memcpy is called.


-- 
           Summary: FAIL: gcc.dg/torture/pr26565.c  -O0  execution test
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa-unknown-linux-gnu
  GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu


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



More information about the Gcc-bugs mailing list