Bug 58647 - gcc 3.1-0.18 crash at -O2 (C++)
Summary: gcc 3.1-0.18 crash at -O2 (C++)
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gcc
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Keywords:
: 58649 58653 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-22 09:23 UTC by Tim Waugh
Modified: 2008-05-01 15:38 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2002-01-23 11:06:31 UTC


Attachments (Terms of Use)
OmniIJSProxy.cpp (900.83 KB, text/plain)
2002-01-22 09:25 UTC, Tim Waugh
no flags Details

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.


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