From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#22478: 25.1.50; tramp error: Wrong method specification for =?UTF-8?Q?=E2=80=98scp=E2=80=99?= Date: Mon, 15 Aug 2016 12:26:04 +0200 Message-ID: <871t1q49c3.fsf@gmx.de> References: <86twlyhlmx.fsf@gnu.org> <87powkempj.fsf@gmx.de> <861t1v3tlu.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1471256914 1528 195.159.176.226 (15 Aug 2016 10:28:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2016 10:28:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: 22478@debbugs.gnu.org To: Sam Steingold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 12:28:29 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZF88-0008Vb-MD for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2016 12:28:28 +0200 Original-Received: from localhost ([::1]:35913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZF86-0001Qx-P0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2016 06:28:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZF6p-0000Pz-7J for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 06:27:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZF6l-0002Fp-1O for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 06:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZF6k-0002Fk-UO for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 06:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bZF6k-0006nR-Iu for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 06:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2016 10:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 22478-submit@debbugs.gnu.org id=B22478.147125677626069 (code B ref 22478); Mon, 15 Aug 2016 10:27:02 +0000 Original-Received: (at 22478) by debbugs.gnu.org; 15 Aug 2016 10:26:16 +0000 Original-Received: from localhost ([127.0.0.1]:57932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZF60-0006mO-B1 for submit@debbugs.gnu.org; Mon, 15 Aug 2016 06:26:16 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:52099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZF5x-0006mB-LE for 22478@debbugs.gnu.org; Mon, 15 Aug 2016 06:26:14 -0400 Original-Received: from detlef.gmx.de ([87.146.62.214]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M3AzH-1bIxOT1rzr-00srTO; Mon, 15 Aug 2016 12:26:06 +0200 In-Reply-To: <861t1v3tlu.fsf@gnu.org> (Sam Steingold's message of "Thu, 11 Aug 2016 17:04:29 -0400") X-Provags-ID: V03:K0:0tKRah+2sN5yuAdmy8D4qTob1IUJs46fGHO0y/dTDwZmjAvIDp6 RNZV+TUzJofpp7P40yxcpCSsgaSe3He3pkTeI00z1296ftD2KegdKMqODV5PqX8Jrrl2N3g KFUMmpZRjGb2cQXOsDviuGVcSOBSr4tIsjn7d62mE1SHiAayAlJcMtUch5lwBXfdyXxGs6z KYJ6zzdaSONOiV1kxQrAw== X-UI-Out-Filterresults: notjunk:1;V01:K0:26fra4Yb6y4=:8R1ZjOVeljZCKf+0MbIvXh nrN7KVnBhJmEhjFMkvwffy0n5xspqw/hjb1wVByuz49ryg0HT1IUaX9bu/BW4csn3KF18B/N1 zz1DGalhyEPO5H5SU0LjrSFM1/zkb70rUbTczXCACbeqAHkAoJWrNRIbWwdIqzs2XhcGOednQ rJbp787ggr8T7RmYlbOdDrclMYVSl7wfxnPp7FEvzgdA64MwWoeX0aJU/NZaumS6ConNNgmNL qbuhHWGMrhGMOojgEs8KUih6Ynb6Yy6JVTmf19rDIDW0EbDDWwY/cXAAZcbdWTBXoUpdBplm4 PaeDlgLl1FpCcNHhPICOABSwPHEE07137Zqv8LOkEjwiDFL8+jUfixjbyOgnznmwO6a5CY++J H4UTZf54nwrtTubSVBmGFedygvTNdbsFFELfxv/xjydmkKTj9o0cvRtJspVlSyIiGw7eJ7zIc Po5eC6FtrNRl0NyvOM7yD4hcAumpnOyY4txRISEVXrBQnplUUxToTrQjeJh1VXn4AKjc0/lre 92WbexQ+Wl/bmAPtzgUTZMhj8HmVuesa2FcOcipKqHJz4kZEBG5Eowe7/oXz1KS+5/9aKe150 /bkE0N1ndWlbN9iD9NYXO4OMiWtmWiNT0pHJpZFKJrgoKQCdswOBWlDMPjr5Yfu8R+X+bag+f O2gWzDQZMRTob1g1pLwIaI5VuIH08Ayigr5qi+wewBSCOzJj6h2ySTCSS5WArb0LmfxsLH3oe xnohqSYoxcgIWa2C3QymSOxtZ3IVNQIR+chmrLOVXzS1Ca6w68sy7A2L4hsPzPyDr6YvnMhe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122236 Archived-At: Sam Steingold writes: > Hi Michael, Hi Sam, We see the following error in the traces: > 16:59:43.011954 tramp-send-command (6) # tramp_perl_file_attributes /home/sds/.newsrc integer 2>/dev/null; echo tramp_exit_status $? > 16:59:43.039832 tramp-wait-for-regexp (6) # > tramp_exit_status 2 > ///8a1abdf5d064a13495e6037e3daf8b9a#$ Unfortunately, the call of the shell function tramp_perl_file_attributes redirects stderr, so we don't know exactly what happened. Checking the relevant code, I've found a potential problem in Tramp's cache handling. Not sure whether it is related to your problem, but I've committed the following patch to the master branch: --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/tramp/lisp/tramp-cache.el.~996962bcc3f8778ae9bae93e4ac926fde1d34ea9~ 2016-08-15 12:17:00.813388070 +0200 --- /home/albinus/src/tramp/lisp/tramp-cache.el 2016-08-15 11:01:56.021498208 +0200 *************** *** 237,245 **** (aset key 3 nil) (aset key 4 nil)) (let* ((hash (tramp-get-hash-table key)) ! (value (if (hash-table-p hash) ! (gethash property hash default) ! default))) (tramp-message key 7 "%s %s" property value) value)) --- 237,250 ---- (aset key 3 nil) (aset key 4 nil)) (let* ((hash (tramp-get-hash-table key)) ! (value ! ;; If the key is an auxiliary process object, check whether ! ;; the process is still alive. ! (if (and (processp key) (not (memq (process-status key) '(run open)))) ! default ! (if (hash-table-p hash) ! (gethash property hash default) ! default)))) (tramp-message key 7 "%s %s" property value) value)) --8<---------------cut here---------------end--------------->8--- Could you, pls, check whether this cures the problem already? If not, we need more information why the shell function fails. Pls apply the following patch: --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/tramp/lisp/tramp-sh.el.~b3f62af997d071306fe3ab571f54e0537557f373~ 2016-08-15 12:21:09.129601587 +0200 --- /home/albinus/src/tramp/lisp/tramp-sh.el 2016-08-15 12:20:22.127720434 +0200 *************** *** 1400,1405 **** --- 1400,1409 ---- (tramp-message vec 5 "file attributes with perl: %s" localname) (tramp-maybe-send-script vec tramp-perl-file-attributes "tramp_perl_file_attributes") + (tramp-send-command + vec + (format "tramp_perl_file_attributes %s %s" + (tramp-shell-quote-argument localname) id-format)) (tramp-send-command-and-read vec (format "tramp_perl_file_attributes %s %s" --8<---------------cut here---------------end--------------->8--- Afterwards, rerun the test until it fails, with tramp-verbose set to 10. Maybe we will know better then what happens. Best regards, Michael.