all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Alexander Shukaev <emacs@Alexander.Shukaev.name>
Cc: 28192@debbugs.gnu.org
Subject: bug#28192: TRAMP: Sometimes hangs, sometimes not
Date: Mon, 28 Aug 2017 10:20:22 +0200	[thread overview]
Message-ID: <87tw0st86x.fsf@detlef> (raw)
In-Reply-To: <51c5d038-63a4-3ca4-7314-5e8979fe50fd@Alexander.Shukaev.name> (Alexander Shukaev's message of "Wed, 23 Aug 2017 01:39:49 +0200")

Alexander Shukaev <emacs@Alexander.Shukaev.name> writes:

> Hi everyone and Michael,

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 <C-g> 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)'

> Regards,
> Alexander

Best regards, Michael.





  reply	other threads:[~2017-08-28  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22 23:39 bug#28192: TRAMP: Sometimes hangs, sometimes not Alexander Shukaev
2017-08-28  8:20 ` Michael Albinus [this message]
2017-12-11 12:14   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tw0st86x.fsf@detlef \
    --to=michael.albinus@gmx.de \
    --cc=28192@debbugs.gnu.org \
    --cc=emacs@Alexander.Shukaev.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.