Bug 238399 - "internal compiler error: Segmentation fault" when using -fopenmp
Summary: "internal compiler error: Segmentation fault" when using -fopenmp
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gcc4
Version: 4.0
Hardware: x86_64
OS: Linux
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-04-30 08:35 UTC by Sebastian Steiger
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: RHEA-2007-0805
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-11-15 16:11:16 UTC

Attachments (Terms of Use)
The preprocessed code which gives the error (1.04 MB, application/octet-stream)
2007-04-30 08:35 UTC, Sebastian Steiger
no flags Details

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2007:0805 normal SHIPPED_LIVE gcc4 bug fix and enhancement update 2007-11-14 21:03:01 UTC
GNU Compiler Collection 30558 None None None Never

Description Sebastian Steiger 2007-04-30 08:35:12 UTC
Description of problem:

When compiling a certain parallelized code using -fopenmp, an internal compiler
error occurs. Unfortunately I cannot track the problem down more because as soon
as I take away some include files or further simplify my code, the error disappears.

Version-Release number of selected component (if applicable):
gcc version 4.1.0 20060515 (Red Hat 4.1.0-18) 
(using libgomp)

How reproducible:
Always (on my x86_64 machine)

Steps to Reproduce:
1. Take the supplied preprocessed file test.cpp
2. Try to compile: g++4 -c -Wall -fPIC -g -DDEBUG -DAMD -m64 -fopenmp -o test.o

Actual results:
- Compiling gives an internal compiler error
- When omitting -fopenmp, compiling works

Expected results:
Compiling using OpenMP (libgomp) should also work!

Comment 1 Sebastian Steiger 2007-04-30 08:35:13 UTC
Created attachment 153775 [details]
The preprocessed code which gives the error

Comment 2 Jakub Jelinek 2007-04-30 09:02:40 UTC
Incidentally I have fixed this last week, see
The fix is so far in gcc-4.1.2-11 in Fedora development (i.e. will be in Fedora
7), but will eventually make it to other distros which track
redhat/gcc-4_1-branch (RHEL5.1, RHEL4.6, FC6, FC5).

Comment 9 errata-xmlrpc 2007-11-15 16:11:16 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.