From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Koppelman Newsgroups: gmane.emacs.bugs Subject: bug#51692: 29.0.50; High CPU in c++ mode. Type finder? Date: Mon, 08 Nov 2021 13:00:06 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37623"; mail-complaints-to="usenet@ciao.gmane.io" To: 51692@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 08 20:01:56 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mk9u0-0009XV-CK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 20:01:56 +0100 Original-Received: from localhost ([::1]:46360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mk9ty-0003OR-3r for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 14:01:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk9t8-0002dn-Lo for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 14:01:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mk9t8-00014W-9U for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 14:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mk9t8-0002je-7U for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 14:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Koppelman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Nov 2021 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51692 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163639802210450 (code B ref -1); Mon, 08 Nov 2021 19:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Nov 2021 19:00:22 +0000 Original-Received: from localhost ([127.0.0.1]:59480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk9sT-0002iU-VA for submit@debbugs.gnu.org; Mon, 08 Nov 2021 14:00:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk9sP-0002iJ-Oy for submit@debbugs.gnu.org; Mon, 08 Nov 2021 14:00:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk9sP-0001to-GS for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 14:00:17 -0500 Original-Received: from relay001.lsu.edu ([130.39.6.46]:41536 helo=relay.lsu.edu) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mk9sM-0000nu-7c for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 14:00:17 -0500 Original-Received: from cyc.ece.lsu.edu (cyc.ece.lsu.edu [96.125.115.182]) by relay.lsu.edu (Postfix) with ESMTPS id 7152C2198B14 for ; Mon, 8 Nov 2021 13:00:06 -0600 (CST) Received-SPF: pass client-ip=130.39.6.46; envelope-from=eekopp@lsu.edu; helo=relay.lsu.edu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219376 Archived-At: --=-=-= Content-Type: text/plain Load the attached file into a buffer: ./src/emacs --no-init d.cc Emacs will use 100% CPU on a core while the buffer is visible. CPU usage goes to normal when switching to another buffer. The attached file is a reduced version of a much larger file. (The larger file experiences the high CPU usage only while a certain portion of the code is visible.) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=d.cc Content-Description: Testcase. { if ( indices_segments != opt_segments ) { for ( int i=1; ichain_length = chain_length; } { for(int i=0;i