/usr/lib/gcc/x86_64-linux-gnu/4.5/lto1 crashes with segmentation fault when both -fopenmp and -flto are used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned | ||
gcc-4.5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
Undecided
|
Unassigned | ||
gcc-4.6 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcc-4.5
$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10
$ LC_ALL=C apt-cache policy gcc-4.5
gcc-4.5:
Installed: 4.5.1-7ubuntu2
Candidate: 4.5.1-7ubuntu2
Version table:
*** 4.5.1-7ubuntu2 0
500 http://
100 /var/lib/
Test file will be attached.
$ gcc-4.5 test.c -o test -O1 -fopenmp -flto -std=c99
lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
lto-wrapper: /usr/bin/
collect2: lto-wrapper returned 1 exit status
The bug does not happen with -O0, or when either -flto or -fopenmp is not used
Despite 'ulimit -c unlimited', core file is not generated.
---
Architecture: amd64
DistroRelease: Ubuntu 10.10
NonfreeKernelMo
Package: gcc-4.5 4.5.1-7ubuntu2
PackageArchitec
ProcEnviron:
LANGUAGE=ru_RU:ru
LANG=ru_RU.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: maverick
Uname: Linux 2.6.35-23-server x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers
Related branches
Changed in gcc-4.5 (Ubuntu): | |
status: | New → Invalid |
Changed in gcc-4.6 (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in binutils (Ubuntu): | |
status: | New → In Progress |
Minimal test case on which the bug can be reproduced