public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63767] New: Excessive memory usage/crash on compilation
@ 2014-11-06 20:05 sasha.levin at oracle dot com
  2014-11-06 20:52 ` [Bug c/63767] " sasha.levin at oracle dot com
  2014-11-07  8:37 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: sasha.levin at oracle dot com @ 2014-11-06 20:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63767

            Bug ID: 63767
           Summary: Excessive memory usage/crash on compilation
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sasha.levin at oracle dot com
                CC: rguenther at suse dot de

On the trunk branch I'm seeing excessive memory usage (reaching 400GB) followed
by a crash:

  CC      net/core/sock.o
gcc: internal compiler error: Killed (program cc1)
0x40bf6c execute
        ../../gcc/gcc.c:2908
0x410477 driver::do_spec_on_infiles() const
        ../../gcc/gcc.c:7529
0x403223 driver::main(int, char**)
        ../../gcc/gcc.c:6796
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

It always happens when compiling the Linux Kernel net/core/sock.c . I've attach
the preprocessed source file.

This issue was bisected to the following commit:

commit d0eb9b3dcd3d5c6ff85aaff9753c187423aeb764  
Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>  
Date:   Thu Nov 6 09:07:39 2014 +0000  

    2014-11-06  Richard Biener  <rguenther@suse.de>  

        * match.pd: Implement bitwise binary and unary simplifications  
        from tree-ssa-forwprop.c.  
        * fold-const.c (fold_unary_loc): Remove them here.  
        (fold_binary_loc): Likewise.  
        * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.  
        (truth_valued_ssa_name): Likewise.  
        (lookup_logical_inverted_value): Likewise.  
        (simplify_bitwise_binary_1): Likewise.  
        (hoist_conversion_for_bitop_p): Likewise.  
        (simplify_bitwise_binary_boolean): Likewise.  
        (simplify_bitwise_binary): Likewise.  
        (pass_forwprop::execute): Remove calls to simplify_not_neg_expr  
        and simplify_bitwise_binary.  
        * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.  
        (decision_tree::insert): Also insert non-expressions.  

        * gcc.dg/tree-ssa/forwprop-28.c: Adjust scanning for the
        desired transform.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217178
138bc75d-0d04-0410-961f-82ee72b054a4

My gcc build was using this configuration:

../configure --prefix=/home/sasha/gcc-inst/ --with-arch=native
--with-tune=native --enable-languages=c --enable-lto --enable-gold
--enable-stage1-languages=c


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

* [Bug c/63767] Excessive memory usage/crash on compilation
  2014-11-06 20:05 [Bug c/63767] New: Excessive memory usage/crash on compilation sasha.levin at oracle dot com
@ 2014-11-06 20:52 ` sasha.levin at oracle dot com
  2014-11-07  8:37 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: sasha.levin at oracle dot com @ 2014-11-06 20:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63767

--- Comment #1 from Sasha Levin <sasha.levin at oracle dot com> ---
Created attachment 33914
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33914&action=edit
Preprocessed source


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

* [Bug c/63767] Excessive memory usage/crash on compilation
  2014-11-06 20:05 [Bug c/63767] New: Excessive memory usage/crash on compilation sasha.levin at oracle dot com
  2014-11-06 20:52 ` [Bug c/63767] " sasha.levin at oracle dot com
@ 2014-11-07  8:37 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-07  8:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63767

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed as duplicate of PR63770 which has a nice small testcase.

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


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

end of thread, other threads:[~2014-11-07  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-06 20:05 [Bug c/63767] New: Excessive memory usage/crash on compilation sasha.levin at oracle dot com
2014-11-06 20:52 ` [Bug c/63767] " sasha.levin at oracle dot com
2014-11-07  8:37 ` rguenth 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).