From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dag via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47896: 27.2; TRAMP hang/lockup/fault on compile/file access Date: Thu, 22 Apr 2021 11:10:12 -0500 Message-ID: <26a91bae-c4ec-4467-a415-251e408a76fc@victor> References: <87mttsrfe7.fsf@gmx.de> <87im4fra43.fsf@gmx.de> <72c97333-e729-4cbe-b104-94a5f982e411@victor> <875z0erd08.fsf@gmx.de> Reply-To: dag Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="60819fe4_2f11b72e_5f3d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36960"; mail-complaints-to="usenet@ciao.gmane.io" Cc: for@debbugs.gnu.org, Bug@debbugs.gnu.org, dag@debbugs.gnu.org, via@debbugs.gnu.org, Bug@debbugs.gnu.org, reports@debbugs.gnu.org, for@debbugs.gnu.org, GNU@debbugs.gnu.org, Emacs@debbugs.gnu.org, 47896@debbugs.gnu.org, GNU@debbugs.gnu.org, dag@debbugs.gnu.org, via@debbugs.gnu.org, reports@debbugs.gnu.org, Emacs@debbugs.gnu.org To: "Michael Albinus" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 22 18:14:59 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 1lZbyi-0009OR-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 18:14:56 +0200 Original-Received: from localhost ([::1]:43834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZbyh-0005Sw-Rl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 12:14:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZbuw-0002jJ-Qm for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZbuw-0002bT-G2 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZbuw-00058Y-92 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dag Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Apr 2021 16:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47896 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: for@debbugs.gnu.org, Bug@debbugs.gnu.org, dag via Bug reports for GNU Emacs, the Swiss army knife of text editors , GNU@debbugs.gnu.org, dag@debbugs.gnu.org, via@debbugs.gnu.org, reports@debbugs.gnu.org, 47896@debbugs.gnu.org, Emacs@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161910782519695 (code B ref -1); Thu, 22 Apr 2021 16:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Apr 2021 16:10:25 +0000 Original-Received: from localhost ([127.0.0.1]:35363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZbuK-00057a-Iy for submit@debbugs.gnu.org; Thu, 22 Apr 2021 12:10:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZbuG-00057D-4w for submit@debbugs.gnu.org; Thu, 22 Apr 2021 12:10:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZbuE-0001mM-UK for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:10:19 -0400 Original-Received: from [216.160.0.40] (port=33093 helo=smtp.obbligato.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZbuA-0002Eq-G1 for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:10:16 -0400 Original-Received: from victor (localhost [127.0.0.1]) by smtp.obbligato.org (Postfix) with ESMTPA id 4D8DE44E5AD; Thu, 22 Apr 2021 11:10:12 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=obbligato.org; s=199568; t=1619107812; bh=272VXCIyp6fHVS2/BXXg1FkfRxuHWRMxnQcut/KS1ic=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=N0qy3T9joiUnPHVCYh2j85C2CzcFmISXAkYgselU+xDaZyExKBjq5jIuixS9ODUJs 036iqCB7dkF16sZzCUcGqs4ZnxThXeJi+camh/dEiOI52HOAGsWRkuyJAOJOSDahlI UIUcVCAKrBN+WJ7tiCfCw1D3Lk2Yao6kvlHgvahk= In-Reply-To: <875z0erd08.fsf@gmx.de> X-Synology-MCP-Status: no X-Synology-Spam-Flag: no X-Synology-Spam-Status: score=0.4, required 5, TO_DN_SOME 0, __THREADED 0, CC_EXCESS_QP 0, HTML_MESSAGE 0.001, RCPT_COUNT_SEVEN 0, FREEMAIL_TO 0, RCVD_COUNT_ZERO 0, FROM_EQ_ENVFROM 0, MIME_TRACE 0, __NOT_SPOOFED 0, NO_RECEIVED -0.001, FROM_HAS_DN 0, FREEMAIL_ENVRCPT 0, TO_MATCH_ENVRCPT_ALL 0, MIME_GOOD -0.1, HTML_MISSING_CTYPE 0, MID_RHS_NOT_FQDN 0.5, __NOT_A_PERSON 0 X-Synology-Virus-Status: no X-Host-Lookup-Failed: Reverse DNS lookup failed for 216.160.0.40 (failed) Received-SPF: pass client-ip=216.160.0.40; envelope-from=dag@obbligato.org; helo=smtp.obbligato.org X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:204701 Archived-At: --60819fe4_2f11b72e_5f3d Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 2021-04-22 02:32, Michael Albinus wrote: > = > Hmm. ssh can't always pass environment variables because the remote > >= admin may have disabled it, so INSIDE=5FEMACS isn't always reliable. Is = > > testing for TERM =3D=3D =22dumb=22 sufficient=3F > Yes. But I don't k= now, whether emacs-libvterm does the same setting. It seems to. I set the= prompt to something really simple: =22=24 =22 (debug log snippet below).= However, that didn't seem to help with the lockups. What *did* seem to h= elp quite a bit was doing this in my init: ; Have compile mode scroll unt= il the first error. ;;(setq compilation-scroll-output 'first-error) ;;(se= tq compilation-auto-jump-to-first-error 1) I've been meaning to disable t= hose anyway, but it's a shame these don't seem to work well with TRAMP. N= ow lockups that need =22kill -SIGUSR2=22 are pretty rare (though they do = happen occasionally). I do still need the to every now and then, w= hich is annoying but not nearly as annoying as before. I do still get han= gs on =22decoding remote file...=22 and if I , visit the resulting = buffer (which may or may not be empty) and it will = reload without issue. Again, annoying but not a showstopper. I haven't ye= t tried emacs 28 to see if the above fixes the signal-9-terminated compil= es. David 11:01:33.141006 tramp-process-actions (3) =23 Waiting for promp= ts from remote shell...done 11:01:33.141091 tramp-maybe-open-connection (= 3) =23 =46ound remote shell prompt on =E2=80=98dgreene-dev=E2=80=99 11:01= :33.141157 tramp-open-shell (5) =23 Opening remote shell =E2=80=98/bin/sh= =E2=80=99... 11:01:33.141223 tramp-send-command (6) =23 exec env TERM=3D'= dumb' INSIDE=5FEMACS=3D'27.2,tramp:2.4.5.27.2' ENV=3D'' HIST=46ILE=3D=7E/= .tramp=5Fhistory PROMPT=5FCOMMAND=3D'' PS1=3D=5C=23=5C=24=5C PS2=3D'' PS3= =3D'' /bin/sh 11:01:33.202768 tramp-wait-for-regexp (6) =23 =23=24 11:01:= 33.202879 tramp-send-command (6) =23 (cd =7E/) 2>/dev/null; echo tramp=5F= exit=5Fstatus =24=3F 11:01:33.258755 tramp-wait-for-regexp (6) =23 tramp=5F= exit=5Fstatus 0 =23=24 11:01:33.258876 tramp-open-shell (5) =23 Opening r= emote shell =E2=80=98/bin/sh=E2=80=99...done 11:01:33.258970 tramp-open-c= onnection-setup-interactive-shell (5) =23 Setting up remote shell environ= ment 11:01:33.259039 tramp-send-command (6) =23 set +o vi +o emacs 11:01:= 33.313578 tramp-wait-for-regexp (6) =23 =23=24 11:01:33.313763 tramp-send= -command (6) =23 stty -inlcr -onlcr -echo kill '=5EU' erase '=5EH' 11:01:= 33.368599 tramp-wait-for-regexp (6) =23 =23=24 11:01:33.368721 tramp-send= -command (6) =23 echo foo 11:01:33.423097 tramp-wait-for-regexp (6) =23 f= oo =23=24 11:01:33.423252 tramp-open-connection-setup-interactive-shell (= 5) =23 Setting shell prompt 11:01:33.423416 tramp-send-command (6) =23 PS= 1=3D///e9364282a97cbba0d7fbd76f9c2169f1=5C=23=5C=24 PS2=3D'' PS3=3D'' PRO= MPT=5FCOMMAND=3D'' 11:01:33.475982 tramp-wait-for-regexp (6) =23 ///e9364= 282a97cbba0d7fbd76f9c2169f1=23=24 11:01:33.476293 tramp-open-connection-s= etup-interactive-shell (5) =23 Checking system information 11:01:33.47654= 1 tramp-send-command (6) =23 echo =5C=22=60uname -sr=60=5C=22 2>/dev/null= ; echo tramp=5Fexit=5Fstatus =24=3F 11:01:33.530843 tramp-wait-for-regexp= (6) =23 =22Linux 3.10.0-1127.19.1.el7.x86=5F64=22 tramp=5Fexit=5Fstatus = 0 ///e9364282a97cbba0d7fbd76f9c2169f1=23=24 --60819fe4_2f11b72e_5f3d Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
 
 
 
 
On 2021-04-22 02:32, Michael Albinus <michael.albinus=40gmx.de>= ; wrote:

> > Hmm. ssh can't always pass environment variables because the re= mote
> > admin may have disabled it, so INSIDE=5FEMACS isn't always reli= able. Is
> > testing for TERM =3D=3D =22dumb=22 sufficient=3F

> Yes. But I don't know, whether emacs-libvterm does the same setting.=

It seems to.  I set the prompt to something really simple: =22=24= =22 (debug log snippet below).
However, that didn't seem to help with the lockups.  What *did*= seem to help quite
a bit was doing this in my init:
 
; Have compile mode scroll until the first error.
;;(setq compilation-scroll-output 'first-error)
;;(setq compilation-auto-jump-to-first-error 1)
 
I've been meaning to disable those anyway, but it's a shame these do= n't seem to work well
with TRAMP.  Now lockups that need =22kill -SIGUSR2=22 are pret= ty rare (though they do
happen occasionally).  I do still need the to <quit> ever= y now and then, which is annoying
but not nearly as annoying as before.
 
I do still get hangs on =22decoding remote file...=22 and if I <q= uit>, visit the resulting buffer
(which may or may not be empty) and <find-alternate-file> it w= ill reload without issue.
Again, annoying but not a showstopper.
 
I haven't yet tried emacs 28 to see if the above fixes the signal-9-= terminated compiles.
 
David
 
11:01:33.141006 tramp-process-actions (3) =23 Waiting for prompts fr= om remote shell...done
11:01:33.141091 tramp-maybe-open-connection (3) =23 =46ound remote s= hell prompt on =E2=80=98dgreene-dev=E2=80=99
11:01:33.141157 tramp-open-shell (5) =23 Opening remote shell =E2=80= =98/bin/sh=E2=80=99...
11:01:33.141223 tramp-send-command (6) =23 exec env TERM=3D'dumb' IN= SIDE=5FEMACS=3D'27.2,tramp:2.4.5.27.2' ENV=3D'' HIST=46ILE=3D=7E/.tramp=5F= history PROMPT=5FCOMMAND=3D'' PS1=3D=5C=23=5C=24=5C PS2=3D'' PS3=3D'' /bi= n/sh 
11:01:33.202768 tramp-wait-for-regexp (6) =23 
=23=24 
11:01:33.202879 tramp-send-command (6) =23 (cd =7E/) 2>/dev/null;= echo tramp=5Fexit=5Fstatus =24=3F
11:01:33.258755 tramp-wait-for-regexp (6) =23 
tramp=5Fexit=5Fstatus 0
=23=24 
11:01:33.258876 tramp-open-shell (5) =23 Opening remote shell =E2=80= =98/bin/sh=E2=80=99...done
11:01:33.258970 tramp-open-connection-setup-interactive-shell (5) =23= Setting up remote shell environment
11:01:33.259039 tramp-send-command (6) =23 set +o vi +o emacs
11:01:33.313578 tramp-wait-for-regexp (6) =23 
=23=24 
11:01:33.313763 tramp-send-command (6) =23 stty -inlcr -onlcr -echo = kill '=5EU' erase '=5EH'
11:01:33.368599 tramp-wait-for-regexp (6) =23 
=23=24 
11:01:33.368721 tramp-send-command (6) =23 echo foo
11:01:33.423097 tramp-wait-for-regexp (6) =23 
foo
=23=24 
11:01:33.423252 tramp-open-connection-setup-interactive-shell (5) =23= Setting shell prompt
11:01:33.423416 tramp-send-command (6) =23 PS1=3D///e9364282a97cbba0= d7fbd76f9c2169f1=5C=23=5C=24 PS2=3D'' PS3=3D'' PROMPT=5FCOMMAND=3D''
11:01:33.475982 tramp-wait-for-regexp (6) =23 
///e9364282a97cbba0d7fbd76f9c2169f1=23=24
11:01:33.476293 tramp-open-connection-setup-interactive-shell (5) =23= Checking system information
11:01:33.476541 tramp-send-command (6) =23 echo =5C=22=60uname -sr=60= =5C=22 2>/dev/null; echo tramp=5Fexit=5Fstatus =24=3F
11:01:33.530843 tramp-wait-for-regexp (6) =23 
=22Linux 3.10.0-1127.19.1.el7.x86=5F64=22
tramp=5Fexit=5Fstatus 0
///e9364282a97cbba0d7fbd76f9c2169f1=23=24
 
--60819fe4_2f11b72e_5f3d--