From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo Date: Thu, 7 Feb 2019 07:04:11 +0000 Message-ID: References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000ae54d50581487321" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268909"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34192@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 07 08:05:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1grdkG-0017na-9X for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 08:05:12 +0100 Original-Received: from localhost ([127.0.0.1]:35378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grdkF-0005s1-9d for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 02:05:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grdk8-0005ri-7j for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2019 02:05:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grdk6-0003YS-Rp for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2019 02:05:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37197) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grdk6-0003Y7-EP for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2019 02:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grdk6-00044j-3M for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2019 02:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Feb 2019 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34192 X-GNU-PR-Package: emacs Original-Received: via spool by 34192-submit@debbugs.gnu.org id=B34192.154952307015611 (code B ref 34192); Thu, 07 Feb 2019 07:05:02 +0000 Original-Received: (at 34192) by debbugs.gnu.org; 7 Feb 2019 07:04:30 +0000 Original-Received: from localhost ([127.0.0.1]:36475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grdjZ-00043i-NY for submit@debbugs.gnu.org; Thu, 07 Feb 2019 02:04:30 -0500 Original-Received: from mail-it1-f179.google.com ([209.85.166.179]:52386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grdjY-00043V-0v for 34192@debbugs.gnu.org; Thu, 07 Feb 2019 02:04:29 -0500 Original-Received: by mail-it1-f179.google.com with SMTP id d11so12226704itf.2 for <34192@debbugs.gnu.org>; Wed, 06 Feb 2019 23:04:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0GjdPynhJThDJnWJmnn3caUpU7aogE02gWmXGsgqKvM=; b=NxQ0Tk85swMLROO/hUj1pbPh1/jCmIld3n8ITJhzGAPqfzaEDmu7OtjIVXv/VinUh6 AkB5NWf2wErkXUk8Jgzm7HAMcIigFkkxOQKvBzrw8UccVi1GN3jfJ1VDGcbHXoTY9lt+ rcgEe/NxJX64GNzEck6uACxmeQzxx7I1tfWrpwweOsAJCKyocCDYx3GtHFFM7Z259XHp EIMXuuVcOGyH+M55PEgqe+bKejjfGmLb+vmnAL3RoD67A8xEqetHTDoL30WKGrfahNfG sMR7gKjLpnqpsFyDGS2Y1O0IJaDaZbQh8PPejqRJgujJGCTdCMLMKGzha4Ts70VcaGYA ssjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0GjdPynhJThDJnWJmnn3caUpU7aogE02gWmXGsgqKvM=; b=eiDlot260Bnug6XlPIsz+m7BNKGVy7sqCkcoadW1DM2qDdMZzqpM8Zj9dB65TEtbvj vtSJDK+OILC9O4dfuoGphbv8vkkvnX8c9PeeQ8KDiRG4QuRRh35nCcRu51jAAaeliDBZ iYiOhqNVnTtk8WgkItVEUD0lxgBVnITKMy4yIGUuR3qIFgq/sm1ybYjryIasGVuAI5qC iT/Kb4hzOo/SLLXzwRC8GrObAxzpr55x404HmvWuyjQzCuNHpZkNVLMeK6ysZJUYRet5 0WQIFUtdkhV88AcJv0r05nKB40lUYudxg1hjQu5XLerX5cpIupG6f0JVZOhVLzDfs43o pc7w== X-Gm-Message-State: AHQUAubRangso9nfe3eoUZsimjoc/cSt+H2gsmqFcljKcfOyk9VkeDUU o/3yeR0FJ96KyDmZoP99wUPbgk9JC3DApmTWo34Ayw== X-Google-Smtp-Source: AHgI3IalgjvPb/jrpF7D/LyYbyu8iPRSPMGClLk6ipuC7LOzvmmGrwVpzpGWb1Bpn0wX0X2K+g8NcTmIra9RdiU2jKo= X-Received: by 2002:a24:53c9:: with SMTP id n192mr4044740itb.8.1549523061970; Wed, 06 Feb 2019 23:04:21 -0800 (PST) In-Reply-To: <875ztzzs5e.fsf@gmx.de> 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: 209.51.188.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:155212 Archived-At: --000000000000ae54d50581487321 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I finally traced the problem down to setting tramp-histfile-override to t. Apparently, Bash 5.0 doesn't like HISTSIZE=3D0. Changing it to HISTSIZE=3D1 fixes the error. Attached patch demonstrating workaround. I couldn't reproduce it by hand however: env HISTFILE=3D'' HISTFILESIZE=3D0 HISTSIZE=3D0 bash RET Versions: "GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05" GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu) On Mon, Feb 4, 2019 at 11:53 AM Michael Albinus wr= ote: > > Allen Li writes: > > Hi Allen, > > > I took the liberty of removing the 2>/dev/null in > > tramp-send-command-and-check as well, but > > I don't think there's a lot of info. > > > 16:13:19.704866 tramp-send-command (6) # > > tramp_perl_file_name_all_completions () { > > \perl -e ' > > opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); > > @files =3D readdir(d); closedir(d); > > foreach $f (@files) { > > if (-d "$ARGV[0]/$f") { > > print "$f/\n"; > > } > > else { > > print "$f\n"; > > } > > } > > print "ok\n" > > ' "$1" > > } ; echo tramp_exit_status $? > > 16:13:19.704957 tramp-get-connection-property (7) # process-name nil > > 16:13:19.705087 tramp-get-connection-property (7) # chunksize 0 > > 16:13:19.705193 tramp-set-connection-property (7) # last-cmd-time > > (23638 12831 705148 363000) > > 16:13:19.705294 tramp-send-string (10) # > > tramp_perl_file_name_all_completions () { > > \perl -e ' > > opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); > > @files =3D readdir(d); closedir(d); > > foreach $f (@files) { > > if (-d "$ARGV[0]/$f") { > > print "$f/\n"; > > } > > else { > > print "$f\n"; > > } > > } > > print "ok\n" > > ' "$1" > > } ; echo tramp_exit_status $? > > 16:13:19.705404 tramp-get-connection-property (7) # process-buffer nil > > 16:13:19.705518 tramp-get-connection-property (7) # check-remote-echo n= il > > 16:13:19.705597 tramp-get-connection-property (7) # check-remote-echo n= il > > 16:13:21.402934 tramp-maybe-send-script (5) # Sending script > > =E2=80=98tramp_perl_file_name_all_completions=E2=80=99...failed > > Yes, there's even no trace 10 output about the result. Hmm, that's very > strange. > > Could you, pls, send the contents of the *tramp/sudo root@cielnosurge* bu= ffer? > > Best regards, Michael. --000000000000ae54d50581487321 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Workaround-34192.patch" Content-Disposition: attachment; filename="0001-Workaround-34192.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jru9r42b0 RnJvbSBjNDZjZmUxYjFiZjRhN2YyMThlZWExNTAxMmY3Y2U5YjA0NTI0YzZjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGxlbiBMaSA8ZGFya2ZlbGluZUBmZWxlc2F0cmEubW9lPgpE YXRlOiBXZWQsIDYgRmViIDIwMTkgMjI6NTY6MTIgLTA4MDAKU3ViamVjdDogW1BBVENIXSBXb3Jr YXJvdW5kIDM0MTkyCgotLS0KIGxpc3AvbmV0L3RyYW1wLXNoLmVsIHwgMiArLQogMSBmaWxlIGNo YW5nZWQsIDEgaW5zZXJ0aW9uKCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9u ZXQvdHJhbXAtc2guZWwgYi9saXNwL25ldC90cmFtcC1zaC5lbAppbmRleCA0MDRmYWU5MTk3Li44 ODk2OGM4M2Q2IDEwMDY0NAotLS0gYS9saXNwL25ldC90cmFtcC1zaC5lbAorKysgYi9saXNwL25l dC90cmFtcC1zaC5lbApAQCAtNDA3NSw3ICs0MDc1LDcgQEAgdHJhbXAtb3Blbi1zaGVsbAogCQko Zm9ybWF0ICJISVNURklMRT0lcyIKIAkJCSh0cmFtcC1zaGVsbC1xdW90ZS1hcmd1bWVudCB0cmFt cC1oaXN0ZmlsZS1vdmVycmlkZSkpCiAJICAgICAgKGlmIHRyYW1wLWhpc3RmaWxlLW92ZXJyaWRl Ci0JCSAgIkhJU1RGSUxFPScnIEhJU1RGSUxFU0laRT0wIEhJU1RTSVpFPTAiCisJCSAgIkhJU1RG SUxFPScnIEhJU1RGSUxFU0laRT0wIEhJU1RTSVpFPTEiCiAJCSIiKSkKIAkgICAgKHRyYW1wLXNo ZWxsLXF1b3RlLWFyZ3VtZW50IHRyYW1wLWVuZC1vZi1vdXRwdXQpCiAJICAgIHNoZWxsIChvciBl eHRyYS1hcmdzICIiKSkKLS0gCjIuMjAuMQoK --000000000000ae54d50581487321--