GNU bug report logs -
#5414
23.1.91; /sys/devices files trigger loading tramp
Previous Next
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.
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):
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):
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):
>>>>> "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):
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):
>>>>> "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):
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):
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):
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; ='