GNU bug report logs - #43052
tramp-test04-substitute-in-file-name failure on RHEL 7.8

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Wed, 26 Aug 2020 01:50:02 UTC

Severity: normal

Fixed in version 28.1

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 43052 in the body.
You can then email your comments to 43052 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#43052; Package emacs. (Wed, 26 Aug 2020 01:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Eggert <eggert <at> cs.ucla.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 26 Aug 2020 01:50:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Emacs bug reports and feature requests <bug-gnu-emacs <at> gnu.org>
Cc: Michael Albinus <michael.albinus <at> gmx.de>
Subject: tramp-test04-substitute-in-file-name failure on RHEL 7.8
Date: Tue, 25 Aug 2020 18:49:48 -0700
Found via 'make check'. tramp-tests.log says this:

Test tramp-test04-substitute-in-file-name backtrace:
  signal(ert-test-failed (((should (string-equal (substitute-in-file-n
  ert-fail(((should (string-equal (substitute-in-file-name "/method:ho
  #f(compiled-function () #<bytecode 0x102d86f262b5727f>)()
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name tramp-test04-substitute-in-file-name
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/net/tramp-tests" "--
  command-line()
  normal-top-level()
Test tramp-test04-substitute-in-file-name condition:
    (ert-test-failed
     ((should
       (string-equal
	(substitute-in-file-name "/method:host://~foo")
	"/~foo"))
      :form
      (string-equal "~foo" "/~foo")
      :value nil))
   FAILED   7/47  tramp-test04-substitute-in-file-name (0.011468 sec)

This is Emacs master on RHEL 7.8 x86-64, atop an NFS filesystem. The same test 
works OK on Fedora 31 x86-64 atop a local filesystem. Here are more details 
about the failing system.

In GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo 
version 1.15.12)
 of 2020-08-25 built on lnxsrv10.seas.ucla.edu
Repository revision: d4b5dff48297faec67291c95f8831a3d84f87460
Repository branch: master
System Description: Red Hat Enterprise Linux

Configured using:
 'configure --enable-gcc-warnings --with-gif=ifavailable'

Configured features:
XPM JPEG TIFF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS PDUMPER

Important settings:
  value of $LC_ALL: en_US.utf8
  value of $LC_COLLATE: en_US.UTF-8
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: en_US.UTF-8
  value of $LANG: C
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  global-whitespace-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail
rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils eieio-opt cl-extra
speedbar ezimage dframe find-func help-fns radix-tree help-mode
tramp-cache tramp-sh thingatpt grep compile misearch multi-isearch
bug-reference tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601
time-date ls-lisp format-spec auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache json subr-x map seq vc-git
diff-mode easymenu easy-mmode cl-loaddefs cl-lib term/xterm xterm
byte-opt gv bytecomp byte-compile cconv whitespace tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 93111 8832)
 (symbols 48 10020 1)
 (strings 32 30564 1862)
 (string-bytes 1 1082475)
 (vectors 16 15247)
 (vector-slots 8 175491 6476)
 (floats 8 53 475)
 (intervals 56 1693 128)
 (buffers 992 16)
 (heap 1024 6704 893))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43052; Package emacs. (Thu, 27 Aug 2020 18:47:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 43052 <at> debbugs.gnu.org
Subject: Re: bug#43052: tramp-test04-substitute-in-file-name failure on RHEL
 7.8
Date: Thu, 27 Aug 2020 20:46:21 +0200
[Message part 1 (text/plain, inline)]
Paul Eggert <eggert <at> cs.ucla.edu> writes:

Hi Paul,

> Found via 'make check'. tramp-tests.log says this:
>
>    FAILED   7/47  tramp-test04-substitute-in-file-name (0.011468 sec)

Could you pls apply the appended patch to tramp-tests.el? Then run

# make -C test tramp-tests.log SELECTOR='"04"'

I would like to see tramp-tests.log.

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43052; Package emacs. (Fri, 28 Aug 2020 00:07:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 43052 <at> debbugs.gnu.org
Subject: Re: bug#43052: tramp-test04-substitute-in-file-name failure on RHEL
 7.8
Date: Thu, 27 Aug 2020 17:06:04 -0700
[Message part 1 (text/plain, inline)]
On 8/27/20 11:46 AM, Michael Albinus wrote:

> Could you pls apply the appended patch to tramp-tests.el? Then run
> 
> # make -C test tramp-tests.log SELECTOR='"04"'
> 
> I would like to see tramp-tests.log.

OK, here it is (compressed). This is with commit 
0bbc84630f12e848e19c39dce01f3d14559bf70b, and with the patch you sent applied.
[tramp-tests.log.gz (application/gzip, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43052; Package emacs. (Fri, 28 Aug 2020 11:47:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 43052 <at> debbugs.gnu.org
Subject: Re: bug#43052: tramp-test04-substitute-in-file-name failure on RHEL
 7.8
Date: Fri, 28 Aug 2020 13:45:52 +0200
Paul Eggert <eggert <at> cs.ucla.edu> writes:

Hi Paul,

>> Could you pls apply the appended patch to tramp-tests.el? Then run
>> # make -C test tramp-tests.log SELECTOR='"04"'
>> I would like to see tramp-tests.log.
>
> OK, here it is (compressed). This is with commit
> 0bbc84630f12e848e19c39dce01f3d14559bf70b, and with the patch you sent
> applied.

Thanks. There's nothing suspicious with Tramp in these traces.

What is the result of (substitute-in-file-name "/~foo") on that machine?
Do you happen to have a user "foo" on that machine? Because there's a
difference:

(substitute-in-file-name "/~root")
=> "~root"

(substitute-in-file-name "/~roott")
=> "/~roott"

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43052; Package emacs. (Fri, 28 Aug 2020 16:13:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 43052 <at> debbugs.gnu.org
Subject: Re: bug#43052: tramp-test04-substitute-in-file-name failure on RHEL
 7.8
Date: Fri, 28 Aug 2020 09:12:27 -0700
On 8/28/20 4:45 AM, Michael Albinus wrote:

> What is the result of (substitute-in-file-name "/~foo") on that machine?

It's "~foo".

> Do you happen to have a user "foo" on that machine?

Yes.  (Doesn't everyone? :-)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43052; Package emacs. (Fri, 28 Aug 2020 17:58:01 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 43052 <at> debbugs.gnu.org
Subject: Re: bug#43052: tramp-test04-substitute-in-file-name failure on RHEL
 7.8
Date: Fri, 28 Aug 2020 19:57:19 +0200
Paul Eggert <eggert <at> cs.ucla.edu> writes:

Hi Paul,

>> What is the result of (substitute-in-file-name "/~foo") on that machine?
>
> It's "~foo".
>
>> Do you happen to have a user "foo" on that machine?
>
> Yes.  (Doesn't everyone? :-)

Perhaps ...

Anyway, I've fixed this on master. Could you, pls, check?

Best regards, Michael.




bug Marked as fixed in versions 28.1. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Fri, 28 Aug 2020 17:58:02 GMT) Full text and rfc822 format available.

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Fri, 28 Aug 2020 19:23:02 GMT) Full text and rfc822 format available.

Notification sent to Paul Eggert <eggert <at> cs.ucla.edu>:
bug acknowledged by developer. (Fri, 28 Aug 2020 19:23:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 43052-done <at> debbugs.gnu.org
Subject: Re: bug#43052: tramp-test04-substitute-in-file-name failure on RHEL
 7.8
Date: Fri, 28 Aug 2020 12:22:04 -0700
On 8/28/20 10:57 AM, Michael Albinus wrote:
> Anyway, I've fixed this on master. Could you, pls, check?

Works for me, thanks. Closing the bug report.




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

This bug report was last modified 3 years and 183 days ago.

Previous Next


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