public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build
@ 2012-11-02  5:38 markus at trippelsdorf dot de
  2012-11-02  7:18 ` [Bug middle-end/55176] " markus at trippelsdorf dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-02  5:38 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55176
           Summary: [4.8 Regression] Out of memory during Chromium build
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


Created attachment 28595
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28595
testcase

If one compiles the attached testcase with "-02" or higher,
cc1plus will quickly run out of memory and eventually be killed
by the OOM killer.

 % g++ -O2 -c exit.ii
g++: internal compiler error: Killed (program cc1plus)


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

* [Bug middle-end/55176] [4.8 Regression] Out of memory during Chromium build
  2012-11-02  5:38 [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build markus at trippelsdorf dot de
@ 2012-11-02  7:18 ` markus at trippelsdorf dot de
  2012-11-02  8:10 ` markus at trippelsdorf dot de
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-02  7:18 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-11-02 07:18:00 UTC ---
Reduced:

class Sandbox
{
    void sandbox_exit ();
    struct A
    {
        int write ();
    };
    void die ();
};
int a;
void
Sandbox::sandbox_exit ()
{
    A b;
    while (b.write () && 1)
        if (a)
            die ();
    for (;;);
}


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

* [Bug middle-end/55176] [4.8 Regression] Out of memory during Chromium build
  2012-11-02  5:38 [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build markus at trippelsdorf dot de
  2012-11-02  7:18 ` [Bug middle-end/55176] " markus at trippelsdorf dot de
@ 2012-11-02  8:10 ` markus at trippelsdorf dot de
  2012-11-02  8:37 ` markus at trippelsdorf dot de
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-02  8:10 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-11-02 08:09:51 UTC ---
This only happens when gcc was lto/profiledbootstraped.
Looks like it gets miscompiled in this case.


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

* [Bug middle-end/55176] [4.8 Regression] Out of memory during Chromium build
  2012-11-02  5:38 [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build markus at trippelsdorf dot de
  2012-11-02  7:18 ` [Bug middle-end/55176] " markus at trippelsdorf dot de
  2012-11-02  8:10 ` markus at trippelsdorf dot de
@ 2012-11-02  8:37 ` markus at trippelsdorf dot de
  2012-11-02  8:53 ` markus at trippelsdorf dot de
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-02  8:37 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-11-02 08:37:08 UTC ---
(In reply to comment #2)
> This only happens when gcc was lto/profiledbootstraped.
> Looks like it gets miscompiled in this case.

Turned out that "--enable-checking=release" is enough to trigger this bug.

 % ~/gcc/configure --disable-bootstrap --disable-werror --disable-multilib
--enable-languages=c,c++ --enable-checking=release
 % make


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

* [Bug middle-end/55176] [4.8 Regression] Out of memory during Chromium build
  2012-11-02  5:38 [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build markus at trippelsdorf dot de
                   ` (2 preceding siblings ...)
  2012-11-02  8:37 ` markus at trippelsdorf dot de
@ 2012-11-02  8:53 ` markus at trippelsdorf dot de
  2012-11-02 15:14 ` markus at trippelsdorf dot de
  2012-11-05 21:05 ` markus at trippelsdorf dot de
  5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-02  8:53 UTC (permalink / raw)
  To: gcc-bugs


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |steven at gcc dot gnu.org

--- Comment #4 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-11-02 08:52:39 UTC ---
Started with r193047:

commit 9ccd9ece034984af0e6a775fdfb51b98a7029a84
Author: steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed Oct 31 21:37:10 2012 +0000

    gcc/
        PR tree-optimization/55018


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

* [Bug middle-end/55176] [4.8 Regression] Out of memory during Chromium build
  2012-11-02  5:38 [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build markus at trippelsdorf dot de
                   ` (3 preceding siblings ...)
  2012-11-02  8:53 ` markus at trippelsdorf dot de
@ 2012-11-02 15:14 ` markus at trippelsdorf dot de
  2012-11-05 21:05 ` markus at trippelsdorf dot de
  5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-02 15:14 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-11-02 15:13:48 UTC ---
Gcc is spinning in compute_antic (tree-ssa-pre.c:2507) calling
bitmap_set_new() until OOM:

#0  _int_malloc (av=0x7ffff794d600 <main_arena>, bytes=2408) at malloc.c:3694
#1  0x00007ffff7661700 in __GI___libc_malloc (bytes=2408) at malloc.c:2859
#2  0x0000000000cbc938 in xmalloc (size=<optimized out>) at
/home/markus/gcc/libiberty/xmalloc.c:147
#3  0x000000000060b561 in pool_alloc (pool=0x11a51e0) at
/home/markus/gcc/gcc/alloc-pool.c:282
#4  0x0000000000936c00 in bitmap_set_new () at
/home/markus/gcc/gcc/tree-ssa-pre.c:606
#5  0x000000000094065c in compute_antic_aux
(block_has_abnormal_pred_edge=<optimized out>, block=0x7ffff73d4d00) at
/home/markus/gcc/gcc/tree-ssa-pre.c:2161
#6  compute_antic () at /home/markus/gcc/gcc/tree-ssa-pre.c:2507
#7  do_pre () at /home/markus/gcc/gcc/tree-ssa-pre.c:4709


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

* [Bug middle-end/55176] [4.8 Regression] Out of memory during Chromium build
  2012-11-02  5:38 [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build markus at trippelsdorf dot de
                   ` (4 preceding siblings ...)
  2012-11-02 15:14 ` markus at trippelsdorf dot de
@ 2012-11-05 21:05 ` markus at trippelsdorf dot de
  5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-05 21:05 UTC (permalink / raw)
  To: gcc-bugs


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

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

--- Comment #6 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-11-05 21:05:07 UTC ---
dup

*** This bug has been marked as a duplicate of bug 55191 ***


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

end of thread, other threads:[~2012-11-05 21:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-02  5:38 [Bug tree-optimization/55176] New: [4.8 Regression] Out of memory during Chromium build markus at trippelsdorf dot de
2012-11-02  7:18 ` [Bug middle-end/55176] " markus at trippelsdorf dot de
2012-11-02  8:10 ` markus at trippelsdorf dot de
2012-11-02  8:37 ` markus at trippelsdorf dot de
2012-11-02  8:53 ` markus at trippelsdorf dot de
2012-11-02 15:14 ` markus at trippelsdorf dot de
2012-11-05 21:05 ` markus at trippelsdorf dot de

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