[LLVMbugs] [Bug 9596] New: llvm-gcc miscompiles GMP 4.3.2/5.0.1
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 31 06:58:21 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9596
Summary: llvm-gcc miscompiles GMP 4.3.2/5.0.1
Product: new-bugs
Version: 2.9
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
When the llvm-gcc compiler in llvm-gcc-4.2 2.9 is used to build GMP
4.3.2/5.0.1, the resulting builds fail the GMP make check. In the case of GMP
4.3.2 for instance, we see two failures...
/bin/sh: line 1: 22036 Segmentation fault ${dir}$tst
FAIL: t-hamdist
/bin/sh: line 1: 22075 Segmentation fault ${dir}$tst
FAIL: t-popcount
The first failure backtraces in gdb as...
[MacPro:tests/mpz/.libs] root# gdb ./t-hamdist
...
(gdb) r
Starting program:
/sw/src/fink.build/gmp-4.3.2-8/gmp-4.3.2/build/tests/mpz/.libs/t-hamdist
Reading symbols for shared libraries ++. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x0000000100037ab0 in __gmpn_popcount ()
(gdb) bt
#0 0x0000000100037ab0 in __gmpn_popcount ()
#1 0x0000000100020a5b in __gmpz_hamdist ()
#2 0x0000000100001436 in check_twobits () at t-hamdist.c:45
#3 0x000000010000165b in main () at t-hamdist.c:119
(gdb)
In the second case, the failure backtraces as...
MacPro:tests/mpz/.libs] root# gdb ./t-popcount
...
(gdb) r
Starting program:
/sw/src/fink.build/gmp-4.3.2-8/gmp-4.3.2/build/tests/mpz/.libs/t-popcount
Reading symbols for shared libraries ++. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x000000010002bab0 in __gmpn_popcount ()
(gdb) bt
#0 0x000000010002bab0 in __gmpn_popcount ()
#1 0x00000001000008a9 in __gmpz_popcount [inlined] () at :38
#2 0x00000001000008a9 in check_onebit () at t-popcount.c:38
#3 0x0000000100000cae in main () at t-popcount.c:163
(gdb)
The test cases were compiled as...
llvm-gcc-4 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../tests/mpz -I../..
-I../../.. -I../../../tests -fexceptions -I/sw/include -O2 -pedantic -m64 -g
-mtune=core2 -c ../../../tests/mpz/t-hamdist.c
and
llvm-gcc-4 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../tests/mpz -I../..
-I../../.. -I../../../tests -fexceptions -I/sw/include -O2 -pedantic -m64
-mtune=core2 -g -c ../../../tests/mpz/t-popcount.c
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list