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#25119: Acknowledgement (Hard freeze when switching to indirect buffer) Date: Mon, 05 Dec 2016 20:44:36 +0200 Message-ID: <83k2bejjvv.fsf@gnu.org> References: <6c6fe23b-a8b9-9a31-c648-77497198d750@gmail.com> <37b7ce44-f357-24e1-3c56-e18169758b6e@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1480963519 4563 195.159.176.226 (5 Dec 2016 18:45:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2016 18:45:19 +0000 (UTC) Cc: 25119@debbugs.gnu.org To: Ryan Johnson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 05 19:45:12 2016 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 1cDyGE-0008Bu-MY for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2016 19:45:10 +0100 Original-Received: from localhost ([::1]:43891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDyGH-0000Qc-5h for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2016 13:45:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDyGA-0000O5-Ag for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 13:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDyG6-0002i8-Jl for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 13:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cDyG6-0002hY-Ga for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 13:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cDyG6-0006O0-8v for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 13:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2016 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25119 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25119-submit@debbugs.gnu.org id=B25119.148096347124496 (code B ref 25119); Mon, 05 Dec 2016 18:45:02 +0000 Original-Received: (at 25119) by debbugs.gnu.org; 5 Dec 2016 18:44:31 +0000 Original-Received: from localhost ([127.0.0.1]:57257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDyFb-0006N2-Ef for submit@debbugs.gnu.org; Mon, 05 Dec 2016 13:44:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDyFa-0006Mp-B7 for 25119@debbugs.gnu.org; Mon, 05 Dec 2016 13:44:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDyFS-0002S1-12 for 25119@debbugs.gnu.org; Mon, 05 Dec 2016 13:44:25 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDyFR-0002Rx-TZ; Mon, 05 Dec 2016 13:44:21 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3419 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cDyFQ-0002g5-Sr; Mon, 05 Dec 2016 13:44:21 -0500 In-reply-to: <37b7ce44-f357-24e1-3c56-e18169758b6e@gmail.com> (message from Ryan Johnson on Mon, 5 Dec 2016 10:37:02 -0700) 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:126522 Archived-At: > From: Ryan Johnson > Date: Mon, 5 Dec 2016 10:37:02 -0700 > > (gdb) xbacktrace > "read-key-sequence-vector" (0x57f89050) > 0x4872440 PVEC_COMPILED > "funcall" (0x57f89190) > "read-key" (0x57f89498) > "read-char-choice" (0x57f89600) > "ask-user-about-supersession-threat" (0x57f897b8) > "put-text-property" (0x57f8bae8) > "jit-lock-fontify-now" (0x57f8bc78) > "jit-lock-function" (0x57f8be38) > "redisplay_internal (C function)" (0xb856a8) This looks like Emacs asking you whether to steal the lock from another Emacs session that is editing the same file. > The hang usually occurs when I switch to an indirect buffer I've not > used in a while (overnight, in this case), and on a shared machine where > people often run memory-intensive workloads. The backtrace above > suggests that the file has been modified outside emacs in the meantime, > which is probably true, since I frequently use patch queues. > > I start to suspect that there's some sort of race here, where switching > to the buffer is slow (perhaps due to page faults) and a different > thread tries to process subsequent keystrokes, which triggers the "$FILE > changed on disk; really edit the buffer?" message while the mini-buffer > is still tied up with the "switching to..." message. What other thread did you have in mind? Emacs does all this in a single thread. > I will admit I never tried typing "y" or "n" in response to the > hang... I'll be sure to try that next time. Yes, a good idea. Also, perhaps you could try a newer version of Emacs (25.1), maybe this problem is already fixed there. Thanks.