From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.bugs Subject: bug#32523: 27.0.50; Emacs hangs when killing rectangle Date: Sat, 25 Aug 2018 08:40:48 -0300 Message-ID: <86zhxaoerj.fsf@phe.ftfl.ca> References: <868t4vp8fv.fsf@phe.ftfl.ca> <83zhxa7tng.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1535197149 8685 195.159.176.226 (25 Aug 2018 11:39:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2018 11:39:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (berkeley-unix) Cc: 32523@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 25 13:39:05 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 1ftWuG-00027t-Tv for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Aug 2018 13:39:05 +0200 Original-Received: from localhost ([::1]:45409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftWwM-0005CZ-TS for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Aug 2018 07:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftWwD-0005CI-U8 for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 07:41:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftWwA-0005es-OQ for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 07:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55227) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ftWwA-0005ek-KX for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 07:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ftWwA-0007fj-A0 for bug-gnu-emacs@gnu.org; Sat, 25 Aug 2018 07:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Mingrone Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Aug 2018 11:41: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.153519726129475 (code B ref 32523); Sat, 25 Aug 2018 11:41:02 +0000 Original-Received: (at 32523) by debbugs.gnu.org; 25 Aug 2018 11:41:01 +0000 Original-Received: from localhost ([127.0.0.1]:60245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftWw8-0007fL-QQ for submit@debbugs.gnu.org; Sat, 25 Aug 2018 07:41:01 -0400 Original-Received: from mail-pf1-f170.google.com ([209.85.210.170]:39202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftWw6-0007f3-1K for 32523@debbugs.gnu.org; Sat, 25 Aug 2018 07:40:58 -0400 Original-Received: by mail-pf1-f170.google.com with SMTP id j8-v6so5682928pff.6 for <32523@debbugs.gnu.org>; Sat, 25 Aug 2018 04:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Qw1VxizjS5TA+1f1JSevI/TPHRc3qnmIm5iUQ9x7P9I=; b=ZneJndHCR/c7plW3aq/8+JW3qMSshgQzAD2SmgWKEttinkTIVxFd1Y9/gnCXLMahSA ih5lSO1HiFcpZb1gVhlLsc3FRC1bz2KeBVClwv6TyR13whnsqXaJSztc47oqfIAQ+0dA Om23GtgiO/nIjQ/JN9TzfM7DboqWcV7EAEhuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Qw1VxizjS5TA+1f1JSevI/TPHRc3qnmIm5iUQ9x7P9I=; b=gvR2ZjtPkX+bIGoMD41UjTHxUysBAZOdZaHYHRFZ8R4DzUsdgrcqALxHjFI+NJwZZN vNQ2c0/cP3zksbLaBbsSvGclI+UmfmOgD9Vbb3ypWI8qrNdJANI4Ef/Oddk3PUFE+h5J EV4rbt2z6AEJPswZdmiTZjVFtRG/6JoJ2rtQDmOfeNGOONGi2yW3x6a5lmhQJZ2j0Ezt 0gGgrCElRewcEwVliQ9CElkce6rqbr04gGuUvbDOAcGmgW6/pP9hcPzqRJM2cgqsnDXV dWSHNagRbw0CKfHXv188ZaQZmNvC8KNY9N9JWX90WTP2NVfjH7CTHrPkSqRpqGzYnxVC Sw+A== X-Gm-Message-State: APzg51Ba4oVFBWC0OZgkcx4eargwsTg+CKsQh/jYs+f+S//nzELgrJ/M rdZOO3C+cKMb4o+dM2/nBUJikHoLfw0= X-Google-Smtp-Source: ANB0VdacI6mvXUELUcZ972ifFE/17f+pmbdmzJ+mOFzzCI0vtwb2MzSQ6M4vApf3UCYmhImg8Yv7VQ== X-Received: by 2002:a62:6d02:: with SMTP id i2-v6mr6071970pfc.218.1535197251923; Sat, 25 Aug 2018 04:40:51 -0700 (PDT) Original-Received: from phe.ftfl.ca.ftfl.ca (hlfxns017vw-142-68-132-248.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.132.248]) by smtp.gmail.com with ESMTPSA id g11-v6sm11937696pgi.90.2018.08.25.04.40.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Aug 2018 04:40:51 -0700 (PDT) In-Reply-To: <83zhxa7tng.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Aug 2018 11:11:15 +0300") 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:149743 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> 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. Thanks for the `find-file-literally' tip. The rectangle does eventually get cut for me as well. Ignoring speed, the problem is that Emacs is unusable afterwards. For example, if I go away for an hour or so, then return, the Emacs process will still be using something close to 100% CPU and trying to doing something simple, like moving the point forward, may take minutes. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEVbCTpybDiFVxIrrVNqQMg7DW754FAluBQEBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUACgkQNqQMg7DW 757z3g//V40wsRddnW2NVuxAsVs2Oqs1Xr6FHlBVczR1AZXBuBuXu8NJQJfMUHH8 6ozAgMhR/SlPJhsXKcz1DzcaqutDin3lvmW88FajP/eXIamYSWVbcLgvMNx4YsCi DbdRxlvgoPfw98SCW5FqBfWaga2ewmllHbfUtgenT9PwRjqO7nlznAvSsxkp+X9Y KhU+hJsaI8whAB1h4O+XLKvS/OT7zZO0ScLF0kB848qoK1cdlWPyKm0ciRTPDDvE 9aBXr1IaLFOtoLqKj73OCf0LaGjjljQbAWWFbC8hQYmo9SK16tjkmnlE20frqbwc 8vmy63bHTg8D+j/b92OjEw7Drpcv1gf75FimIN/Hl7zaQvkfLEBrCZ78kYF+wGdf iYIzIcHfTUrgN5NzPSRaTWkS5v+3Q4pm//cttp98BjQCdDAVcFYPD7IJUnlUQWni XW0emUgrrFbrQdSHnwkxaPT34mB09FpZ6IzWgHIHPtRyyewiik3oHQS0zk785hPx rRmTe0NIH2fnO6H+TsGii6s6NLD3BCkOy67dXP0APeWGUD8rUbfFcZPMMXf3Ikni gTS3lLypAz6jnzXtStxwRbsIoMVYiyGmTPLjQERFtESWEepxxSbM8ZYuKUmox3cH bK0BUtTr0Zg1jB2luI+Xx+8OL5t0s9u1uD02pwFRpjHLzOkqsMU= =bLdr -----END PGP SIGNATURE----- --=-=-=--