Bug 786086 - gcc4.1.2 internal error
Summary: gcc4.1.2 internal error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-31 11:58 UTC by zuogang
Modified: 2013-03-22 07:42 UTC (History)
2 users (show)

Fixed In Version: 4.1.2-52.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-22 07:42:50 UTC
Target Upstream Version:


Attachments (Terms of Use)
aboutdialog.cpp is preprocessed (17.68 KB, application/octet-stream)
2012-01-31 11:58 UTC, zuogang
no flags Details

Description zuogang 2012-01-31 11:58:36 UTC
Created attachment 558610 [details]
aboutdialog.cpp is preprocessed

Description of problem:
gcc4.1.2 internal error

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

centos5.7 version:
Linux mylinux 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 17:25:58 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

gcc version:
gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

How reproducible:

compile the preprocessed c file.
make[4]: Entering directory `/home/muname/workfolder/filezilla/filezilla-3.5.3/src/interface'
g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -fpch-preprocess  -g -O2 -Wall -g -fexceptions -MT filezilla-aboutdialog.o -MD -MP -MF .deps/filezilla-aboutdialog.Tpo -c -o filezilla-aboutdialog.o `test -f 'aboutdialog.cpp' || echo './'`aboutdialog.cpp
/usr/include/wx-2.8/wx/geometry.h: In member function ‘virtual wxPoint2DInt wxTransform2D::Transform(const wxPoint2DInt&) const’:
/usr/include/wx-2.8/wx/geometry.h:797: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccQRX6ap.out file, please attach this to your bugreport.

Comment 1 Jakub Jelinek 2013-03-21 17:15:29 UTC
If this exists only with PCH, I'd bet this ought to be fixed in gcc-4.1.2-52.el5 and above (i.e. dup of #735304).
If it is unrelated to PCH, we'll need preprocessed file without PCH.

Comment 2 Jeff Law 2013-03-21 19:55:23 UTC
Setting component to "gcc" as this was reported against the 4.1 toolchain.

Comment 3 zuogang 2013-03-22 02:05:05 UTC
(In reply to comment #1)
> If this exists only with PCH, I'd bet this ought to be fixed in
> gcc-4.1.2-52.el5 and above (i.e. dup of #735304).
> If it is unrelated to PCH, we'll need preprocessed file without PCH.

yes, you are write I test just before , everything is ok.

gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)

 g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -fpch-preprocess  -g -O2 -Wall -g -fexceptions -MT filezilla-aboutdialog.o -MD -MP -MF .deps/filezilla-aboutdialog.Tpo -c -o filezilla-aboutdialog.o `test -f 'aboutdialog.cpp' || echo './'`aboutdialog.cpp
/usr/include/wx-2.8/wx/hashmap.h: In member function 鈥榳xLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const鈥

                                                                                                                                                                                                   /usr/include/wx-2.8/wx/hashmap.h:735: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/clntdata.h: In member function 鈥榳xShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const鈥

                                                                                                                                                                                                        /usr/include/wx-2.8/wx/clntdata.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/clntdata.h: In member function 鈥榳xShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const鈥

                                                                                                                                                                                                      /usr/include/wx-2.8/wx/clntdata.h:25: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/gdicmn.h: In member function 鈥榳xStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const鈥

                                                                                                                                                                                                          /usr/include/wx-2.8/wx/gdicmn.h:544: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/image.h: In member function 鈥榳xImageHistogramBase_wxImplementation_HashTable::Node** wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long unsigned int&) const鈥

                                                                                                                                                                                                            /usr/include/wx-2.8/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/include/wx-2.8/wx/filesys.h: In member function 鈥榳xFSHandlerHash_wxImplementation_HashTable::Node** wxFSHandlerHash_wxImplementation_HashTable::GetNodePtr(const void* const&) const鈥

                                                                                                                                                                                              /usr/include/wx-2.8/wx/filesys.h:176: warning: dereferencing type-punned pointer will break strict-aliasing rules

Comment 4 Jakub Jelinek 2013-03-22 07:42:50 UTC
Fixed then.


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