From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ryan Johnson Newsgroups: gmane.emacs.bugs Subject: bug#25119: Acknowledgement (Hard freeze when switching to indirect buffer) Date: Mon, 5 Dec 2016 13:14:59 -0700 Message-ID: References: <6c6fe23b-a8b9-9a31-c648-77497198d750@gmail.com> <37b7ce44-f357-24e1-3c56-e18169758b6e@gmail.com> <83k2bejjvv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1480968981 15350 195.159.176.226 (5 Dec 2016 20:16:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2016 20:16:21 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 Cc: 25119@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 05 21:16:14 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 1cDzgM-0002UQ-5E for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2016 21:16:14 +0100 Original-Received: from localhost ([::1]:44204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDzgN-0005Qm-05 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2016 15:16:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDzgE-0005QW-Jz for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 15:16:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDzgA-0000Im-Ey for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 15:16:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cDzgA-0000IF-Br for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 15:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cDzgA-0001oJ-4N for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2016 15:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ryan Johnson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2016 20:16: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.14809689096892 (code B ref 25119); Mon, 05 Dec 2016 20:16:02 +0000 Original-Received: (at 25119) by debbugs.gnu.org; 5 Dec 2016 20:15:09 +0000 Original-Received: from localhost ([127.0.0.1]:57297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDzfJ-0001n6-C1 for submit@debbugs.gnu.org; Mon, 05 Dec 2016 15:15:09 -0500 Original-Received: from mail-io0-f180.google.com ([209.85.223.180]:33482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDzfH-0001mt-Ug for 25119@debbugs.gnu.org; Mon, 05 Dec 2016 15:15:08 -0500 Original-Received: by mail-io0-f180.google.com with SMTP id j65so615805824iof.0 for <25119@debbugs.gnu.org>; Mon, 05 Dec 2016 12:15:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=lfJnRMB/YNQEARTMt1xuG7s2vOMS0pZ7EwYttLev6K0=; b=KogMTIdU+Dgyq42QzDHbLRBQdDtQP5xf4Hw8p4xnbXOHF8fPFiOQ3pcd/cEmAfHRwi nA+KIyWebS1i1SUpG9TCuk0qHL5VyYsYUna2aqNO7GSpYW3IouGu4OwQ2qSZIKY6t8vl IlDzOFaZdme9eHTUEuWvdADmakmAYEneGxapAcjGD4srVN5VG0uNA8JliPAuwPVPEpUU oM1HDYfyyg32tklLUob5TpNQBksxnczSIm2okniZv0UhYGnRyaUJ3ynscADvhOXYDHjz 9DtrIbnJ9j/G/wV5am6rY6uagtPmfHsrEdGATvMO79I7JBUvMHaQzSt8vnmN1wq8BJ2w bhmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=lfJnRMB/YNQEARTMt1xuG7s2vOMS0pZ7EwYttLev6K0=; b=nEur/V2S2cLkTJktyzyFrmORfLl3AchZVL/1qDDuiXLwTikab8lXY5bE7juUv6BYvM Gc8YsERKPvq6YyVIavSSuTxid0NmmIQazWNrNLmBhRnKW7sfjdefpoBn34dwAiRffQbk 9jcPOYIDrD8CmghYuCDphLyejIJLB0Ffb+8TIT95pvKOPvEMy+f0Bt1jk/s44vxUjQE2 Bv3yASjS50VzOaxzOrGsoMGqNCo+u2RvSSYCIXxJcDV4CfxnCMmVyxgRg8vx2oCZeCSk Mexrz7v/d8G1JIr2nXVKr5wWssfTvEFfQm2lYS8OutLNG9/3pC2dxXXFr89rrz7GWH95 EQSQ== X-Gm-Message-State: AKaTC019LR1b3gVZlYsFfKYnJbKemZ55nwXQQ2Xk7pUyUQmGWHRp6tuZtqq5+GV1g705GA== X-Received: by 10.107.186.135 with SMTP id k129mr4312000iof.65.1480968902174; Mon, 05 Dec 2016 12:15:02 -0800 (PST) Original-Received: from [192.168.1.2] (97-117-21-171.slkc.qwest.net. [97.117.21.171]) by smtp.gmail.com with ESMTPSA id n102sm7713478ioi.38.2016.12.05.12.15.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Dec 2016 12:15:00 -0800 (PST) In-Reply-To: <83k2bejjvv.fsf@gnu.org> 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:126529 Archived-At: On 12/5/2016 11:44 AM, Eli Zaretskii wrote: >> (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 message from the lisp backtrace was: > AlphaTree.cpp changed on disk; really edit the buffer? (y, n, r or C-h) I'm pretty sure the lock-stealing message is rather different from that, mentioning the PID of the other emacs... but I don't remember off the top of my head because I very rarely point two emacsen at the same file. >> 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. Just a wild speculation, based on the fact that it was apparently stuck waiting for input while still trying to redraw the screen. Even in a single thread, signals might allow a self-deadlock of some kind. Or it could be something else entirely. > Also, perhaps you could try a newer version of Emacs (25.1), maybe > this problem is already fixed there. Will build it and switch over; I don't think it's available for Ubuntu 16 LTS. Ryan