unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Alexander Shukaev <emacs@Alexander.Shukaev.name>
Cc: 27315@debbugs.gnu.org
Subject: bug#27315: Regression: `abbreviate-file-name' and `tramp-file-name-handler'
Date: Mon, 12 Jun 2017 17:59:23 +0200	[thread overview]
Message-ID: <87ink19oys.fsf@detlef> (raw)
In-Reply-To: <248917d4-c8a7-a083-22d1-20ffe7f4fbe5@Alexander.Shukaev.name> (Alexander Shukaev's message of "Sun, 11 Jun 2017 13:30:14 +0200")

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

Hi Alexander,

>> If the problem persists, could you pls set tramp-verbose to 10, prior
>> running your test? There will be a Tramp debug buffer then.
>
> For the previous test, I've built Emacs from 'master' just a few
> commits before the one you referenced.  So, I've just rebuilt it again
> in order to capture your commit and the problem remains:

I ran the same test, with same trace level. For a while, traces are identical.

> ;; Emacs: 26.0.50 Tramp: 2.3.2-pre -*- mode: outline; -*-
> ;; Location: /usr/share/emacs/26.0.50/lisp/net/tramp.elc Git:
> 973322704adf11cf2ac442e4d0b35eac71ace972
> 13:20:14.493721 tramp-get-connection-property (7) # ~root undef
> 13:20:14.493981 tramp-get-connection-property (7) # process-name nil
> 13:20:14.494130 tramp-get-connection-property (7) # process-name nil
> 13:20:14.494264 tramp-get-connection-property (7) # process-buffer nil
> 13:20:14.494415 tramp-get-connection-property (7) # process-buffer nil
> 13:20:14.494543 tramp-set-connection-property (7) # process-buffer nil
> 13:20:14.495003 tramp-maybe-open-connection (3) # Opening connection
> for root@host using sudo...
> 13:20:14.495676 tramp-get-connection-property (7) # login-args undef
> 13:20:14.495904 tramp-get-connection-property (7) # login-args undef
> 13:20:14.496217 tramp-get-connection-property (7) # process-name nil
> 13:20:14.496382 tramp-get-connection-property (7) # process-buffer nil
> 13:20:14.497168 tramp-set-connection-property (7) # vector
> (tramp-file-name sudo root nil host nil ~/xxx nil)
> 13:20:14.497357 tramp-maybe-open-connection (6) # /bin/sh -i
> 13:20:14.497496 tramp-get-connection-property (7) # vector
> (tramp-file-name sudo root nil host nil ~/xxx nil)
> 13:20:14.497652 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.497781 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.503446 tramp-accept-process-output (10) # *tramp/sudo
> root@host* run t
> #$
> 13:20:14.503622 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.503753 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.503893 tramp-wait-for-regexp (6) #
> #$
> 13:20:14.504046 tramp-get-connection-property (7) # login-program undef
> 13:20:14.504188 tramp-get-connection-property (7) # login-args undef
> 13:20:14.504329 tramp-get-connection-property (7) # login-env undef
> 13:20:14.504466 tramp-get-connection-property (7) # async-args undef
> 13:20:14.504607 tramp-get-connection-property (7) # connection-timeout undef
> 13:20:14.504739 tramp-get-connection-property (7) # temp-file undef
> 13:20:14.504966 tramp-set-connection-property (7) # temp-file
> /tmp/tramp.2864657P
> 13:20:14.575140 tramp-maybe-open-connection (3) # Sending command
> ‘exec env SHELL=/bin/sh sudo -u root -s -H -p
> P""a""s""s""w""o""r""d"":’
> 13:20:14.575246 tramp-get-connection-property (7) # process-name nil
> 13:20:14.575320 tramp-get-connection-property (7) # remote-echo nil
> 13:20:14.575383 tramp-send-command (6) # exec env SHELL=/bin/sh sudo
> -u 
> root -s -H -p P""a""s""s""w""o""r""d"":
> 13:20:14.575454 tramp-get-connection-property (7) # process-name nil
> 13:20:14.575524 tramp-get-connection-property (7) # chunksize nil
> 13:20:14.575587 tramp-set-connection-property (7) # last-cmd-time
> (22845 10094 575567 749000)
> 13:20:14.575657 tramp-send-string (10) # exec env SHELL=/bin/sh sudo
> -u 
> root -s -H -p P""a""s""s""w""o""r""d"":
> 13:20:14.575725 tramp-get-connection-property (7) # process-buffer nil
> 13:20:14.575917 tramp-set-connection-property (7) # first-password-request t
> 13:20:14.576072 tramp-process-actions (3) # Waiting for prompts from
> remote shell...
> 13:20:14.585091 tramp-accept-process-output (10) # *tramp/sudo
> root@host* run t
> Password:
> 13:20:14.585190 tramp-process-one-action (5) # Looking for regexp
> "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
> 13:20:14.585256 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.585319 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.585410 tramp-process-one-action (5) # Looking for regexp
> "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot
> de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?:
> phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة
> السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ
> ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パス
> ワード\|密[码碼]\|암호\)\).*:
> 13:20:14.585488 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.585547 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.585636 tramp-process-one-action (5) # Call ‘tramp-action-password’
> 13:20:14.585702 tramp-get-connection-property (7) # first-password-request t
> 13:20:14.585763 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.585825 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.586027 tramp-action-password (3) # Sending Password
> 13:20:14.586114 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.586221 tramp-get-connection-property (7) # check-remote-echo nil
> 13:20:14.586407 tramp-get-connection-property (7) # first-password-request t

... until here. In my traces, Tramp continues to wait for the shell
prompt. In your traces, Tramp tries to determine, whether the file
system is case-insensitive.

> 13:20:14.590398 tramp-get-connection-property (7) # case-insensitive undef
> 13:20:14.590502 tramp-get-connection-property (7) # case-insensitive undef
> 13:20:14.602433 tramp-handle-file-name-case-insensitive-p (5) #
> Checking case-insensitive...

There's no reason to do this at this point, I've checked the sources. So
I have instrumented `tramp-handle-file-name-case-insensitive-p' to print
its backtrace, in order to understand where it is called from. Committed
to master.

Could you, pls, rerun your test with `tramp-verbose' being 10?

> Regards,
> Alexander

Best regards, Michael.





  reply	other threads:[~2017-06-12 15:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13  0:59 bug#25191: Redesign `recentf-menu-bar' logic and its callers Alexander Shukaev
2017-06-10 12:59 ` bug#27306: Regression: Emacs Lisp Indentation Alexander Shukaev
2017-06-10 15:33   ` npostavs
2017-06-13 11:27     ` npostavs
2017-06-16  7:39       ` Alexander Shukaev
2017-06-10 19:00   ` bug#27315: Regression: `abbreviate-file-name' and `tramp-file-name-handler' Alexander Shukaev
2017-06-11  9:13     ` Michael Albinus
2017-06-11 11:30       ` Alexander Shukaev
2017-06-12 15:59         ` Michael Albinus [this message]
2017-06-13 21:55           ` Alexander Shukaev
2017-06-14 12:38             ` Michael Albinus
2017-06-16  7:33               ` Alexander Shukaev
2017-06-16  8:39                 ` Michael Albinus
2019-10-09  7:46 ` bug#25191: Redesign `recentf-menu-bar' logic and its callers Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ink19oys.fsf@detlef \
    --to=michael.albinus@gmx.de \
    --cc=27315@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).