public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51739] New: g++ cpp compiler crash with -O3
@ 2012-01-03  8:39 tim6502 at gmail dot com
  2012-01-03  8:40 ` [Bug c++/51739] " tim6502 at gmail dot com
  2012-01-03  9:02 ` jakub at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: tim6502 at gmail dot com @ 2012-01-03  8:39 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51739
           Summary: g++ cpp compiler crash with -O3
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tim6502@gmail.com


Created attachment 26228
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26228
preprocessed source file to reproduce crash

g++ crashes when compiling the attached source file. This file was generated
with -E. The compiler also crashes when usign -save-temps on the original
source file. I've not encountered any other files that cause this problem. The
problem is consistantly reproducible (on my system).

I'm not responsible for nor do I condone this rat's nest code, but it does work
with older g++ versions (ex, 4.1, 4.4) and without -O3. Also, the options -Wall
-Wextra etc did not turn up any obvious problems.

The system is a newly installed Xubuntu 11.10 running in a fairly vanilla
VirtualBox setup (single processor, 64 bit on a 64 bit host machine).
Additional information is below. Apologies, I have not tried with the latest
version of g++.


tgraham@kepler:~/tmp$ g++ --version
g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

tgraham@kepler:~/tmp$ uname -a
Linux kepler 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux

tgraham@kepler:~/tmp$ apt-cache show g++
Package: g++
Priority: optional
Section: devel
Installed-Size: 40
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Architecture: amd64
Source: gcc-defaults (1.107ubuntu5)
Version: 4:4.6.1-2ubuntu5
Provides: c++-compiler
Depends: cpp (>= 4:4.6.1-2ubuntu5), gcc (>= 4:4.6.1-2ubuntu5), g++-4.6 (>=
4.6.1-1), gcc-4.6 (>= 4.6.1-1)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_4.6.1-2ubuntu5_amd64.deb
Size: 1444
MD5sum: cc859060d224541b4233c017a38f0d26
SHA1: dd510ca73ddb2d23c30daa402b0a580ceef82f1e
SHA256: d5b29e533c91cf2bbdc91671f1c9530a8b3b4d8e5eaf9b9b1716f22e59bbceb6
Description-en: GNU C++ compiler
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
 .
 This is a dependency package providing the default GNU C++ compiler.
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Build-Essential: yes
Origin: Ubuntu
Supported: 18m


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

* [Bug c++/51739] g++ cpp compiler crash with -O3
  2012-01-03  8:39 [Bug c++/51739] New: g++ cpp compiler crash with -O3 tim6502 at gmail dot com
@ 2012-01-03  8:40 ` tim6502 at gmail dot com
  2012-01-03  9:02 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: tim6502 at gmail dot com @ 2012-01-03  8:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Tim <tim6502 at gmail dot com> 2012-01-03 08:39:34 UTC ---
# command to reproduce

tgraham@kepler:~/tmp$ g++ -O3 -c reduced_test_case.i.cxx -o reduced_test_case.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

tgraham@kepler:~/tmp$ echo $?
4


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

* [Bug c++/51739] g++ cpp compiler crash with -O3
  2012-01-03  8:39 [Bug c++/51739] New: g++ cpp compiler crash with -O3 tim6502 at gmail dot com
  2012-01-03  8:40 ` [Bug c++/51739] " tim6502 at gmail dot com
@ 2012-01-03  9:02 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-03  9:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-03 09:02:13 UTC ---
Killed means you don't have enough memory and kernel OOM killer decided to kill
GCC.  This compiles just fine for me, but it needs roughly 1.2GB of memory to
compile it.


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

end of thread, other threads:[~2012-01-03  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-03  8:39 [Bug c++/51739] New: g++ cpp compiler crash with -O3 tim6502 at gmail dot com
2012-01-03  8:40 ` [Bug c++/51739] " tim6502 at gmail dot com
2012-01-03  9:02 ` jakub 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).