GNU bug report logs - #65321
30.0.50; Tramp sudo fails since commit 5c101b1adac

Previous Next

Package: emacs;

Reported by: Filipp Gunbin <fgunbin <at> fastmail.fm>

Date: Tue, 15 Aug 2023 20:59:01 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65321 in the body.
You can then email your comments to 65321 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#65321; Package emacs. (Tue, 15 Aug 2023 20:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Filipp Gunbin <fgunbin <at> fastmail.fm>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 15 Aug 2023 20:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: bug-gnu-emacs <at> gnu.org
Cc: michael.albinus <at> gmx.de
Subject: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Tue, 15 Aug 2023 23:58:02 +0300
[Message part 1 (text/plain, inline)]
Hi,

- emacs -Q
- M-x load-library tramp RET
- M-x set-variable tramp-verbose RET 10 RET
- C-x C-f /sudo::/tmp RET
- <enter password at the prompt>
- Observe hang with message like "Tramp: Opening connection nil for root <at> fgunbin.local using sudo...failed"
- C-g

*debug tramp* buffer contents attached.

Thanks.

In GNU Emacs 30.0.50 (build 16, x86_64-apple-darwin20.6.0, NS
 appkit-2022.70 Version 11.7.7 (Build 20G1345)) of 2023-08-15 built on
 fgunbin.local
Repository revision: 1db7e8eba961e88181879213dd5374ad9e87ac76
Repository branch: master
System Description:  macOS 11.7.7

Configured using:
 'configure --enable-check-lisp-object-type --with-file-notification=no'

Configured features:
ACL GLIB GNUTLS LCMS2 LIBXML2 MODULES NS PDUMPER PNG RSVG SQLITE3
THREADS TOOLKIT_SCROLL_BARS WEBP XIM ZLIB

Important settings:
  value of $LC_ALL: ru_RU.UTF-8
  value of $LC_CTYPE: UTF-8
  locale-coding-system: utf-8-unix

