public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37008]  New: Crash bug on a big c++ file
@ 2008-08-02  7:27 livubuntu at lalescu dot ro
  2008-08-02  7:31 ` [Bug c++/37008] " livubuntu at lalescu dot ro
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: livubuntu at lalescu dot ro @ 2008-08-02  7:27 UTC (permalink / raw)
  To: gcc-bugs

My open source application FET compiles OK with g++ 4.1.3. But with 4.2.3 it
crashes on a bigger file named rules.cpp. My FET program is available at
http://lalescu.ro/liviu/fet/

I have 1 GB of RAM, AMD dual core 4000+


The g++ version:

goghi@liviu-desktop:~/t/fet-5.6.1$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)


The command and output error:

goghi@liviu-desktop:~/t/fet-5.6.1$ make
cd src/ && make -f Makefile
make[1]: Entering directory `/home/goghi/t/fet/src'
cd interface/ && make -f Makefile
make[2]: Entering directory `/home/goghi/t/fet/src/interface'
g++ -save-temps -c -pipe -fpermissive -O2 -D_REENTRANT -Wall -W -DQT_SHARED
-DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support
-I/usr/include/qt4/Qt3Support -I/usr/include/qt4 -I../engine -I../../tmp
-I../../tmp -o ../../tmp/rules.o ../engine/rules.cpp
g++: warning: -pipe ignored because -save-temps specified
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.

make[2]: *** [../../tmp/rules.o] Error 1
make[2]: Leaving directory `/home/goghi/t/fet/src/interface'
make[1]: *** [sub-interface-make_default] Error 2
make[1]: Leaving directory `/home/goghi/t/fet/src'
make: *** [sub-src-make_default] Error 2
goghi@liviu-desktop:~/t/fet-5.6.1$


I'll attach also the .ii file.


-- 
           Summary: Crash bug on a big c++ file
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: livubuntu at lalescu dot ro


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


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

* [Bug c++/37008] Crash bug on a big c++ file
  2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
@ 2008-08-02  7:31 ` livubuntu at lalescu dot ro
  2008-08-02 11:48 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: livubuntu at lalescu dot ro @ 2008-08-02  7:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from livubuntu at lalescu dot ro  2008-08-02 07:30 -------
Created an attachment (id=15996)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15996&action=view)
The .ii file (archived with zip)

The .ii file obtained by -save-temps command to g++ (archived with zip)


-- 


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


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

* [Bug c++/37008] Crash bug on a big c++ file
  2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
  2008-08-02  7:31 ` [Bug c++/37008] " livubuntu at lalescu dot ro
@ 2008-08-02 11:48 ` rguenth at gcc dot gnu dot org
  2008-08-02 11:49 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-02 11:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-08-02 11:47 -------
g++: Internal error: Killed (program cc1plus)

this means your system ran out of memory and the operating system decided
to kill the compiler.  Note that memory usage problems are unlikely to be
fixed in a further release of GCC 4.2, but you might want to try GCC 4.3.1
or later which uses less memory than GCC 4.1 for your testcase.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |compile-time-hog, memory-hog
      Known to fail|                            |4.2.4
      Known to work|                            |4.1.2 4.3.1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-02 11:47:05
               date|                            |


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


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

* [Bug c++/37008] Crash bug on a big c++ file
  2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
  2008-08-02  7:31 ` [Bug c++/37008] " livubuntu at lalescu dot ro
  2008-08-02 11:48 ` rguenth at gcc dot gnu dot org
@ 2008-08-02 11:49 ` rguenth at gcc dot gnu dot org
  2008-08-02 11:50 ` [Bug c++/37008] [4.2 Regression] OOM " rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-02 11:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-08-02 11:48 -------
Created an attachment (id=15997)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15997&action=view)
unincluded testcase

Testcase that works with either -m32/-m64 and all libstdc++ versions.


-- 


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


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

* [Bug c++/37008] [4.2 Regression] OOM on a big c++ file
  2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
                   ` (2 preceding siblings ...)
  2008-08-02 11:49 ` rguenth at gcc dot gnu dot org
