Bug 207277

Summary: g++: internal compiler error: Segmentation fault
Product: Red Hat Enterprise Linux 4 Reporter: Thimo Neubauer <thimo.neubauer>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 4.4CC: aoliva
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2007-0220 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 17:08:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The reduced testcase
none
Patch that fixes the bug none

Description Thimo Neubauer 2006-09-20 12:00:12 UTC
Description of problem: internal compiler error (segmentation fault)


Version-Release number of selected component (if applicable):

[thimo@waltari ~]$ g++ --version
g++ (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[thimo@waltari ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux WS release 4 (Nahant Update 4)
[thimo@waltari ~]$ uname -a
Linux waltari.cst.de 2.6.9-42.0.2.ELsmp #1 SMP Thu Aug 17 17:57:31 EDT 2006
x86_64 x86_64 x86_64 GNU/Linux

How reproducible:

[thimo@waltari ~]$ g++ -c -O2 -fnon-call-exceptions testcase.cc
testcase.cc: In member function `virtual void
Node2D::SmoothPointClassification(const bool&)':
testcase.cc:92: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccKa44NX.out file, please attach this to
your bugreport.


Additional Info:

I've reduced the problem according to
http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction. If one of the options
(-O2 -fnon-call-exceptions) is removed g++ does not fail anymore.

Comment 1 Thimo Neubauer 2006-09-20 12:00:12 UTC
Created attachment 136731 [details]
The reduced testcase

Comment 2 Alexandre Oliva 2006-10-26 05:27:14 UTC
Created attachment 139435 [details]
Patch that fixes the bug

Trivial backport of the patch that fixed the bug upstream.

Comment 8 Red Hat Bugzilla 2007-05-01 17:08:24 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/RHSA-2007-0220.html