public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55287] New: GCC crashes and asks to file bug report
@ 2012-11-12 15:18 gordoncichon at gmail dot com
  2012-11-12 15:22 ` [Bug c++/55287] " paolo.carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gordoncichon at gmail dot com @ 2012-11-12 15:18 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55287
           Summary: GCC crashes and asks to file bug report
    Classification: Unclassified
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gordoncichon@gmail.com


This is a compiler bug that occurs on Debian squeeze..

uname -a 
Linux caraway 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8) 
g++ -save-temps   -c -o gcc-bug.o gcc-bug.cc
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.


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

* [Bug c++/55287] GCC crashes and asks to file bug report
  2012-11-12 15:18 [Bug c++/55287] New: GCC crashes and asks to file bug report gordoncichon at gmail dot com
@ 2012-11-12 15:22 ` paolo.carlini at oracle dot com
  2012-11-12 17:02 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-12 15:22 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-12 15:22:25 UTC ---
gcc4.4.x is not maintained anymore. Please try again with a GCC from a
currently maintained branch and in case file a proper report:

  http://gcc.gnu.org/bugs/#report


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

* [Bug c++/55287] GCC crashes and asks to file bug report
  2012-11-12 15:18 [Bug c++/55287] New: GCC crashes and asks to file bug report gordoncichon at gmail dot com
  2012-11-12 15:22 ` [Bug c++/55287] " paolo.carlini at oracle dot com
@ 2012-11-12 17:02 ` pinskia at gcc dot gnu.org
  2012-11-12 17:50 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-12 17:02 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-12 17:01:57 UTC ---
Also this "ICE" is really the kernel killing the program as it ran out of
memory or it was over one of the ulimits.  Most likely ran of memory.


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

* [Bug c++/55287] GCC crashes and asks to file bug report
  2012-11-12 15:18 [Bug c++/55287] New: GCC crashes and asks to file bug report gordoncichon at gmail dot com
  2012-11-12 15:22 ` [Bug c++/55287] " paolo.carlini at oracle dot com
  2012-11-12 17:02 ` pinskia at gcc dot gnu.org
@ 2012-11-12 17:50 ` paolo.carlini at oracle dot com
  2012-11-13  8:33 ` gordoncichon at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-12 17:50 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-12 17:50:20 UTC ---
Indeed.


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

* [Bug c++/55287] GCC crashes and asks to file bug report
  2012-11-12 15:18 [Bug c++/55287] New: GCC crashes and asks to file bug report gordoncichon at gmail dot com
                   ` (2 preceding siblings ...)
  2012-11-12 17:50 ` paolo.carlini at oracle dot com
@ 2012-11-13  8:33 ` gordoncichon at gmail dot com
  2012-11-13  9:44 ` redi at gcc dot gnu.org
  2012-11-13 12:01 ` manu at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: gordoncichon at gmail dot com @ 2012-11-13  8:33 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Gordon Cichon <gordoncichon at gmail dot com> 2012-11-13 08:33:01 UTC ---
Why is GCC comsuming so much memory?

The program has 6.4MB source code, it is a single function. All optimizations
are turned off. And there is 2GB memory in the system.

Well, shouldn't it be possible to compile this program?


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

* [Bug c++/55287] GCC crashes and asks to file bug report
  2012-11-12 15:18 [Bug c++/55287] New: GCC crashes and asks to file bug report gordoncichon at gmail dot com
                   ` (3 preceding siblings ...)
  2012-11-13  8:33 ` gordoncichon at gmail dot com
@ 2012-11-13  9:44 ` redi at gcc dot gnu.org
  2012-11-13 12:01 ` manu at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2012-11-13  9:44 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-13 09:44:26 UTC ---
6.4MB in a single function is the problem.

The compiler has to process that entire function at once.

And 2GB is not a great amount.


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

* [Bug c++/55287] GCC crashes and asks to file bug report
  2012-11-12 15:18 [Bug c++/55287] New: GCC crashes and asks to file bug report gordoncichon at gmail dot com
                   ` (4 preceding siblings ...)
  2012-11-13  9:44 ` redi at gcc dot gnu.org
@ 2012-11-13 12:01 ` manu at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu.org @ 2012-11-13 12:01 UTC (permalink / raw)
  To: gcc-bugs


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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-11-13 11:59:48 UTC ---
(In reply to comment #4)
> Why is GCC comsuming so much memory?
> 
> The program has 6.4MB source code, it is a single function. All optimizations
> are turned off. And there is 2GB memory in the system.
> 
> Well, shouldn't it be possible to compile this program?

That depends on the program, where the memory goes, possible bugs, etc.

To start investigating this, GCC devs would need the info requested here:

http://gcc.gnu.org/bugs/#report

That said, even if you provided that info, it is unlikely that anyone will look
into this bug, since it is a unusual case. If adding 2 or 4 more GBs of memory
(or splitting the function into many small pieces) solves the issue, then it is
simpler to just do that, and focus on fixing other bugs.

Of course, nothing prevents you from investigating the issue yourself. Perhaps
you are able to uncover a clear bug, memory leak or potential improvement. See:

http://gcc.gnu.org/wiki/Speedup_areas

http://gcc.gnu.org/wiki/Memory_management

http://gcc.gnu.org/wiki/PerformanceTesting


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

end of thread, other threads:[~2012-11-13 12:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-12 15:18 [Bug c++/55287] New: GCC crashes and asks to file bug report gordoncichon at gmail dot com
2012-11-12 15:22 ` [Bug c++/55287] " paolo.carlini at oracle dot com
2012-11-12 17:02 ` pinskia at gcc dot gnu.org
2012-11-12 17:50 ` paolo.carlini at oracle dot com
2012-11-13  8:33 ` gordoncichon at gmail dot com
2012-11-13  9:44 ` redi at gcc dot gnu.org
2012-11-13 12:01 ` manu at gcc dot gnu.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).