From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28192: TRAMP: Sometimes hangs, sometimes not Date: Mon, 11 Dec 2017 13:14:44 +0100 Message-ID: <87lgi9cvgr.fsf@gmx.de> References: <51c5d038-63a4-3ca4-7314-5e8979fe50fd@Alexander.Shukaev.name> <87tw0st86x.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512994513 27903 195.159.176.226 (11 Dec 2017 12:15:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2017 12:15:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 28192@debbugs.gnu.org To: Alexander Shukaev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 11 13:15:08 2017 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 1eOMzC-0006wl-5l for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Dec 2017 13:15:06 +0100 Original-Received: from localhost ([::1]:52482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOMzJ-000293-DP for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Dec 2017 07:15:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOMzB-00028d-IZ for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 07:15:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOMz8-00062E-Ck for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 07:15:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47421) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOMz8-000622-8R for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 07:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eOMz7-0001BJ-W6 for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 07:15: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: Mon, 11 Dec 2017 12:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28192 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28192-submit@debbugs.gnu.org id=B28192.15129944964513 (code B ref 28192); Mon, 11 Dec 2017 12:15:01 +0000 Original-Received: (at 28192) by debbugs.gnu.org; 11 Dec 2017 12:14:56 +0000 Original-Received: from localhost ([127.0.0.1]:56102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOMz2-0001Aj-As for submit@debbugs.gnu.org; Mon, 11 Dec 2017 07:14:56 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:50871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOMyz-0001AU-AS for 28192@debbugs.gnu.org; Mon, 11 Dec 2017 07:14:54 -0500 Original-Received: from detlef.gmx.de ([212.86.43.245]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M0h9K-1fBO4B3gY2-00upVO; Mon, 11 Dec 2017 13:14:46 +0100 In-Reply-To: <87tw0st86x.fsf@detlef> (Michael Albinus's message of "Mon, 28 Aug 2017 10:20:22 +0200") X-Provags-ID: V03:K0:FikqUAdIXbmrJgk0P90TBl/L0ZfqTbK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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:140920 Archived-At: Michael Albinus writes: Hi Alexander, >> I observe weird behavior with TRAMP. Sometimes it hangs, and >> sometimes performing the same action, it does not. Let me expand with >> the example. First see the attached backtrace of a hang ('hang.bt') >> and then see the attached debug of a hang ('hang.debug'). Notice how >> I waited for almost 3 minutes until eventually pressing to >> generate the backtrace and as soon as I exited the backtrace buffer, >> the last line >> >> 00:36:39.418776 tramp-maybe-open-connection (3) # Opening connection >> for root@g75vw using sudo...failed >> >> got printed in the debug buffer. >> >> What looks peculiar is this bit: >> >> 00:32:56.556463 tramp-send-command (6) # test -d /usr/bin 2>/dev/null; >> echo tramp_exit_status $? >> 00:32:57.493123 tramp-send-command (6) # test -e /\*scratch\* >> 2>/dev/null; echo tramp_exit_status $? >> 00:32:57.567582 tramp-wait-for-regexp (6) # >> tramp_exit_status 1 >> ///deee5cb9d3522d2a1faeef9e0327d4f1#$ >> 00:33:57.490307 tramp-send-command (6) # test -e /\*scratch\* >> 2>/dev/null; echo tramp_exit_status $? >> 00:33:57.491565 tramp-wait-for-regexp (6) # >> tramp_exit_status 1 >> ///deee5cb9d3522d2a1faeef9e0327d4f1#$ >> >> That is where did the status of '/usr/bin' test go? And why on earth >> would '*scratch*' be tested? I verified and files like with >> '*scratch*' names of course do not exist. It looks like TRAMP hangs >> after these tests. > > There are even more dubious tests. See for example > >> 00:21:44.114726 tramp-send-command (6) # test -e /\>copy-region-as-kill 2>/dev/null; echo tramp_exit_status $? > > I doubt, that you have a file "/>copy-region-as-kill". > >> Phew... Any ideas where to start looking? > > Does the same problem happen if you start > > # emacs -Q --eval '(setq tramp-verbose 6)' Several months without an answer, so I'm closing this. Feel free to reopen if you could contribute. >> Regards, >> Alexander Best regards, Michael.