From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#4750: 23.1; copied files via dired/tramp/ssh garbled Date: Mon, 19 Oct 2009 14:24:03 +0200 Message-ID: References: <878wf8a4zj.fsf@fh-trier.de> <87k4ysezr1.fsf@gmx.de> <87vdibtytp.fsf@fh-trier.de> Reply-To: Michael Albinus , 4750@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255956456 10279 80.91.229.12 (19 Oct 2009 12:47:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2009 12:47:36 +0000 (UTC) Cc: "4750@emacsbugs.donarmstrong.com" <4750@emacsbugs.donarmstrong.com> To: Andreas Politz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 14:47:28 2009 Return-path: Envelope-to: geb-bug-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 1Mzre2-0000oY-VT for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2009 14:47:27 +0200 Original-Received: from localhost ([127.0.0.1]:43956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzre2-0004dN-Gr for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2009 08:47:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mzrdw-0004cd-7b for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 08:47:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mzrdr-0004bL-78 for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 08:47:19 -0400 Original-Received: from [199.232.76.173] (port=53830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzrdr-0004bI-0p for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 08:47:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34982) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mzrdq-0002TH-CV for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2009 08:47:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9JClCaF002457; Mon, 19 Oct 2009 05:47:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9JCU8CD032473; Mon, 19 Oct 2009 05:30:08 -0700 Resent-Date: Mon, 19 Oct 2009 05:30:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Michael Albinus Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 19 Oct 2009 12:30:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4750 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4750-submit@emacsbugs.donarmstrong.com id=B4750.125595505431508 (code B ref 4750); Mon, 19 Oct 2009 12:30:08 +0000 Original-Received: (at 4750) by emacsbugs.donarmstrong.com; 19 Oct 2009 12:24:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mailrelay1.alcatel.de (mailrelay1.alcatel.de [194.113.59.95]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9JCOCFl031494 for <4750@emacsbugs.donarmstrong.com>; Mon, 19 Oct 2009 05:24:14 -0700 Original-Received: from destgsu0048.stgl.sel.alcatel.de (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n9JCO5gb013611; Mon, 19 Oct 2009 14:24:05 +0200 Original-Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.stgl.sel.alcatel.de (8.12.3/8.12.3) with ESMTP id n9JCO4Y4010289; Mon, 19 Oct 2009 14:24:04 +0200 (MEST) In-Reply-To: <87vdibtytp.fsf@fh-trier.de> (Andreas Politz's message of "Mon, 19 Oct 2009 13:20:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Alcanet-virus-scanned: n9JCO4Y4010289 at destgsu0048.stgl.sel.alcatel.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 19 Oct 2009 08:47:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32097 Archived-At: Andreas Politz writes: >>> I open 2 dired buffers, one local, one remote via ssh. Marking a (any) >>> file in the local buffer and pressing 'C RET' starts to copy it to the >>> remote directory. >>> >>> Only a part of the file reaches it's destination. Neither dired nor >>> tramp report any problems. >> >> Could you, please, set `tramp-verbose' to 8, and repeat the test? >> Afterwards, I would like to see the Tramp debg buffer. >> >>> -ap >> >> Best regards, Michael. > > I copied the 2 shell functions into a script and executed it locally, on > the remote machine and via `ssh host command'. No problems there, all > this methods generate the complete file. > > Anyway here is the debug log. OK, the problem is clear I believe. > 12:29:01 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $? > 12:29:01 tramp-wait-for-regexp (6) # > "AIX 3" > tramp_exit_status 0 > > ///643be83973c0506db98f651a756e0efc Your remote hosts runs AIX. Honestly, this is one of the systems we run into trouble from time to time ... > 12:29:44 tramp-send-command (6) # tramp_perl_decode >/u/f0/students/politza/buk.log <<'EOF' > VGhpcyBpcyBwZGZUZVhrLCBWZXJzaW9uIDMuMTQxNTkyLTEuNDAuMyAoV2ViMkMgNy41LjYpIChm > b3JtYXQ9cGRmbGF0ZXggMjAwOS4xMC4zKSAgMTggT0NUIDIwMDkgMjA6NTkKZW50ZXJpbmcgZXh0 ... > MDAwIChtYXguIDEwMDAwMDAwKQoK > EOF I've taken the whole encoded string from your message, and I've applied "M-x base64-decode-region" on the region. It decoded fine, to 33024 bytes. But ... > 12:29:49 tramp-send-command (6) # /usr/bin/ls -d -Al -d buk.log > 12:29:49 tramp-wait-for-regexp (6) # > -rwxrwxrwx 1 politza infstd 26940 Oct 18 18:59 buk.log > > ///643be83973c0506db98f651a756e0efc ... there have been copied less bytes. There is a known bug in `process-send-string'. For some remote systems, it doesn't send the whole string. You seem to suffer from this. You might try a workaround, using `tramp-chunksize'. Read the docstring of that variable, in order to find a way how to set it for your case. Furthermore, I recommend you to set the variable `file-precious-flag' to t. In the Tramp case, it adds additional checks, whether a file has been written correctly. Best regards, Michael.