From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32523: 27.0.50; Emacs hangs when killing rectangle Date: Sat, 25 Aug 2018 11:11:15 +0300 Message-ID: <83zhxa7tng.fsf@gnu.org> References: <868t4vp8fv.fsf@phe.ftfl.ca> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1535184606 9575 195.159.176.226 (25 Aug 2018 08:10:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2018 08:10:06 +0000 (UTC) Cc: 32523@debbugs.gnu.org To: Joseph Mingrone Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 25 10:10:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftTdx-0002ND-Cx for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Aug 2018 10:10:01 +0200 Original-Received: from localhost ([::1]:44965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftTg3-0000A3-Hq for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Aug 2018 04:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftTfx-00009q-V9 for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 04:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftTfu-0005gj-Nh for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 04:12:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ftTfu-0005gb-Jm for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 04:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ftTfu-0000ZO-CA for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 04:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Aug 2018 08:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32523 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32523-submit@debbugs.gnu.org id=B32523.15351846982156 (code B ref 32523); Sat, 25 Aug 2018 08:12:02 +0000 Original-Received: (at 32523) by debbugs.gnu.org; 25 Aug 2018 08:11:38 +0000 Original-Received: from localhost ([127.0.0.1]:60202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftTfV-0000Yg-Ud for submit@debbugs.gnu.org; Sat, 25 Aug 2018 04:11:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftTfU-0000YU-3h for 32523@debbugs.gnu.org; Sat, 25 Aug 2018 04:11:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftTfL-0004Qt-Ng for 32523@debbugs.gnu.org; Sat, 25 Aug 2018 04:11:30 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftTfL-0004Px-JK; Sat, 25 Aug 2018 04:11:27 -0400 Original-Received: from [176.228.60.248] (port=1399 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ftTfL-0002HH-5t; Sat, 25 Aug 2018 04:11:27 -0400 In-reply-to: <868t4vp8fv.fsf@phe.ftfl.ca> (message from Joseph Mingrone on Fri, 24 Aug 2018 21:59:48 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149741 Archived-At: > From: Joseph Mingrone > Date: Fri, 24 Aug 2018 21:59:48 -0300 > > Here is a recipe to make Emacs (nearly) hang indefinitely. > > 1. emacs -Q > > 2. Visit the file found https://ftfl.ca/misc/big_file_hangs_emacs.txt > > 3. M-x toggle-truncate-lines > > 4. Use rectangle-mark-mode (C-x SPC) to mark the rectangle that starts > at the top left of the file (point 1), and includes the leading white > space, the line numbers, and the space after the line numbers (point > 468848). > > 5. Kill the rectangle with C-x r k. > > For me, the Emacs process will continue to use 100% CPU and Emacs is > almost completely unresponsive and has to be killed. Some actions such > as saving the file may complete, but only after a few minutes. It doesn't hang, it just takes very long to finish that operation (3 min on my machine with an unoptimized build; should be something like 1 to 1.5 min in an optimized build). This belongs to the "Emacs is very slow with long lines" class of problems: the file has 2900-character lines. If this file will never include any text, I suggest to visit it with "M-x find-file-literally", then the problem of slowness will go away.