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 1027003 - g++ seg-faults on syntax error in vector<vector<T>> initializer
Summary: g++ seg-faults on syntax error in vector<vector<T>> initializer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gcc
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 6.6
Assignee: Jason Merrill
QA Contact: Miroslav Franc
URL:
Whiteboard:
Depends On:
Blocks: 1023566 1056252
TreeView+ depends on / blocked
 
Reported: 2013-11-05 21:06 UTC by Rob P
Modified: 2016-02-01 02:28 UTC (History)
7 users (show)

Fixed In Version: gcc-4.4.7-5.el6
Doc Type: Bug Fix
Doc Text:
Previously, G++ would crash on an invalid code in the gnu++11 mode when using an initializer list with invalid value in its constructor. This has been fixed in such a way that the constructor is better checked for an erroneous values.
Clone Of:
Environment:
Last Closed: 2014-10-14 05:01:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Source code. Title is VTTest.C (2.67 KB, text/plain)
2013-11-05 21:06 UTC, Rob P
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 43028 0 None None None Never
Red Hat Product Errata RHBA-2014:1377 0 normal SHIPPED_LIVE gcc bug fix and enhancement update 2014-10-14 01:06:11 UTC

Description Rob P 2013-11-05 21:06:43 UTC
Created attachment 820014 [details]
Source code. Title is VTTest.C

Description of problem:
If a programmer mismatches angle brackets while using initializer lists to create a C++ vector<vector<T> > object, g++ can seg-fault instead of throwing a syntax error. An example is shown in the attached short piece of code.
Apologies if this has been fixed already. I'm new to this site and had trouble accessing the "frequently reported bugs" list; our web browser here at work is several years out of date.

Version-Release number of selected component (if applicable):
gcc version 4.4.7-3

How reproducible:
Everything needed to reproduce this should be in the attached text.

Steps to Reproduce:
Compile the attached text with "g++ -std=gnu++0x -c VTTest.C".

Actual results:
Segmentation fault.

Expected results:
Syntax error.

Additional info:
While I was tracking down this bug, I came across an (apparently unrelated) second issue. I suspect the second issue is probably an error on my part rather than a bug. However, I decided to mention it anyways. It is described briefly as a "sidenote" in the definition of the Tag class in the attached text.

Comment 2 RHEL Program Management 2013-11-08 21:55:52 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Marek Polacek 2014-02-11 22:32:56 UTC
Fixed by http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=159045 -- safe and eligible for backport.

Comment 12 errata-xmlrpc 2014-10-14 05:01:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1377.html


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