GCC 4.6.3 (cc1) crashes when compiling MPFR 3.1.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GCC |
Fix Released
|
Medium
|
Ulrich Weigand | ||
4.6 |
Fix Released
|
Medium
|
Ulrich Weigand | ||
4.7 |
Fix Released
|
Medium
|
Ulrich Weigand | ||
gcc |
Fix Released
|
Medium
|
|||
gcc-4.6 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
...
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_
libtool: compile: gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_
../../mpfr-
../../mpfr-
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
Preprocessed source stored into /tmp/ccAHajJU.out file, please attach this to your bugreport.
make[2]: *** [set_f.lo] Fehler 1
make[2]: Verlasse Verzeichnis '/tmp/mpfr-
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis '/tmp/mpfr-
make: *** [all-recursive] Fehler 1
(The segfault is reproducible.)
CFLAGS taken from an MPIR (2.1.3) installation:
#define __GMP_CC "gcc"
#define __GMP_CFLAGS " -g -O3 -march=native -O3 -g -fno-strict-
Note that MPFR compiles just fine with GCC 4.6.3 on various systems, including e.g. Ubuntu 10.04.4 LTS x86_64.
Also, this didn't happen for someone else with a previous beta of Precise (although in a 32-bit VM IIRC).
I've attached the preprocessed source, FWIW. Going to experiment with compiler flags (especially "-march=...") ...
$ lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04
$ LANG=en_US gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3)
$ head -25 /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
stepping : 7
microcode : 0x1a
cpu MHz : 800.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 4789.25
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: cpp-4.6 4.6.3-1ubuntu3
ProcVersionSign
Uname: Linux 3.2.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Fri Mar 30 02:26:29 2012
EcryptfsInUse: Yes
ExecutablePath: /usr/lib/
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
SourcePackage: gcc-4.6
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Linaro Toolchain Developers: Pending requested
- Linaro Toolchain Developers: Pending requested
Changed in gcc-4.6 (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
status: | Confirmed → Triaged |
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → In Progress |
Changed in gcc: | |
status: | In Progress → Fix Released |
It doesn't crash with "-O3" replaced by "-O2" (still with "-march=native"); also MPFR passes its test suite ('make check') with these settings / that build.