public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
@ 2012-03-02 18:53 bli at cs dot wisc.edu
  2012-03-02 19:01 ` [Bug c++/52464] " bli at cs dot wisc.edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bli at cs dot wisc.edu @ 2012-03-02 18:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

             Bug #: 52464
           Summary: When I compile my source codes with -O3 option, the
                    compiler fails. This does not occur if I use -O2
    Classification: Unclassified
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bli@cs.wisc.edu


I attached my software package in the attachment. You just need to type 
"make rsem-parse-alignments" to trigger the bug. Thanks!



$ g++ -v -save-temps -Wall -O3 -ffast-math -c -I. parseIt.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with:
/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure
--srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C
--datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v
--with-gmp=/usr --with-mpfr=/usr --enable-bootstrap
--enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static
--enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld
--with-gnu-as --with-dwarf2 --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite
--enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava
--program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada
--enable-threads=posix --with-arch=i686 --with-tune=generic
--enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4
CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind
--with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.5.3 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-O3' '-ffast-math' '-c' '-I.'
'-shared-libgcc' '-mtune=generic' '-march=i686'
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1plus.exe -E -quiet -v -I. -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../include/w32api
parseIt.cpp -mtune=generic -march=i686 -Wall -ffast-math -O3 -fpch-preprocess
-o parseIt.ii
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/include"
ignoring duplicate directory
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/backward
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/include
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/include-fixed
 /usr/include
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-O3' '-ffast-math' '-c' '-I.'
'-shared-libgcc' '-mtune=generic' '-march=i686'
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1plus.exe -fpreprocessed parseIt.ii -quiet
-dumpbase parseIt.cpp -mtune=generic -march=i686 -auxbase parseIt -O3 -Wall
-version -ffast-math -o parseIt.s
GNU C++ (GCC) version 4.5.3 (i686-pc-cygwin)
        compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version
3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.5.3 (i686-pc-cygwin)
        compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version
3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 2eb50487139b9f2ceb9af473175cad84
In file included from parseIt.cpp:9:0:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/fstream: In constructor
‘std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*,
std::ios_base::openmode) [with _CharT = char, _Traits = std::char_traits<char>,
std::ios_base::openmode = std::_Ios_Openmode]’:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/fstream:701:4: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
@ 2012-03-02 19:01 ` bli at cs dot wisc.edu
  2012-03-03  0:33 ` paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bli at cs dot wisc.edu @ 2012-03-02 19:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

--- Comment #1 from bli at cs dot wisc.edu 2012-03-02 19:01:32 UTC ---
Please find the source code from the URL listed, or :

http://deweylab.biostat.wisc.edu/rsem/rsem-1.1.17.bug.tar.gz


Do the following to trigger the bug:

tar -xzf rsem-1.1.17.bug.tar.gz
make rsem-parse-alignments


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
  2012-03-02 19:01 ` [Bug c++/52464] " bli at cs dot wisc.edu
@ 2012-03-03  0:33 ` paolo.carlini at oracle dot com
  2012-03-03  0:34 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-03-03  0:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-03-03
     Ever Confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-03 00:32:41 UTC ---
Please follow the bug reporting instructions http://gcc.gnu.org/bugs/#report in
particular please attach a self-contained preprocessed file, thanks.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
  2012-03-02 19:01 ` [Bug c++/52464] " bli at cs dot wisc.edu
  2012-03-03  0:33 ` paolo.carlini at oracle dot com
@ 2012-03-03  0:34 ` paolo.carlini at oracle dot com
  2012-03-10 20:57 ` bli at cs dot wisc.edu
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-03-03  0:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
                   ` (2 preceding siblings ...)
  2012-03-03  0:34 ` paolo.carlini at oracle dot com
@ 2012-03-10 20:57 ` bli at cs dot wisc.edu
  2012-03-10 21:02 ` bli at cs dot wisc.edu
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bli at cs dot wisc.edu @ 2012-03-10 20:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

--- Comment #3 from bli at cs dot wisc.edu 2012-03-10 20:57:35 UTC ---
Created attachment 26874
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26874
The minimal codes to trigger the bug

Type make to trigger the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
                   ` (3 preceding siblings ...)
  2012-03-10 20:57 ` bli at cs dot wisc.edu
@ 2012-03-10 21:02 ` bli at cs dot wisc.edu
  2012-03-10 21:12 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bli at cs dot wisc.edu @ 2012-03-10 21:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

--- Comment #4 from bli at cs dot wisc.edu 2012-03-10 21:01:34 UTC ---
Comment on attachment 26874
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26874
The minimal codes to trigger the bug

Please help me, thanks!


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
                   ` (4 preceding siblings ...)
  2012-03-10 21:02 ` bli at cs dot wisc.edu
@ 2012-03-10 21:12 ` redi at gcc dot gnu.org
  2012-03-10 21:43 ` bli at cs dot wisc.edu
  2013-08-11 21:56 ` paolo.carlini at oracle dot com
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2012-03-10 21:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-10 21:11:30 UTC ---
(In reply to comment #2)
> Please follow the bug reporting instructions http://gcc.gnu.org/bugs/#report in
> particular please attach a self-contained preprocessed file, thanks.

Please read this again.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
                   ` (5 preceding siblings ...)
  2012-03-10 21:12 ` redi at gcc dot gnu.org
@ 2012-03-10 21:43 ` bli at cs dot wisc.edu
  2013-08-11 21:56 ` paolo.carlini at oracle dot com
  7 siblings, 0 replies; 9+ messages in thread
From: bli at cs dot wisc.edu @ 2012-03-10 21:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

--- Comment #6 from bli at cs dot wisc.edu 2012-03-10 21:43:05 UTC ---
Created attachment 26875
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26875
The attachment is the preprocessed file (*.i*)

Sorry for not reading the rules carefully. The .ii file is attached. 

GCC version 4.5.3

System: cygwin, this bug also occurs in Linux

Options and command line:
g++ -save-temps -Wall -O3 -ffast-math -c -I. parseIt.cpp

Compiler Output:

In file included from parseIt.cpp:9:0:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/fstream: In constructor
‘std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*,
std::ios_base::openmode) [with _CharT = char, _Traits = std::char_traits<char>,
std::ios_base::openmode = std::_Ios_Openmode]’:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/fstream:701:4: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/52464] When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2
  2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
                   ` (6 preceding siblings ...)
  2012-03-10 21:43 ` bli at cs dot wisc.edu
@ 2013-08-11 21:56 ` paolo.carlini at oracle dot com
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-11 21:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52464

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-11 21:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-02 18:53 [Bug c++/52464] New: When I compile my source codes with -O3 option, the compiler fails. This does not occur if I use -O2 bli at cs dot wisc.edu
2012-03-02 19:01 ` [Bug c++/52464] " bli at cs dot wisc.edu
2012-03-03  0:33 ` paolo.carlini at oracle dot com
2012-03-03  0:34 ` paolo.carlini at oracle dot com
2012-03-10 20:57 ` bli at cs dot wisc.edu
2012-03-10 21:02 ` bli at cs dot wisc.edu
2012-03-10 21:12 ` redi at gcc dot gnu.org
2012-03-10 21:43 ` bli at cs dot wisc.edu
2013-08-11 21:56 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).