From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5285 invoked by alias); 6 Nov 2014 20:05:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5233 invoked by uid 48); 6 Nov 2014 20:05:49 -0000 From: "sasha.levin at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/63767] New: Excessive memory usage/crash on compilation Date: Thu, 06 Nov 2014 20:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sasha.levin at oracle dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00378.txt.bz2 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 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 Date: Thu Nov 6 09:07:39 2014 +0000 2014-11-06 Richard Biener * 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