From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sam Steingold 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, 22 Aug 2016 18:02:37 -0400 Message-ID: References: <86twlyhlmx.fsf@gnu.org> <87powkempj.fsf@gmx.de> <861t1v3tlu.fsf@gnu.org> <871t1q49c3.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1471903402 8470 195.159.176.226 (22 Aug 2016 22:03:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2016 22:03:22 +0000 (UTC) Cc: 22478@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 23 00:03:18 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 1bbxJN-0001mO-Gr for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Aug 2016 00:03:17 +0200 Original-Received: from localhost ([::1]:43415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbxJK-0003eV-RH for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2016 18:03:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbxJD-0003c8-4J for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 18:03:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbxJ8-0006Hn-AQ for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 18:03:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbxJ8-0006Hh-85 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 18:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bbxJ7-00042X-T7 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2016 18:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2016 22:03:01 +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.147190337115510 (code B ref 22478); Mon, 22 Aug 2016 22:03:01 +0000 Original-Received: (at 22478) by debbugs.gnu.org; 22 Aug 2016 22:02:51 +0000 Original-Received: from localhost ([127.0.0.1]:37236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbxIr-000421-Gs for submit@debbugs.gnu.org; Mon, 22 Aug 2016 18:02:51 -0400 Original-Received: from mail-it0-f66.google.com ([209.85.214.66]:33655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbxIq-00041m-5A for 22478@debbugs.gnu.org; Mon, 22 Aug 2016 18:02:44 -0400 Original-Received: by mail-it0-f66.google.com with SMTP id d65so6074817ith.0 for <22478@debbugs.gnu.org>; Mon, 22 Aug 2016 15:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=BykfqK4LprTB5B7XyKeN6z2c5RlFowsX0QxY+4TXQhw=; b=DewQf0mCGDwrSRi3qt014vY8M5t7/Bstmwo/YnU3MUdxCDeGs7RhSbHszZ7zfT9V04 zPw4EbdnbdyFbCC2x+rUvaXi20r4s0QWdRjdrKi7Cbldr0cX1Q+dSaRn6fCzxw8pycja 3qfa8DbmJ960fDLZUZ9K4fuUDgN3Xb5kG+Ctpi7jVgd/q9nWyNzapwtGi5l7kivVaPvJ d3LmRr5eWW4APh8UmyooV3ZQtUhVrjpiEi273SaanM1wvIXxkUuag6v9H1oSUakY/keu yRUtSZn3htBCv7pyCbiK0uiUsupcVJQf4DBftBO4UaBxPUJfH41pQ8Zk1x7tfANonWKu Qytw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=BykfqK4LprTB5B7XyKeN6z2c5RlFowsX0QxY+4TXQhw=; b=IyWjTpzWnzzr51eg5XwpAwUZ7IaObIOR0+7IZLhVO0mbkR837r9JkCLBrpHii6hDaV 8KPoS0HXBRjtcRxasAuK8To1tg8kZOh8kKKTrzqHKl5U+xvzNHcM0p21VXbO+/4+enNq M1o3N0pZL0rm9jJoKCQk9c8v0JO4tBFLwkRn+nRcdtOF7B8rt2WE/EvoU39oSRf+T8ne OZcAlbCp3S9LnyKpe3PeDhCdDDY2e79trkbVPvSviqjM/2eU8TC81UZV5V6g3IZWEodE zsBKkMInLg+QtcFRdb25wAUqamZJ4HCI4Jfw/ID5tWEXPsSQNvJ7hUV+X6VQqWwabv7i iA3A== X-Gm-Message-State: AEkoousXpHL6mTyF6cePwfJGriiWNbd8dXSRTv/DdSAK+r7TIzbHSg3dhMBh+m5c/WAo5FodOqSVm+MCVGotwQ== X-Received: by 10.107.8.134 with SMTP id h6mr25324486ioi.49.1471903358455; Mon, 22 Aug 2016 15:02:38 -0700 (PDT) Original-Received: by 10.107.189.195 with HTTP; Mon, 22 Aug 2016 15:02:37 -0700 (PDT) In-Reply-To: <871t1q49c3.fsf@gmx.de> X-Google-Sender-Auth: jCNfiiX_u6x76jqH2zPVIgpdkLM 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:122526 Archived-At: alas, I see the same problem with the current git tip On Mon, Aug 15, 2016 at 6:26 AM, Michael Albinus wrote: > 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. -- Sam Steingold