Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 58647

Summary: gcc 3.1-0.18 crash at -O2 (C++)
Product: [Retired] Red Hat Raw Hide Reporter: Tim Waugh <twaugh>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-23 11:06:31 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
OmniIJSProxy.cpp none

Description Tim Waugh 2002-01-22 09:23:24 UTC
Description of Problem:
g++ crashes while compiling a file from Omni, if -O2 is used.  -O1 is fine.

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

How Reproducible:
100%

Steps to Reproduce:
1. g++ -c -O2 OmniIJSProxy.cpp

Actual Results:
/usr/include/g++-v3/bits/locale_facets.tcc: In function `void
   std::__pad(std::ios_base&, _CharT, _CharT*, const _CharT*, int, int, bool)
   [with _CharT = char, _Traits = std::char_traits<char>]':
/usr/include/g++-v3/bits/locale_facets.tcc:2113:   instantiated from `void 
std::__pad(std::ios_base&, _CharT, _CharT*, const _CharT*, int, int, bool) 
[with _CharT = char]'
/usr/include/g++-v3/bits/ostream.tcc:633:   instantiated from 
`std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, 
_Traits>&, const char*) [with _Traits = std::char_traits<char>]'
OmniIJSProxy.cpp:165:   instantiated from here
/usr/include/g++-v3/bits/locale_facets.tcc:2101: internal error: Segmentation
   fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

Additional Information:

Comment 1 Tim Waugh 2002-01-22 09:25:12 UTC
Created attachment 43154 [details]
OmniIJSProxy.cpp

Comment 2 Tim Waugh 2002-01-22 15:13:59 UTC
Seems to be fine with -march=i386 -mcpu=i686.


Comment 3 Jakub Jelinek 2002-01-22 16:58:38 UTC
See http://gcc.gnu.org/ml/gcc-patches/2002-01/msg01499.html

Comment 4 Jakub Jelinek 2002-01-22 16:59:24 UTC
*** Bug 58649 has been marked as a duplicate of this bug. ***

Comment 5 Jakub Jelinek 2002-01-22 17:01:39 UTC
*** Bug 58653 has been marked as a duplicate of this bug. ***

Comment 6 Jakub Jelinek 2002-01-23 11:05:37 UTC
*** Bug 58649 has been marked as a duplicate of this bug. ***

Comment 7 Tim Waugh 2002-01-23 11:06:26 UTC
*** Bug 58649 has been marked as a duplicate of this bug. ***

Comment 8 Jakub Jelinek 2002-02-01 16:22:49 UTC
Fixed in gcc-3.1-0.19.