@ 2008-08-02 11:50 ` rguenth at gcc dot gnu dot org
  2008-08-02 12:22 ` livubuntu at lalescu dot ro
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-02 11:50 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Crash bug on a big c++ file |[4.2 Regression] OOM on a
                   |                            |big c++ file
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/37008] [4.2 Regression] OOM on a big c++ file
  2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
                   ` (3 preceding siblings ...)
  2008-08-02 11:50 ` [Bug c++/37008] [4.2 Regression] OOM " rguenth at gcc dot gnu dot org
@ 2008-08-02 12:22 ` livubuntu at lalescu dot ro
  2008-08-03  7:24 ` livubuntu at lalescu dot ro
  2009-03-31 15:47 ` jsm28 at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: livubuntu at lalescu dot ro @ 2008-08-02 12:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from livubuntu at lalescu dot ro  2008-08-02 12:21 -------
(In reply to comment #2)
> g++: Internal error: Killed (program cc1plus)
> 
> this means your system ran out of memory and the operating system decided
> to kill the compiler.  Note that memory usage problems are unlikely to be
> fixed in a further release of GCC 4.2, but you might want to try GCC 4.3.1
> or later which uses less memory than GCC 4.1 for your testcase.
> 

I tried the GCC 4.3.1, of course, but I got very very many weird warnings for
the Qt included files. I tried the binary GCC 4.3.1 from Debian.

A collaborator reports that he compiled successfully FET for the same Qt as
mine, with GCC 4.3.1, but for 32 bit version. He obtained only a few warnings.

Thank you for fast reply. I'll do some more tests with GCC 4.3.1 and maybe
report bugs to Trolltech for Qt or report bugs here for GCC 4.3.1.


-- 


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


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

* [Bug c++/37008] [4.2 Regression] OOM on a big c++ file
  2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
                   ` (4 preceding siblings ...)
  2008-08-02 12:22 ` livubuntu at lalescu dot ro
@ 2008-08-03  7:24 ` livubuntu at lalescu dot ro
  2009-03-31 15:47 ` jsm28 at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: livubuntu at lalescu dot ro @ 2008-08-03  7:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from livubuntu at lalescu dot ro  2008-08-03 07:23 -------
(In reply to comment #4)
> (In reply to comment #2)
> > g++: Internal error: Killed (program cc1plus)
> > 
> > this means your system ran out of memory and the operating system decided
> > to kill the compiler.  Note that memory usage problems are unlikely to be
> > fixed in a further release of GCC 4.2, but you might want to try GCC 4.3.1
> > or later which uses less memory than GCC 4.1 for your testcase.
> > 
> 
> I tried the GCC 4.3.1, of course, but I got very very many weird warnings for
> the Qt included files. I tried the binary GCC 4.3.1 from Debian.
> 
> A collaborator reports that he compiled successfully FET for the same Qt as
> mine, with GCC 4.3.1, but for 32 bit version. He obtained only a few warnings.
> 
> Thank you for fast reply. I'll do some more tests with GCC 4.3.1 and maybe
> report bugs to Trolltech for Qt or report bugs here for GCC 4.3.1.
> 

I installed latest qt and gcc 4.3.1. Everything is fine, FET compiles OK, thank
you. It is very good that I get a few warnings which did not show up in gcc
4.1.3, and I saw a few mistakes of mine.


-- 


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


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

* [Bug c++/37008] [4.2 Regression] OOM on a big c++ file
  2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
                   ` (5 preceding siblings ...)
  2008-08-03  7:24 ` livubuntu at lalescu dot ro
@ 2009-03-31 15:47 ` jsm28 at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 15:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2009-03-31 15:47 -------
Closing 4.2 branch, fixed for 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.2.4                       |4.2.4 4.2.5
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


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


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

end of thread, other threads:[~2009-03-31 15:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-02  7:27 [Bug c++/37008] New: Crash bug on a big c++ file livubuntu at lalescu dot ro
2008-08-02  7:31 ` [Bug c++/37008] " livubuntu at lalescu dot ro
2008-08-02 11:48 ` rguenth at gcc dot gnu dot org
2008-08-02 11:49 ` rguenth at gcc dot gnu dot org
2008-08-02 11:50 ` [Bug c++/37008] [4.2 Regression] OOM " rguenth at gcc dot gnu dot org
2008-08-02 12:22 ` livubuntu at lalescu dot ro
2008-08-03  7:24 ` livubuntu at lalescu dot ro
2009-03-31 15:47 ` jsm28 at gcc dot gnu dot org

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).