RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 966326 - internal compiler error: Segmentation fault
Summary: internal compiler error: Segmentation fault
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gcc
Version: 6.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-23 04:50 UTC by Amir Shenavandeh
Modified: 2013-07-18 22:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-18 22:45:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Preprocessed source (475.68 KB, text/plain)
2013-05-23 04:50 UTC, Amir Shenavandeh
no flags Details

Description Amir Shenavandeh 2013-05-23 04:50:49 UTC
Created attachment 751987 [details]
Preprocessed source

Description of problem:

Trying to compile a C++ code, ended up a segmentation fault.

Version-Release number of selected component (if applicable):
]$ g++ -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)


How reproducible:
Try compiling the attached code with the following options:
#g++ ./CException.cc -c -o CException.o


Sources are as fallows:
##############################################
##CException.h

#include <string>
#include <iostream>
#include <exception>
using namespace std;

class CException: public exception
{
        private:
                string expList[2];

                unsigned int value;
        public:
                CException() throw();
                CException(unsigned int e) throw ();
                ~CException() throw();
                string getMessage();
                unsigned int getValue();
};
##############################################
##CException.cc
#include "CException.h"

CException::CException() throw() {
        expList = {
                        "Generic Exception.",
                        "Index out of range."
                };

        value=0;
}

CException::CException(int e) throw() {
        CException::CException();
        value = e;
}

CException::~CException() throw() {
        ~exception();
}

string CException::getMessage() {
        return expList[value];
}

unsigned int CException::getValue() {
        return value;
}


Steps to Reproduce:
1. Compile the code.
2.
3.

Actual results:
./CException.cc: In constructor ‘CException::CException()’:
./CException.cc:7: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
./CException.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccEFV7Y3.out file, please attach this to your bugreport.

Expected results:
Some errors and warnings. Not a Segmentation Fault

Additional info:

Comment 2 Jakub Jelinek 2013-07-18 22:34:06 UTC
For C++11 code, please use a compiler with better C++11 support, i.e. best gcc 4.7.x from Developer Toolset 1.1 or gcc 4.8.x from Developer Toolset 2.0 (beta right now).

Comment 3 RHEL Program Management 2013-07-18 22:45:18 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.


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