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: Sun, 3 Feb 2019 00:21:56 +0000 Message-ID: References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="180087"; 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 Sun Feb 03 01:23: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 1gq5Z2-000kjZ-Gl for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Feb 2019 01:23:12 +0100 Original-Received: from localhost ([127.0.0.1]:49479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gq5Z1-0006we-H1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Feb 2019 19:23:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gq5Yu-0006wR-9b for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2019 19:23:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gq5Ys-0006Zj-Sd for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2019 19:23:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57385) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gq5Ys-0006ZT-JH for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2019 19:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gq5Ys-0002es-5T for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2019 19:23: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: Sun, 03 Feb 2019 00:23: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.154915333610141 (code B ref 34192); Sun, 03 Feb 2019 00:23:02 +0000 Original-Received: (at 34192) by debbugs.gnu.org; 3 Feb 2019 00:22:16 +0000 Original-Received: from localhost ([127.0.0.1]:56666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gq5Y7-0002dT-RX for submit@debbugs.gnu.org; Sat, 02 Feb 2019 19:22:16 -0500 Original-Received: from mail-it1-f174.google.com ([209.85.166.174]:55638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gq5Y5-0002dB-D3 for 34192@debbugs.gnu.org; Sat, 02 Feb 2019 19:22:14 -0500 Original-Received: by mail-it1-f174.google.com with SMTP id m62so15398680ith.5 for <34192@debbugs.gnu.org>; Sat, 02 Feb 2019 16:22:13 -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:content-transfer-encoding; bh=7/DqsGGEIKW+d/iAoHUmocn4Qp9cUxSA+xdv7uVtMQ4=; b=MckBESqfT+UldhpS8O70265y+3V9HFtagxhLUh0UCYeVEda3Y7GkxqPJLYXGfdywBs savPjNdgistZOze26rXnzKsC0M1WQt8FfJwTQgQMO2c2ugfZ/sl2yiYKz53Z3KQBE5pH w1vUg/2971aqdnlzKC5//DLvbOgyAbNkmfW8ERNxxQw181YvHm+mwF/lb88XKB13nNY+ NEhCTqoqE4i3u51qyTNRsCGSND74pPDliUUxNrv52h0mPAnwS19cMugkTJzsynb4WzDD PA6pLWXxxvCeT8T9Dlzi/CcQ9e7jf9JyRJcUELSAuaafXGXoa1zqABYdcJZ5VxHLKRPg e2nw== 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:content-transfer-encoding; bh=7/DqsGGEIKW+d/iAoHUmocn4Qp9cUxSA+xdv7uVtMQ4=; b=dgN5//8I2wGMqeCL2WiId88kzICgXC5gV4OoHYFwrg8rJ6vJ+KXkmZz9NqoW0Y7pQr fm2ExnnKfgTHUtKUqIlsiK3+ivQROCsplw+rl0T0Iz26GFDM301I5rdNT8m8+P+Wfz55 GdrNz11VdReayiRTle/Iu6ANuS4Nh0xNRDjHTAGkDCSyPblDc4XgjWP/B38KRZe5pJVG A8jSbcJXfCbW/eZhfkiYnBVZO5kgUKRAAMX0fuCiik7g6plUnDKX5dhGYN3z4bccmdit +krZdebh1vEKK/yf09sphbLvXhmE4HZf8RIgeaNhzK2cJZUOhrwxbX1IzoSV3zWSMZtP 6fZQ== X-Gm-Message-State: AHQUAuZFKXfXTdc1RO9oYET5mJMYo/XBKBs1BjAQC7iFUE2CGZaaKLFt g389qBP9co3QdA4HEUwfZtdh1O4fL89zWoZfc4xVtQ== X-Google-Smtp-Source: AHgI3Ia+gjHESiVK9tu8jCgqvNOwhMs2yoSRR2Hl/CpTDHb8nxcFWatCydX9kaMqPx+S3Lcw7O9rBrq/VkJzZatCWyI= X-Received: by 2002:a24:53c9:: with SMTP id n192mr5187999itb.8.1549153327405; Sat, 02 Feb 2019 16:22:07 -0800 (PST) In-Reply-To: <87fttbn5ju.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:155041 Archived-At: On Tue, Jan 29, 2019 at 10:04 AM Michael Albinus w= rote: > > Allen Li writes: > > Hi Allen, > > > I tried monkey patching tramp-wait-for-regexp to see what the exit stat= us is. > > > In my Messages buffer, I found > > > > @@@@@@@@@@@ DEAD 139 > > > > A search tells me that this is SIGSEGV. > > > > The corresponding backtrace: > > Thanks for the test. Unfortunately, it doesn't show why this happens. > > Maybe we could get some more messages from the shell. Could you, pls, > apply the following patch: > > diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el > index c304fcb..46f467d 100644 > --- a/lisp/tramp-sh.el > +++ b/lisp/tramp-sh.el > @@ -658,7 +658,7 @@ foreach $f (@files) { > } > } > print \"ok\\n\" > -' \"$1\" 2>/dev/null" > +' \"$1\"" > "Perl script to produce output suitable for use with > `file-name-all-completions' on the remote file system. Escape > sequence %s is replaced with name of Perl binary. This string is > > Recompile tramp-sh.el, and rerun the test with tramp-verbose 10. Your > patch isn't needed in this scenario. 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.685224 tramp-send-string (10) # \perl -e 'print "Hello ";' ; echo tramp_exit_status $? 16:13:19.685305 tramp-get-connection-property (7) # process-buffer nil 16:13:19.685403 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.685479 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.686923 tramp-accept-process-output (10) # *tramp/sudo root@cielnosurge* run t Hello 16:13:19.687030 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.687115 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.687232 tramp-accept-process-output (10) # *tramp/sudo root@cielnosurge* run t Hello tramp_exit_status 0 ///33fa052e8933ed0d43e05e92dd2ca7f3#$ 16:13:19.687323 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.687399 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.687486 tramp-wait-for-regexp (6) # Hello tramp_exit_status 0 ///33fa052e8933ed0d43e05e92dd2ca7f3#$ 16:13:19.687604 tramp-get-connection-property (7) # process-buffer nil 16:13:19.687708 tramp-get-connection-property (7) # perl-file-spec undef 16:13:19.687793 tramp-get-connection-property (7) # process-name nil 16:13:19.687877 tramp-get-connection-property (7) # process-name nil 16:13:19.687959 tramp-get-connection-property (7) # process-buffer nil 16:13:19.688044 tramp-get-connection-property (7) # last-cmd-time (23638 12831 685113 887000) 16:13:19.688133 tramp-get-connection-property (7) # process-name nil 16:13:19.688215 tramp-get-connection-property (7) # remote-echo nil 16:13:19.688305 tramp-send-command (6) # \perl -e 'use File::Spec;' ; echo tramp_exit_status $? 16:13:19.688429 tramp-get-connection-property (7) # process-name nil 16:13:19.688533 tramp-get-connection-property (7) # chunksize 0 16:13:19.688638 tramp-set-connection-property (7) # last-cmd-time (23638 12831 688608 245000) 16:13:19.688755 tramp-send-string (10) # \perl -e 'use File::Spec;' ; echo tramp_exit_status $? 16:13:19.688844 tramp-get-connection-property (7) # process-buffer nil 16:13:19.688948 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.689027 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.696952 tramp-accept-process-output (10) # *tramp/sudo root@cielnosurge* run t tramp_exit_status 0 ///33fa052e8933ed0d43e05e92dd2ca7f3#$ 16:13:19.697071 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.697154 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.697241 tramp-wait-for-regexp (6) # tramp_exit_status 0 ///33fa052e8933ed0d43e05e92dd2ca7f3#$ 16:13:19.697361 tramp-get-connection-property (7) # process-buffer nil 16:13:19.697462 tramp-set-connection-property (7) # perl-file-spec t 16:13:19.697544 tramp-get-connection-property (7) # perl-cwd-realpath undef 16:13:19.697629 tramp-get-connection-property (7) # process-name nil 16:13:19.697713 tramp-get-connection-property (7) # process-name nil 16:13:19.697793 tramp-get-connection-property (7) # process-buffer nil 16:13:19.697879 tramp-get-connection-property (7) # last-cmd-time (23638 12831 688608 245000) 16:13:19.697965 tramp-get-connection-property (7) # process-name nil 16:13:19.698047 tramp-get-connection-property (7) # remote-echo nil 16:13:19.698126 tramp-send-command (6) # \perl -e 'use Cwd "realpath";' ; echo tramp_exit_status $? 16:13:19.698207 tramp-get-connection-property (7) # process-name nil 16:13:19.698287 tramp-get-connection-property (7) # chunksize 0 16:13:19.698372 tramp-set-connection-property (7) # last-cmd-time (23638 12831 698346 135000) 16:13:19.698453 tramp-send-string (10) # \perl -e 'use Cwd "realpath";' ; echo tramp_exit_status $? 16:13:19.698532 tramp-get-connection-property (7) # process-buffer nil 16:13:19.698627 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.698703 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.703296 tramp-accept-process-output (10) # *tramp/sudo root@cielnosurge* run t tramp_exit_status 0 ///33fa052e8933ed0d43e05e92dd2ca7f3#$ 16:13:19.703413 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.703494 tramp-get-connection-property (7) # check-remote-echo nil 16:13:19.703578 tramp-wait-for-regexp (6) # tramp_exit_status 0 ///33fa052e8933ed0d43e05e92dd2ca7f3#$ 16:13:19.703698 tramp-get-connection-property (7) # process-buffer nil 16:13:19.703799 tramp-set-connection-property (7) # perl-cwd-realpath t 16:13:19.703880 tramp-set-connection-property (7) # perl \perl 16:13:19.703962 tramp-get-connection-property (7) # process-name nil 16:13:19.704044 tramp-get-connection-property (7) # scripts nil 16:13:19.704123 tramp-maybe-send-script (5) # Sending script =E2=80=98tramp_perl_file_name_all_completions=E2=80=99... 16:13:19.704213 tramp-get-connection-property (7) # perl \perl 16:13:19.704290 tramp-get-connection-property (7) # perl \perl 16:13:19.704378 tramp-get-connection-property (7) # process-name nil 16:13:19.704457 tramp-get-connection-property (7) # process-name nil 16:13:19.704536 tramp-get-connection-property (7) # process-buffer nil 16:13:19.704619 tramp-get-connection-property (7) # last-cmd-time (23638 12831 698346 135000) 16:13:19.704707 tramp-get-connection-property (7) # process-name nil 16:13:19.704790 tramp-get-connection-property (7) # remote-echo nil 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 nil 16:13:19.705597 tramp-get-connection-property (7) # check-remote-echo nil 16:13:21.402934 tramp-maybe-send-script (5) # Sending script =E2=80=98tramp_perl_file_name_all_completions=E2=80=99...failed > > Best regards, Michael.