[tramp.log (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65321; Package emacs. (Wed, 16 Aug 2023 09:56:02 GMT) Full text and rfc822 format available.

Message #8 received at 65321 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 65321 <at> debbugs.gnu.org
Subject: Re: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Wed, 16 Aug 2023 11:55:07 +0200
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

> Hi,

Hi Filipp,

[Pls don't use this type of Cc and Mail-Followup-To. It isn't compatible
 with the debbugs mail configuration. If you want to add me when sending
 a bug report, pls use X-Debbugs-Cc as indicated in admin/notes/bugtracker]

> - emacs -Q
> - M-x load-library tramp RET
> - M-x set-variable tramp-verbose RET 10 RET
> - C-x C-f /sudo::/tmp RET
> - <enter password at the prompt>
> - Observe hang with message like "Tramp: Opening connection nil for root <at> fgunbin.local using sudo...failed"
> - C-g
>
> *debug tramp* buffer contents attached.

Thanks for the report. You are hit by an infloop, due to some code
reorganization in Tramp. Fixed in master.

> Thanks.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65321; Package emacs. (Wed, 16 Aug 2023 12:41:01 GMT) Full text and rfc822 format available.

Message #11 received at 65321 <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 65321 <at> debbugs.gnu.org
Subject: Re: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Wed, 16 Aug 2023 15:40:05 +0300
[Message part 1 (text/plain, inline)]
Hi Michael,

On 16/08/2023 11:55 +0200, Michael Albinus wrote:

> Filipp Gunbin <fgunbin <at> fastmail.fm> writes:
>
>> Hi,
>
> Hi Filipp,
>
> [Pls don't use this type of Cc and Mail-Followup-To. It isn't compatible
>  with the debbugs mail configuration. If you want to add me when sending
>  a bug report, pls use X-Debbugs-Cc as indicated in
> admin/notes/bugtracker]

Noted.

>> - emacs -Q
>> - M-x load-library tramp RET
>> - M-x set-variable tramp-verbose RET 10 RET
>> - C-x C-f /sudo::/tmp RET
>> - <enter password at the prompt>
>> - Observe hang with message like "Tramp: Opening connection nil for root <at> fgunbin.local using sudo...failed"
>> - C-g
>>
>> *debug tramp* buffer contents attached.
>
> Thanks for the report. You are hit by an infloop, due to some code
> reorganization in Tramp. Fixed in master.

Thanks, but now another error, debug output attached.

Filipp

[tramp.log (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65321; Package emacs. (Wed, 16 Aug 2023 13:26:02 GMT) Full text and rfc822 format available.

Message #14 received at 65321 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 65321 <at> debbugs.gnu.org
Subject: Re: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Wed, 16 Aug 2023 15:24:56 +0200
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

> Hi Michael,

Hi Filipp,

> Noted.
>
>>> - emacs -Q
>>> - M-x load-library tramp RET
>>> - M-x set-variable tramp-verbose RET 10 RET
>>> - C-x C-f /sudo::/tmp RET
>>> - <enter password at the prompt>
>>> - Observe hang with message like "Tramp: Opening connection nil for root <at> fgunbin.local using sudo...failed"
>>> - C-g
>>>
>>> *debug tramp* buffer contents attached.
>>
>> Thanks for the report. You are hit by an infloop, due to some code
>> reorganization in Tramp. Fixed in master.
>
> Thanks, but now another error, debug output attached.

Hmm. According to the backtrace, Tramp has sent "/usr/bin/test -e / 2>/dev/null"
to the sudo process. It didn't return; you seem to have interrupted this
(it signals `quit').

What happens if you apply "/usr/bin/test -e /" in a sudo shell? And
could you, pls, send next time the debug buffer
*debug tramp/sudo root <at> fgunbin.local* instead just the backtrace?

> Filipp

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65321; Package emacs. (Wed, 16 Aug 2023 14:59:01 GMT) Full text and rfc822 format available.

Message #17 received at 65321 <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 65321 <at> debbugs.gnu.org
Subject: Re: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Wed, 16 Aug 2023 17:58:09 +0300
[Message part 1 (text/plain, inline)]
Hi Michael,

On 16/08/2023 15:24 +0200, Michael Albinus wrote:

> Hmm. According to the backtrace, Tramp has sent "/usr/bin/test -e / 2>/dev/null"
> to the sudo process. It didn't return; you seem to have interrupted this
> (it signals `quit').
>
> What happens if you apply "/usr/bin/test -e /" in a sudo shell? And
> could you, pls, send next time the debug buffer
> *debug tramp/sudo root <at> fgunbin.local* instead just the backtrace?

$ sudo su
sh-3.2# /usr/bin/test -e /
sh: /usr/bin/test: No such file or directory

Attached debug buffer.

Thanks.
Filipp

[tramp-debug.log.gz (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65321; Package emacs. (Wed, 16 Aug 2023 17:36:01 GMT) Full text and rfc822 format available.

Message #20 received at 65321 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 65321 <at> debbugs.gnu.org
Subject: Re: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Wed, 16 Aug 2023 19:35:26 +0200
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

> Hi Michael,

Hi Filipp,

>> What happens if you apply "/usr/bin/test -e /" in a sudo shell? And
>> could you, pls, send next time the debug buffer
>> *debug tramp/sudo root <at> fgunbin.local* instead just the backtrace?
>
> $ sudo su
> sh-3.2# /usr/bin/test -e /
> sh: /usr/bin/test: No such file or directory

That's OK.

> Attached debug buffer.

Thanks. It is the famous "echo -n" bug; this command isn't
portable. I've fixed this on master.

> Thanks.
> Filipp

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65321; Package emacs. (Wed, 16 Aug 2023 20:44:02 GMT) Full text and rfc822 format available.

Message #23 received at 65321 <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 65321 <at> debbugs.gnu.org
Subject: Re: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Wed, 16 Aug 2023 23:43:36 +0300
Hi Michael,

On 16/08/2023 19:35 +0200, Michael Albinus wrote:

[...]

>> Attached debug buffer.
>
> Thanks. It is the famous "echo -n" bug; this command isn't
> portable. I've fixed this on master.

It works now, thank you very much!

Filipp




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 17 Aug 2023 06:45:01 GMT) Full text and rfc822 format available.

Notification sent to Filipp Gunbin <fgunbin <at> fastmail.fm>:
bug acknowledged by developer. (Thu, 17 Aug 2023 06:45:02 GMT) Full text and rfc822 format available.

Message #28 received at 65321-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 65321-done <at> debbugs.gnu.org
Subject: Re: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac
Date: Thu, 17 Aug 2023 08:44:34 +0200
Version: 30.1

Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

> Hi Michael,

Hi Filipp,

>> Thanks. It is the famous "echo -n" bug; this command isn't
>> portable. I've fixed this on master.
>
> It works now, thank you very much!

Thanks for the feedback, I'm closing the bug.

> Filipp

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Sep 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.