From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: remote tramp hangs Date: Wed, 02 Dec 2009 22:33:41 +0100 Message-ID: <878wdljc22.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259795924 3805 80.91.229.12 (2 Dec 2009 23:18:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2009 23:18:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 00:18:37 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFySu-0003Nq-I3 for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 00:18:36 +0100 Original-Received: from localhost ([127.0.0.1]:37160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFySt-0005U1-7y for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 18:18:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFwpc-00056O-Bg for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 16:33:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFwpX-00053q-4l for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 16:33:51 -0500 Original-Received: from [199.232.76.173] (port=47100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFwpW-00053i-W9 for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 16:33:47 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:43767) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NFwpW-0006v0-G8 for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 16:33:46 -0500 Original-Received: (qmail invoked by alias); 02 Dec 2009 21:33:43 -0000 Original-Received: from p57A2173D.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.23.61] by mail.gmx.net (mp070) with SMTP; 02 Dec 2009 22:33:43 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX199dNB6wvN9DPV33c6s3BLl+/JLSmHWCISW4Z7CNg DjhxgErERIkfx6 In-Reply-To: (=?utf-8?Q?=22Rapha=C3=ABl?= Berbain"'s message of "Wed, 02 Dec 2009 14:56:07 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70340 Archived-At: raphael.berbain@gmail.com (Rapha=C3=ABl Berbain) writes: > Ah, finding it through google groups shows that the post got truncated > where the backtrace included a null character. My newsreader shows it > in full, so I guess my news server has a full copy; the ^@ may have > messed up article propagation or something. I did try to sanitize the > backtrace -- what's the correct way to gather & post a backtrace > safely? MIME attachment. > Either way, here is the output: > > 11:52:52.741698 tramp-maybe-open-connection (6) # /bin/sh > 11:52:52.746067 tramp-wait-for-regexp (6) #=20 > $=20 Tramp opens a local shell, the prompt is "$ ". OK. > 11:52:52.749397 tramp-send-command (6) # ssh harry -l root -q -e none &&= exit || exit > 11:52:54.725933 tramp-process-actions (6) #=20 > #=20 Tramp applies the ssh command to the remote host. The prompt is "# ". That is OK; tramp-shell-prompt-pattern covers this. > 11:52:54.727166 tramp-send-command (6) # exec env ENV=3D'' PROMPT_COMMAND= =3D'' PS1=3D\$\ PS2=3D'' PS3=3D'' /bin/sh > 11:52:55.883214 tramp-accept-process-output (10) #=20 > exec env ENV=3D'' PROMPT_COMMAND=3D'' PS1=3D\$\ PS2=3D'' PS3=3D'' /bin/sh > #=20 Tramp starts /bin/sh on the remote host, and expects "$ " as prompt (see PS1). But the prompt is still "# ". That is NOT OK. Is there something in the .profile of root, which overrides the PS1 setting= s? What happens, if you manually apply "ssh harry -l root -q -e none" and then, afterwards, "exec env ENV=3D'' PROMPT_COMMAND=3D'' PS1=3D\$\ PS2=3D''= PS3=3D'' /bin/sh"? Best regards, Michael.