GNU bug report logs - #5414
23.1.91; /sys/devices files trigger loading tramp

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Mon, 18 Jan 2010 20:41:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 5414 in the body.
You can then email your comments to 5414 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Mon, 18 Jan 2010 20:41:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 18 Jan 2010 20:41:03 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.91; /sys/devices files trigger loading tramp
Date: Mon, 18 Jan 2010 09:38:19 +0800
Finding files like
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0
triggers "Loading tramp...done".
Maybe the regexps need to be tightened up.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Tue, 19 Jan 2010 14:00:03 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: jidanni <at> jidanni.org
Cc: 5414 <at> debbugs.gnu.org
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Tue, 19 Jan 2010 14:59:12 +0100
jidanni <at> jidanni.org writes:

> Finding files like
> /sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0
> triggers "Loading tramp...done".
> Maybe the regexps need to be tightened up.

I cannot reproduce it locally. Could you, please, start a fresh Emacs
via "emacs -Q", rerun the test, and create then a new message via "M-x
report-emacs-bug". This will show us the last keys you've entered.

You do not need to send the created message as-it-is; you might send it
to <5414 <at> debbugs.gnu.org> in order to follow this bug's history.

Best regards, Michael.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Wed, 20 Jan 2010 02:42:02 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: michael.albinus <at> gmx.de
Cc: 5414 <at> debbugs.gnu.org
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Wed, 20 Jan 2010 10:41:19 +0800
>>>>> "MA" == Michael Albinus <michael.albinus <at> gmx.de> writes:

MA> I cannot reproduce it locally. Could you, please, start a fresh Emacs
MA> via "emacs -Q", rerun the test, and create then a new message via "M-x
MA> report-emacs-bug". This will show us the last keys you've entered.

$ set /tmp/sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0
$ install -D /dev/null $@
$ emacs -Q $@
C-x C-f
See how it says "loading tramp"?
In GNU Emacs 23.1.91.1 (i486-pc-linux-gnu, GTK+ Version 2.18.6)
(emacs-snapshot package, version 1:20100118-1)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Wed, 20 Jan 2010 05:00:03 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: jidanni <at> jidanni.org
Cc: 5414 <at> debbugs.gnu.org
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Wed, 20 Jan 2010 05:59:05 +0100
jidanni <at> jidanni.org writes:

>>>>>> "MA" == Michael Albinus <michael.albinus <at> gmx.de> writes:
>
> $ set /tmp/sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0
> $ install -D /dev/null $@
> $ emacs -Q $@
> C-x C-f
> See how it says "loading tramp"?

Negative. I have applied exactly the commands; Tramp is not loaded.

> In GNU Emacs 23.1.91.1 (i486-pc-linux-gnu, GTK+ Version 2.18.6)
> (emacs-snapshot package, version 1:20100118-1)

Which emacs-snapshot is this? Debian?

Best regards, Michael.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Wed, 20 Jan 2010 05:09:01 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: michael.albinus <at> gmx.de
Cc: 5414 <at> debbugs.gnu.org
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Wed, 20 Jan 2010 13:08:38 +0800
>>>>> "MA" == Michael Albinus <michael.albinus <at> gmx.de> writes:
MA> Negative. I have applied exactly the commands; Tramp is not loaded.
MA> Which emacs-snapshot is this? Debian?

$  apt-cache policy emacs-snapshot
emacs-snapshot:
  Installed: 1:20100118-1
  Candidate: 1:20100118-1
  Version table:
 *** 1:20100118-1 0
        500 http://emacs.orebokech.com sid/main Packages
        100 /var/lib/dpkg/status




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Wed, 20 Jan 2010 16:58:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 5414 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Wed, 20 Jan 2010 11:57:10 -0500
Here's a proper recipe for reproducing this (the previous recipe does
not do it, maybe it was untested):

 emacs -Q
 C-x C-f
 C-a C-k
 /sys/devices/pc [TAB]
    => Tramp will be loaded




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Wed, 20 Jan 2010 17:21:02 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: cyd <at> stupidchicken.com
Cc: 5414 <at> debbugs.gnu.org, michael.albinus <at> gmx.de
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Thu, 21 Jan 2010 01:20:24 +0800
Chong Yidong's recipe works for me, here with
$ ls /sys/devices/pc*
0000:00:00.0  0000:00:02.0  0000:00:02.5  0000:00:03.1  0000:00:0f.0   pci_bus  uevent
0000:00:01.0  0000:00:02.1  0000:00:03.0  0000:00:03.3  firmware_node  power




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Wed, 20 Jan 2010 19:06:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5414 <at> debbugs.gnu.org, Miles Bader <miles <at> gnu.org>, jidanni <at> jidanni.org
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Wed, 20 Jan 2010 20:05:31 +0100
Chong Yidong <cyd <at> stupidchicken.com> writes:

> Here's a proper recipe for reproducing this (the previous recipe does
> not do it, maybe it was untested):
>
>  emacs -Q
>  C-x C-f
>  C-a C-k
>  /sys/devices/pc [TAB]
>     => Tramp will be loaded

Thanks, I can reproduce it as well.

Tramp is loaded due to `rfn-eshadow-update-overlay'. In the loop
commented with "Binary search ...", it recomputes `mid', and calls
`rfn-eshadow-sifn-equal'. This function applies
`substitute-in-file-name' for a part of the the whole file name, which
looks like a remote file name, accidently. Bingo!

See the backtrace:

  tramp-file-name-handler(substitute-in-file-name "/pci0000:00/")
  substitute-in-file-name("/pci0000:00/")
  byte-code("ÁÂd\"!‡" [pos substitute-in-file-name buffer-substring-no-properties] 4)
  byte-code("ÆÇ !È!É dƒ;	=„'T‰ÊË̏š*„;
=„‡‰ÊË̏š*„‡
T	W„a	TdWƒ€	T‰ÊË̏š*ƒ€	Td‰ƒ€
	\\Í¥‰ÊË̏š*ƒ{‰‚<‚;ÎÉ 
#ˆÏÐ!,‡" [rfn-eshadow-overlay end start mid goal pos substitute-in-file-name minibuffer-contents overlay-end minibuffer-prompt-end nil (byte-code "ÁÂd\"!‡" [pos substitute-in-file-name buffer-substring-no-properties] 4) ((error)) 2 move-overlay run-hooks rfn-eshadow-update-overlay-hook] 5)
  rfn-eshadow-update-overlay()
  run-hooks(post-command-hook)

I wouldn't regard it as a bug. One could argue, that rfn-shadow should
deactivate file name handlers for its work, but this might result in
collateral damages.

Best regards, Michael.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5414; Package emacs. (Thu, 21 Jan 2010 01:41:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 5414 <at> debbugs.gnu.org, Miles Bader <miles <at> gnu.org>, jidanni <at> jidanni.org
Subject: Re: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Wed, 20 Jan 2010 20:40:25 -0500
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Tramp is loaded due to `rfn-eshadow-update-overlay'. In the loop
> commented with "Binary search ...", it recomputes `mid', and calls
> `rfn-eshadow-sifn-equal'. This function applies
> `substitute-in-file-name' for a part of the the whole file name, which
> looks like a remote file name, accidently. Bingo!
>
> I wouldn't regard it as a bug. One could argue, that rfn-shadow should
> deactivate file name handlers for its work, but this might result in
> collateral damages.

Thanks for tracking this down.  I agree, there doesn't seem to be any
satisfactory way to get around this.  I'll close the bug.




bug closed, send any further explanations to jidanni <at> jidanni.org Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Thu, 21 Jan 2010 01:41:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 18 Feb 2010 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 130 days ago.

Previous Next


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