Bug 218377 - g++ compile runs forever on test file with optimization and debug info
Summary: g++ compile runs forever on test file with optimization and debug info
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gcc
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-04 22:03 UTC by Robert Hancock
Modified: 2007-11-17 01:14 UTC (History)
1 user (show)

Fixed In Version: RHSA-2007-0220
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-01 17:09:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Test case to reproduce compiler hang (238.31 KB, application/x-gzip)
2006-12-04 22:03 UTC, Robert Hancock
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2007:0220 0 normal SHIPPED_LIVE Moderate: gcc security and bug fix update 2007-05-01 17:07:43 UTC

Description Robert Hancock 2006-12-04 22:03:24 UTC
Description of problem:

On compiling several files from the TAO open-source CORBA software (such as
TAO/tao/ObjectKey_Table.cpp), the compiler runs forever when compiling with both
optimization and debug info enabled. With either optimization or debug info
disabled the compile completes normally.

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

gcc-3.4.6-3

How reproducible:

Every time

Steps to Reproduce:

1. Compile attached preprocessed test case with:

g++ -O3 -g -c -o ObjectKey_Table.o ObjectKey_Table.cpp

2. Also try with just -O3 and just -g
  
Actual results:

Compiler runs forever and never finishes

Expected results:

Compile eventually completes

Additional info:

Comment 1 Robert Hancock 2006-12-04 22:03:24 UTC
Created attachment 142780 [details]
Test case to reproduce compiler hang

Comment 2 Jakub Jelinek 2006-12-05 15:31:03 UTC
This is endless loop in vt_find_locations, very likely duplicate of #216695.
As a workaround, compile with -O3 -g -fno-var-tracking.

Comment 3 Alexandre Oliva 2006-12-08 04:20:23 UTC
Patch that fixes the bug attached to bug 216695.

Comment 9 Red Hat Bugzilla 2007-05-01 17:09:43 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



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