Bug 238399 - "internal compiler error: Segmentation fault" when using -fopenmp
Summary: "internal compiler error: Segmentation fault" when using -fopenmp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gcc4
Version: 4.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2007-11-15 16:11:16 UTC
Target Upstream Version:
Embargoed:


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


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

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
test.cpp 

  
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
http://gcc.gnu.org/PR30558
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01601.html
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.

http://rhn.redhat.com/errata/RHEA-2007-0805.html



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