public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11410] New: ffitest failures on Solaris 8/SPARC
@ 2003-07-02 18:21 gcc-bugzilla at gcc dot gnu dot org
  2003-07-24  5:49 ` [Bug target/11410] " andreast at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-07-02 18:21 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ffitest failures on Solaris 8/SPARC
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8

The libffi test ffitest fails for both 32-bit and 64-bit (sparcv9):

in sparc-sun-solaris2.8/libffi, run

LD_LIBRARY_PATH=../../gcc ./ffitest

The test ends with

Enter FFI_CLOSURES

1 2 3 4 127 429 7 8 9 10 11 12 13 19 21 1 3: 680
Bus Error

In gdb, you find

Program received signal SIGSEGV, Segmentation fault.
0x00011364 in closure_test_fn1 (cif=0xffbee864, resp=0xffbee7f8, 
    args=0xffbee748, userdata=0x3)
    at /vol/gnu/src/gcc/gcc-dist/libffi/src/ffitest.c:325
1: x/i $pc  0x11364 <closure_test_fn1+156>:	ldd  [ %i0 ], %f8

%i0 (= cif) is not properly aligned for an 8-byte value, as can be observed
using truss:

9025:       Incurred fault #5, FLTACCESS  %pc = 0x00011364
9025:         siginfo: SIGBUS BUS_ADRALN addr=0xFFBEE8EC
9025:       Received signal #10, SIGBUS [default]
9025:         siginfo: SIGBUS BUS_ADRALN addr=0xFFBEE8EC
9025:           *** process killed ***

The SPARC-V9 test also fails, though in a different way:

in sparc-sun-solaris2.8/sparcv9/libffi, run

LD_LIBRARY_PATH=../../../gcc/sparcv9 ./ffitest

The test ends with

Enter FFI_CLOSURES

1 2 3 4 127 429 7 8 -2147483648 10 11 2147483647 13 19 21 1 3: 658
Test failure: /vol/gnu/src/gcc/gcc-dist/libffi/src/ffitest.c line 1203

If you disable the exit(EXIT_FAILURE) in ffitest.c (fail), the test finds
yet more errors:

1 2 3 4 127 429 7 8 -2147483648 10 11 2147483647 13 19 21 1 3: 658
Test failure: /vol/gnu/src/gcc/gcc-dist/libffi/src/ffitest.c line 1203
1 2 3 4 127 5 0 8 -2147483648 10 11 2147483647 13 19 21 1 3: 227
Test failure: /vol/gnu/src/gcc/gcc-dist/libffi/src/ffitest.c line 1235
1 2 3 4 127 5 0 8 -2147483648 10 11 2147483647 13 0 21 1 3: 208
Test failure: /vol/gnu/src/gcc/gcc-dist/libffi/src/ffitest.c line 1267
1 2 3 4 5 6 0 0 -2147483648 10 0 2147483647 13 0 0 1 3: 47
Test failure: /vol/gnu/src/gcc/gcc-dist/libffi/src/ffitest.c line 1300

Environment:
System: SunOS tikal 5.8 Generic_108528-19 sun4u sparc SUNW,Sun-Blade-1000
Architecture: sun4

	
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: /vol/gnu/src/gcc/gcc-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls

How-To-Repeat:
Run ffitest as described above.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-01-25  7:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-02 18:21 [Bug target/11410] New: ffitest failures on Solaris 8/SPARC gcc-bugzilla at gcc dot gnu dot org
2003-07-24  5:49 ` [Bug target/11410] " andreast at gcc dot gnu dot org
2003-07-29  4:49 ` pinskia at physics dot uc dot edu
2003-07-29  5:11 ` andreast at gcc dot gnu dot org
2003-07-30  4:04 ` cvs-commit at gcc dot gnu dot org
2004-01-11  1:36 ` [Bug libgcj/11410] " pinskia at gcc dot gnu dot org
2004-01-25  7:24 ` ebotcazou at gcc dot gnu dot org
2004-01-25  7:26 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).