From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#45518: Ctrl-G Fails to Interrupt Hung Tramp Remote-Compile in Emacs 27.1 Date: Tue, 12 Jan 2021 16:02:32 +0100 Message-ID: <875z425hbr.fsf@gmx.de> References: 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="40282"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45518@debbugs.gnu.org To: Duncan Greatwood Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 12 16:04:03 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 1kzLDH-000AOx-Kt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 16:04:03 +0100 Original-Received: from localhost ([::1]:50336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzLDG-0007mt-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 10:04:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzLCJ-0006tf-CB for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 10:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzLCI-00070P-Mm for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 10:03:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzLCI-0003wy-I2 for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 10:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2021 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45518 X-GNU-PR-Package: emacs Original-Received: via spool by 45518-submit@debbugs.gnu.org id=B45518.161046376415160 (code B ref 45518); Tue, 12 Jan 2021 15:03:02 +0000 Original-Received: (at 45518) by debbugs.gnu.org; 12 Jan 2021 15:02:44 +0000 Original-Received: from localhost ([127.0.0.1]:32810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzLBz-0003wS-Lv for submit@debbugs.gnu.org; Tue, 12 Jan 2021 10:02:43 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:44941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzLBw-0003wE-Ks for 45518@debbugs.gnu.org; Tue, 12 Jan 2021 10:02:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610463753; bh=wVEyHIGlxVbYGaTQ336n2PWKouucq+vtpmMbP5G29Ns=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ID/lDw+AbGoFXlzblJ05oXcqe/SsvTbrtUQRywutryvZ3mI02bVEqP+sGejnSrpNh f/nNR4PYKBdqnaKIyf4GIw6vCebrtSECF1IisSLsA1/I0rgT5tcIKY4isZXFhYDdjH MED9IgmisWKgnz7oAiUFSlD6l7tcw9vRoYTNwDzQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.59.182]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MzQg6-1k43k913Nw-00vQHy; Tue, 12 Jan 2021 16:02:33 +0100 In-Reply-To: (Duncan Greatwood's message of "Mon, 11 Jan 2021 20:34:42 -0800") X-Provags-ID: V03:K1:uPttEYjLrggMhms+49thJ2Qo4otDprdAD1UWuqFmi9wjC0oCsBT nb8qjtviMDQYVbTvH48NnY9hRxJgPK+XLd//tQ2wcFeetNQHBuA6zTWGpArIDfmeszH5jO3 BvTcDcjHyj8FbTreiCAG3WhSbNBT5fngJWUnymN1Hw5ZMN0kycn1O4P2M/AgLlY2s45F/rR HxNsCDJsQ8WjUwA+GWsEw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ox7sV4or0x4=:EGnoMJCiGjzndi11rhIMtQ 3Se7ITa2zMeJeROirGCEp6AKiD4uc0MU0yxbAqzc6PMXC7Wvp4YoX+1DZz/Y+pIzqnQ0a18qJ WoMsnesu9onfvfm7WGAqHV30n76j4WLFhQDNsfExeHvFOpRrs9v7PNnXKC87Ga+h+od4/OdHD gmpcwf9PLYmVGLCtK2OAXsulTAHr497CmGa7/aakLP6Xn5VcazD02u734fBpI9tFuJFfcxJlp MBtVkXp/jewH6HbidwsSrMggY2E7TdNjjvvxLCx0NF4PqJH1RCBegCfog0FBc0nHHAMCuTC0y yUEbTQ+XxqVGq24JNXtYBugZIXJCfGCDlb+d5vlak0Vii1e5mwXkpfBPPpW8R0uJet4XsS9yL IV7gI0MUCQFPh/Rm29DFNfxKhk7iI9jN0bpfQKP5gpClecMx5C9AvfnKdC+wMA3y68GnWhw2M l+1wMyv/kP/TeKgH0hzUEOk4pc7Eo1xr3S+lGyTwxxXNVW+OIgWZZIfcvgL3fY/t1Ah8My0Dd /G5oZVbgBe5al6tsmnLeQp5LXI0mTSdPVNVhdmMJD3+qxJ9OidNEByHpjcvhz1ivvxehMUeaI 2bWpN6qFB4WDcxnaCCPXIu+X0IpIkEp9J0h0NrLOqwvWK5VU6fGfgy0QIftf395QvySskyBJN aCedQ7HsbGN7ihGcFHypCAmug0sipTRynJfxUyvM3ZJpJ2W6T0PxRVl8hbc0eJwCUek8gIYTk 9tuiip1NppONMpXfn8wHTHr6myBG+ntEQfDtPHB/tAnUi9F/PIOSKpGoDxsAaVIxr4Yyd62A 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:197792 Archived-At: --=-=-= Content-Type: text/plain Duncan Greatwood writes: Hi Duncan, > Meanwhile, good luck with debugging these bug#45518 issues. Finally, I nailed it down. In the (remote) compilation process, there is a process filter, which calls `file-truename' if it detects an error. This works one or two times, but then the (remote) compilation process comes in conflict with the (remote) Tramp process responsible for `file-truename'. The following patch has fixed the issue for me on my FreeBSD machine. It is on top of Emacs' git master; but likely it works also for your Emacs 27 (not tested by me). Could you check, whether this helps you? > Thanks again! Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable *** /tmp/ediffZ4hAwi 2021-01-12 16:00:49.593081437 +0100 =2D-- /home/albinus/src/emacs/lisp/progmodes/compile.el 2021-01-12 15:52:0= 2.111270252 +0100 *************** *** 3041,3047 **** ;; Get the specified directory from FILE. (spec-directory (if (cdr file) ! (file-truename (concat comint-file-name-prefix (cdr file)))))) ;; Check for a comint-file-name-prefix and prepend it if appropriate. ;; (This is very useful for compilation-minor-mode in an rlogin-mode =2D-- 3041,3052 ---- ;; Get the specified directory from FILE. (spec-directory (if (cdr file) ! ;; This function is active in `compilation-filter'. ! ;; There could be problems to call `file-truename' ! ;; for remote compilation processes. ! (if (file-remote-p default-directory) ! (concat comint-file-name-prefix (cdr file)) ! (file-truename (concat comint-file-name-prefix (cdr file))))))) ;; Check for a comint-file-name-prefix and prepend it if appropriate. ;; (This is very useful for compilation-minor-mode in an rlogin-mode --=-=-=--