* Emacs hangs when using tramp with su
@ 2012-04-03 15:24 Mathias Millet
2012-04-03 17:49 ` Michael Albinus
0 siblings, 1 reply; 4+ messages in thread
From: Mathias Millet @ 2012-04-03 15:24 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]
Hi everyone,
After reinstalling my system, I found out that I couldnt have tramp
working anymore, it hangs right after i enter my password.
Here is what exactly happens : I type in /C-x C-f /su:root@localhost:/
Here emacs asks for my password, which I provide. It then hangs, showing
the above string in the minibuffer, and after some time : /Tramp:
Waiting for prompts from remote shell/
After i cancel the operation, i have :
Here is what is in the /tramp/su root@localhost/ buffer :
|Password: Password:
su: incorrect password
Process *tramp/su root@localhost* exited abnormally with code 125
|
And here is what's in /debug tramp/su root@localhost :
/http://pastebin.com/0CKD1yM3
The last line :
| 17:13:59.988240 tramp-file-name-handler (1) # Interrupt received in operation (file-exists-p /su:root@localhost:)|
seems to say that the hangs happens inside *tramp-file-name-handler* or
*file-exists-p /su:root@localhost:*, but i don't really know what to do
with that...
I have no idea of what might cause this, the installation is just really
new (I don't remember if this worked at some point, but there was no
problem at all before I reinstall).
So if anyone has an idea of what might cause this, I've been searching
but couldn't find anything really usefull...
Thanks
[-- Attachment #2: Type: text/html, Size: 1947 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs hangs when using tramp with su
2012-04-03 15:24 Emacs hangs when using tramp with su Mathias Millet
@ 2012-04-03 17:49 ` Michael Albinus
2012-04-03 18:47 ` Mathias Millet
0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2012-04-03 17:49 UTC (permalink / raw)
To: Mathias Millet; +Cc: help-gnu-emacs
Mathias Millet <mathiasmillet@gmail.com> writes:
> Hi everyone,
Hi Mathias,
> After reinstalling my system, I found out that I couldnt have tramp
> working anymore, it hangs right after i enter my password.
>
> Here is what exactly happens : I type in C-x C-f /su:root@localhost:
> Here emacs asks for my password, which I provide. It then hangs,
> showing the above string in the minibuffer, and after some time :
> Tramp: Waiting for prompts from remote shell
>
> After i cancel the operation, i have :
>
> Here is what is in the tramp/su root@localhost buffer :
>
> Password: Password:
> su: incorrect password
>
> Process *tramp/su root@localhost* exited abnormally with code 125
>
> And here is what's in debug tramp/su root@localhost :
> http://pastebin.com/0CKD1yM3
It is not the complete debug buffer. For further analysis. I would need
the full Tramp traces (best send as attachment, non-ASCII chars matter!).
If you do not want to show the traces publicly, you could send them to
me off list.
> So if anyone has an idea of what might cause this, I've been searching
> but couldn't find anything really usefull...
At least the first line of your trace looks very suspicious, a lot of
escape sequences in the prompt.
> Thanks
Best regards, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs hangs when using tramp with su
2012-04-03 17:49 ` Michael Albinus
@ 2012-04-03 18:47 ` Mathias Millet
2012-04-03 19:01 ` Michael Albinus
0 siblings, 1 reply; 4+ messages in thread
From: Mathias Millet @ 2012-04-03 18:47 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
Hi Michael,
as requested, here are the needed files.
My emacs version is :
GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.9)
of 2012-02-01 on shirley.hoetzel.info
Thanks for your answer,
Best regards,
Mathias
On 03/04/2012 19:49, Michael Albinus wrote:
> Mathias Millet<mathiasmillet@gmail.com> writes:
>
>> Hi everyone,
> Hi Mathias,
>
>> After reinstalling my system, I found out that I couldnt have tramp
>> working anymore, it hangs right after i enter my password.
>>
>> Here is what exactly happens : I type in C-x C-f /su:root@localhost:
>> Here emacs asks for my password, which I provide. It then hangs,
>> showing the above string in the minibuffer, and after some time :
>> Tramp: Waiting for prompts from remote shell
>>
>> After i cancel the operation, i have :
>>
>> Here is what is in the tramp/su root@localhost buffer :
>>
>> Password: Password:
>> su: incorrect password
>>
>> Process *tramp/su root@localhost* exited abnormally with code 125
>>
>> And here is what's in debug tramp/su root@localhost :
>> http://pastebin.com/0CKD1yM3
> It is not the complete debug buffer. For further analysis. I would need
> the full Tramp traces (best send as attachment, non-ASCII chars matter!).
>
> If you do not want to show the traces publicly, you could send them to
> me off list.
>
>> So if anyone has an idea of what might cause this, I've been searching
>> but couldn't find anything really usefull...
> At least the first line of your trace looks very suspicious, a lot of
> escape sequences in the prompt.
>
>> Thanks
> Best regards, Michael.
>
[-- Attachment #2: tramp-debug.tar --]
[-- Type: application/x-tar, Size: 491520 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs hangs when using tramp with su
2012-04-03 18:47 ` Mathias Millet
@ 2012-04-03 19:01 ` Michael Albinus
0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2012-04-03 19:01 UTC (permalink / raw)
To: Mathias Millet; +Cc: help-gnu-emacs
Mathias Millet <mathiasmillet@gmail.com> writes:
> Hi Michael,
Hi Mathias,
> as requested, here are the needed files.
> My emacs version is :
> GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.9)
> of 2012-02-01 on shirley.hoetzel.info
As suspected, Tramp is hanging in an unrecognizable prompt (showing ansi
colors):
--8<---------------cut here---------------start------------->8---
;; GNU Emacs: 23.4.1 Tramp: 2.1.21-pre -*- mode: outline; -*-
20:27:40.648463 tramp-accept-process-output (10) #
#$
20:27:40.666808 tramp-send-string (10) # exec su - root
20:27:40.680922 tramp-accept-process-output (10) #
Password:
20:27:43.066638 tramp-accept-process-output (10) #
[0;33m( [1;33m~ [0;33m)[1;31m >[0;31m>[0m
--8<---------------cut here---------------end--------------->8---
... and so on. What happens, if you call from a terminal "exec su - root"?
Does it help, if you unset the prompt in root's .profile?
> Best regards,
>
> Mathias
Best regards, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-03 19:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 15:24 Emacs hangs when using tramp with su Mathias Millet
2012-04-03 17:49 ` Michael Albinus
2012-04-03 18:47 ` Mathias Millet
2012-04-03 19:01 ` Michael Albinus
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).