This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/11410] New: ffitest failures on Solaris 8/SPARC
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2003 18:21:19 -0000
- Subject: [Bug target/11410] New: ffitest failures on Solaris 8/SPARC
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.