From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 24 17:15:20 2019 Received: (at submit) by debbugs.gnu.org; 24 Jan 2019 22:15:21 +0000 Received: from localhost ([127.0.0.1]:44356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmnHM-0007FO-DQ for submit@debbugs.gnu.org; Thu, 24 Jan 2019 17:15:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmnHH-0007F3-Ln for submit@debbugs.gnu.org; Thu, 24 Jan 2019 17:15:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:43158) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmnHB-0003lD-IO for submit@debbugs.gnu.org; Thu, 24 Jan 2019 17:15:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmnHA-00021C-JV for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2019 17:15:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmnH8-0003ht-Ve for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2019 17:15:08 -0500 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:33215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmnH8-0003gJ-LZ for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2019 17:15:06 -0500 Received: by mail-io1-xd36.google.com with SMTP id t24so6173101ioi.0 for ; Thu, 24 Jan 2019 14:15:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=Xh4dHibOAom+Fr2xJkOZ8qxzt+FJetmJhYNPxwLG3rM=; b=lQBEFebOF5szAv1+jrYqVGTCI8TiiT6mQvMzphx/w87xv4DTpyOD2fPOKLkX9PqKUW ha91nqQVEgsV6jH99ZntcQR/G79PiFShyIokH8l57RgKb5iACaEApg5KN8l1T6FPLT+j AyTrlJ6GM8RmzOP0H3zvRN/8wztIoA9NBkFLotQ41no+buY8ocxlwybq+IMFRQRiMvHe S6VJDoNI8P4YMba+0amND9mbBkGwNATkAWUrgDCvZaHgFz+NNSvPEIlWQ7/8NF9m8gRg O+48lQdrx0VBWKPZ3LKu7fDm6CTreB0dqpa/8tjDD7s9vdou4iV8CU6HKiazxRMHySv8 vTqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=Xh4dHibOAom+Fr2xJkOZ8qxzt+FJetmJhYNPxwLG3rM=; b=uB1BXAPvzgbphfV3jcFKQxkrSQBvDtQ6E3pniFRNkvKpIgzzefW+2B7KiD6pDBifv4 DcbHgEw6vvmpzPPHPSsphB8oGK8t7IxasE6RyfYScAEUxgKLeG2L+uUcO6pbPI/QF3OD FjSTUc7FSymIKCmq9BCUme6rRlulkaUx50ARQdCDLW4TiXTlAvclO9iWuiPvWhDePpYx tr97UfHavgEkQBFXKBrfpqqgwwE05SubXUwhffpwJq6BNXyRPH4t4caBjLE2r6IeFrOD 7fVH1HVQsXvnEZhdI0dKhnjJjelIX0UchLFZGHgeRq3c4vBca0y2XBqqj+jwNCJ0ybAt WaoA== X-Gm-Message-State: AJcUukdnfVx1lV4dckMX32qyYrEp2Dj6VBlJ6rzJQ6ZvhgOTiU54rpg/ vQwQKdeHrRhmrpTcyYVqKUr2oDMP5yL81v/BWOg1lojlDuY= X-Google-Smtp-Source: AHgI3Ia4OX4FOUygVhHw9w36WWQK5PWd/Njx+ejWEXe3LQLW2iQXHhJs6urtWJuu8rn9YyZyoDNb4eR1hWImNIrLrLk= X-Received: by 2002:a5d:9696:: with SMTP id m22mr5116801ion.243.1548368101960; Thu, 24 Jan 2019 14:15:01 -0800 (PST) MIME-Version: 1.0 From: Allen Li Date: Thu, 24 Jan 2019 22:14:51 +0000 Message-ID: Subject: 26.1; Bash 5.0 breaks TRAMP sudo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d36 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I believe Bash 5.0 breaks TRAMP sudo in tramp-sh-handle-file-name-all-completions. Using Bash 5.0 and (find-file "/sudo::/") results in an error "Process has died". Setting tramp-verbose to 9 shows that it dies around here: 13:56:22.449785 tramp-maybe-send-script (5) # Sending script =E2=80=98tramp_perl_file_name_all_completions=E2=80=99... 13:56:22.449920 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" 2>/dev/null } 2>/dev/null; echo tramp_exit_status $? 13:56:25.428280 tramp-maybe-send-script (5) # Sending script =E2=80=98tramp_perl_file_name_all_completions=E2=80=99...failed Note that I cannot reproduce this from emacs -Q because out of the box, TRAMP sudo does not seem to call tramp-sh-handle-file-name-all-completions and I don't have time right now to figure out what setting enables that code path. Switching my /bin/sh to Dash instead of Bash 5.0 immediately fixed the problem, which strongly led me to suspect some subtle change in Bash 5.0 broke this. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-str= ong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 28 03:19:55 2019 Received: (at 34192) by debbugs.gnu.org; 28 Jan 2019 08:19:55 +0000 Received: from localhost ([127.0.0.1]:48197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go295-0002hf-2E for submit@debbugs.gnu.org; Mon, 28 Jan 2019 03:19:55 -0500 Received: from mout.gmx.net ([212.227.17.20]:42037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go292-0002hS-Nn for 34192@debbugs.gnu.org; Mon, 28 Jan 2019 03:19:53 -0500 Received: from detlef.gmx.de ([79.140.118.103]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MUpI8-1ggLaW4BA4-00YDYY; Mon, 28 Jan 2019 09:19:45 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: Date: Mon, 28 Jan 2019 09:19:43 +0100 In-Reply-To: (Allen Li's message of "Thu, 24 Jan 2019 22:14:51 +0000") Message-ID: <87y375gpnk.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:m2j1dYcRj9DYID/j25PLejOT9+APqazarCXnaLFrLo1Q90d19Xw dQZ8W84lUR6qY/mdFh+oebJyrJL6CrTfQ348WTfnyVvpYmWulaozpQuIRI8Xuqrwyxa3dWA +8vD9j1Xb0qsKhcisKk+tVk+cEco/vYRFK+tKk62hEdA8/jjdzcFJGtSV33aQIRRoB2pQTa Bmpbn13//FJACtroo05SQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:IvLOWAX7O0o=:MPbbhnQgo5tcfQDkbdLbqq A3SaYD2olTVFWa25DRugLTJfRdvwFf1ZUodMhhuYXoJVbd8D3BOHJSVefjWlbbWix2ADXpmeJ knf4MLXQQ+7VI8+6eG8ih2MpPHDeBKvXeECyYqaEWKT0QcrqIVA9pTs27LgqBpOff3OGAX/CT Z3oKGeV8g1msCrRsAgGYetwCibeYiEOL/ecDXkT9URMPXawVU43QBGMZY5CeYdxqcBX560vHo DravrAEfkT31wrYkOCDI9kJnY4G+zI2AppkqDhIDbyQazX8kODF1ZgC53eAVBu3YghzNJnmnm DUi0HEU+PhHp0t+bHb5wDgsc/yWoWKRmKo9ZWu7rb9DDzJc0sVVfHgV6HzoH0sEHAcY7jLdzU TsDNAVUJ7AbobJQn9qcpV9DKHQT5Mzo88LDVbqLYzGelA95lO1bc16ZWVNKhhOdgs2GZ8waB+ fXB7QaW6C3SFCHOSlacBPsNSr+CJ8vKE5TNpDZoB09OK2ib/7jIN5tsHXFUDbtCYo/PDHboxC 1EmxFjx+Sgqo9jFmI3rCRXRugKu1raeEKrbACLx8XiSl1F1OGHFGvdFiuFrMq3QsdXaYRgo7a fEsk6PV7eWWP1HlyBondI3q4q9SsyMY+1WMyy431bV/LBjIlbyLr1yDzjL27lpX9a3SpcJHV2 5yIT7ComddYpa44whrx+ecwGinyUHFzY5uRSS4/WwcV0sncZ975yldwd5gZL2t1UU8OJwrbIh pwZwj6mP0KnJXAmX7jIFx3UXmudYHPy9mncNdOOVetOgmKfklwmoALm2584xZonqqU/XyY58w 7deZ9daYpTq5PQTjreWt81qbQyW44UOxUlXBI4NPNN3o5s0bVjxm+UA4Qz959jkCUaZqKJAIH R7oQHu99lspw7BzT80RncMSUV3B8YinzS1goTpTXbW6ucfdIkr0y+U/E6WcyxIMkjKuts2+1Z QeF5pu+fXIA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Allen Li writes: Hi Allen, > I believe Bash 5.0 breaks TRAMP sudo in > tramp-sh-handle-file-name-all-completions. > > Using Bash 5.0 and (find-file "/sudo::/") results in an error "Process > has died". Setting tramp-verbose to 9 shows that it dies around here: Unfortunately, I have no bash 5.0 available. Could you pls eval the following lines in a bash 5.0 terminal: --8<---------------cut here---------------start------------->8--- tramp_perl_file_name_all_completions () { \perl -e ' opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); @files = readdir(d); closedir(d); foreach $f (@files) { if (-d "$ARGV[0]/$f") { print "$f/\n"; } else { print "$f\n"; } } print "ok\n" ' "$1" 2>/dev/null }; echo tramp_exit_status $? --8<---------------cut here---------------end--------------->8--- Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 28 03:58:48 2019 Received: (at 34192) by debbugs.gnu.org; 28 Jan 2019 08:58:48 +0000 Received: from localhost ([127.0.0.1]:48224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go2ki-0003f3-Ie for submit@debbugs.gnu.org; Mon, 28 Jan 2019 03:58:48 -0500 Received: from mail-io1-f46.google.com ([209.85.166.46]:42763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go2kf-0003ep-TL for 34192@debbugs.gnu.org; Mon, 28 Jan 2019 03:58:46 -0500 Received: by mail-io1-f46.google.com with SMTP id x6so12789835ioa.9 for <34192@debbugs.gnu.org>; Mon, 28 Jan 2019 00:58:45 -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=mNdjNIl5pAG0zfphb95e4lVFkdRNPP6uSxPJ6LWgMvg=; b=DZYcAjQdOmepj6X4IHMMyR4XwEmchfSpxVUpRCP4oHa7eo5dX+AS9yxLa3L/6KAAZN yXt0X6nmqXkJfvUfqhxVanAPZV04gnC+qTNo/atM7czK3DPUJy9gN1QuXAcl9/0JhTub eOPWKS6yAJJDd4VdY/ej9YlP3A7w/1g/05EvNPWjQDnMkjfQ9zUr42gUucCcEe1Csctv TR8MlZppxew6wGd3Y0mN1EVyYBUqboocm6oOblvXCXk1RU2gw0y8GITqHZHQ9nYtdLJu vtVaNnuIbEBhEJp4nCnT8P1mPfJWuwQv/yPrylw+reZ4OIYGOo5Au4elHK2+eTYZezqq CdIg== 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=mNdjNIl5pAG0zfphb95e4lVFkdRNPP6uSxPJ6LWgMvg=; b=M7cKwRNzpvMMDh1fSLVnTvdf1Vd9qnU+H4+YZ8VGW28J/rkrrQ5SMbyUU244Vs9ajn xA/p9VhVp8c4HsM+VVsvnHiUeV+vY35FoSpgRQIR3YNBaGQbk2bjvMUVe6d7suTyvK0q JthBx8X9hPDKDAM/IZF4KvDWP+/LNxnnbzaEMmpSZU+xbubDr+v7mZjDIx695crtGLQM z/Vbxl2GJF6eZ/KRgk0GTE9judCdeOr+4CmQsSk85XXS9KZJMUi5aIEjmId+FSFm7LFh 4cmOvP5U3cPA0jtETU75WKqnMihfNcuT6/Qx+ow2W8of05fbRW/H8KEsy+cHABUkjyH7 fa+Q== X-Gm-Message-State: AJcUukdIIo2y5x0rzy17idVtumfNLD3MFc1fReXLegWXJd44iOuuUNl7 yZMzvVBIWV+jUi+Fz4dc6JKgMlcEadOgVWJBejUJuA== X-Google-Smtp-Source: AHgI3IYzyQzlF1oW/5s6zndRJMj+Z3OqUUhYf4qwf4JgNi/bPjq+S1O1S00IMJpXd4GyFswJFW8HAdU1xu3kswVrToc= X-Received: by 2002:a6b:b6c6:: with SMTP id g189mr12326151iof.54.1548665920045; Mon, 28 Jan 2019 00:58:40 -0800 (PST) MIME-Version: 1.0 References: <87y375gpnk.fsf@gmx.de> In-Reply-To: <87y375gpnk.fsf@gmx.de> From: Allen Li Date: Mon, 28 Jan 2019 08:58:29 +0000 Message-ID: Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo To: Michael Albinus Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, Jan 28, 2019 at 8:19 AM Michael Albinus wrote: > > Allen Li writes: > > Hi Allen, > > > I believe Bash 5.0 breaks TRAMP sudo in > > tramp-sh-handle-file-name-all-completions. > > > > Using Bash 5.0 and (find-file "/sudo::/") results in an error "Process > > has died". Setting tramp-verbose to 9 shows that it dies around here: > > Unfortunately, I have no bash 5.0 available. Could you pls eval the > following lines in a bash 5.0 terminal: > > --8<---------------cut here---------------start------------->8--- > tramp_perl_file_name_all_completions () { > \perl -e ' > opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); > @files = readdir(d); closedir(d); > foreach $f (@files) { > if (-d "$ARGV[0]/$f") { > print "$f/\n"; > } > else { > print "$f\n"; > } > } > print "ok\n" > ' "$1" 2>/dev/null > }; echo tramp_exit_status $? > --8<---------------cut here---------------end--------------->8--- I get tramp_exit_status 0 as expected, but I think tramp_perl_file_name_all_completions may be a red herring, since when I tried using Edebug on tramp-sh-handle-file-name-all-completions, I get the "Process has died" error after some time irrespective of my code stepping. > > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 28 04:12:32 2019 Received: (at 34192) by debbugs.gnu.org; 28 Jan 2019 09:12:33 +0000 Received: from localhost ([127.0.0.1]:48236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go2y0-000408-NI for submit@debbugs.gnu.org; Mon, 28 Jan 2019 04:12:32 -0500 Received: from mout.gmx.net ([212.227.17.21]:41751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1go2xz-0003zv-E3 for 34192@debbugs.gnu.org; Mon, 28 Jan 2019 04:12:31 -0500 Received: from detlef.gmx.de ([79.140.118.103]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lyi0B-1hHJ8z0fYN-0165QU; Mon, 28 Jan 2019 10:12:22 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> Date: Mon, 28 Jan 2019 10:12:20 +0100 In-Reply-To: (Allen Li's message of "Mon, 28 Jan 2019 08:58:29 +0000") Message-ID: <87pnshgn7v.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:L5ykhhG2M8Fs8waaihDEp55CJEgWSF/HgGUQcpdRMTbXwE2fSUw GEOeY4aBsE2n1bBR3ahvPPqFrW9eKAUhDeQd/EqV0H+i6N8Qw78q13bvIrFeSxLXIstNmjO qCHBPuRFKv627cBVYU0NfhnqqhD9ywOBOOnH6Mf4xdu79GcU1+VFZ/XrCWdEko/qCN5Q0Ff YoZ6tf7toPyTlLltFRzRg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:IXmGmtPh/ww=:msGmapP+jO6ZtW4bLICtHu L4GwTq5kmhndxpETfICe1Zc+Yv1zZsGOHT1Pd+y5/SXXf9++6aUPK3n13enidgOH0cbIibN/G NAmuP0S7/lsDg2cW50fWZLEePJc1sWEL46IOfsgP11yYycmPBRwarsncN+lDiiZ2i0RGamXTT UbLXtCX5e2inWGr1jxp77EH0fC+Ld4hOAqt+EQa6eiBVfeVWqNmr8NLAT/UyUgYqzsCvLJUtp jguF/CK3npYoCb8eV8TYapBFFiwHSRaH8xL48Y5aQyfaViGooJT7q9ekSr5RaFNLNzzN2dF6M 5mj2eGXajIhL74YtwYgM8qiweZzOc9fOhGlavkeRQce9OY/JDiUk0VbsZRKqRziD0gg86imZT T38GncJT/3ysXFbhrwKymwXywV4tgIcIgMQtUrplqwoaZXrj4Ma1gi6dP75nAT2cXBxVKSt6S egTd8wjrB5JiinMZDTx4RurV5cbZLIiaVEBrRUd4Inlg41X3NJAJmOhbrbggWRVU1O6HpDTi4 7D6dRt+9qHuu3dTVLBjyUR1lXn4AEkw3cgjdSn029b8Ji2mx+6tv7f9ThRQxLDkStwT4Manvr 8JHW1KyFbkVcCpfoKbChvVTHimH8NKJGpS1Am42MmeyYD6fBAFeKcxwxikLDXLIbDiYDoBDE4 31bCToN/R5fv+vUtKbknwxArySHRdDVSBvHxOdvh0uNFOzf1MMcXk3+d80uNmI0dFnxnvFsKD +0mek8gJ1byAG8jWsZSbb8urQOEvciw161cweeaCM6xfr8/dWab94LeIlmk5kLciiYSUjy/EZ oq8FHthyDMZnROKwTWh1PbmbJ6tqmErICRB8cZSopwtYpeoGCp9rAHgp/hDo0zTjhfLOSsYaS dqMxM3SrPV1/v8IoC+0lvmYCF+us37M1TPSdWsVkSF0nV8NR24z4CE9jN4LEpUrfkN9kkesYo Ozr05gf9hFA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Allen Li writes: Hi Allen, > I get tramp_exit_status 0 as expected, but I think > tramp_perl_file_name_all_completions may be a red herring, since when > I tried using Edebug on tramp-sh-handle-file-name-all-completions, I > get the "Process has died" error after some time irrespective of my > code stepping. So could you pls call this shell function, once it has been declared: # tramp_perl_file_name_all_completions `pwd` Instead of `pwd` you could use any directory path. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 29 00:49:10 2019 Received: (at 34192) by debbugs.gnu.org; 29 Jan 2019 05:49:10 +0000 Received: from localhost ([127.0.0.1]:49675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goMGj-00025V-Sa for submit@debbugs.gnu.org; Tue, 29 Jan 2019 00:49:10 -0500 Received: from mail-it1-f173.google.com ([209.85.166.173]:35767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goMGg-000257-Sz for 34192@debbugs.gnu.org; Tue, 29 Jan 2019 00:49:08 -0500 Received: by mail-it1-f173.google.com with SMTP id p197so2316727itp.0 for <34192@debbugs.gnu.org>; Mon, 28 Jan 2019 21:49:06 -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=uLoYBPkgaId6vakpA+84Lr78lBf3OpaP5aCCMbHCXWs=; b=R4P4Mg1z8TFyiWkAlC149kbdIkQghgESyIKwtxKmZEL4giynQXejgg8t7H2B24tvzp zbL1wW6Dl2sfIueYxNI/kcwy+Y8FP27siCJgfm1bGZXha6gJGa/X9DuHB8YpM3FZKu7r XQ33d/P6Fx0BeivEXiQjGDEcIkbFJFXsWyHgZk4DxLT0ohac49HgTJepwJ6ES6wPc6su Wg9RMppJMTfnVQxZDcF25VvTu6lvnbWcwTyxejIzyxxVkF/iBu6xf4d8Pt1a4aA8RK6R 4Q8m90qvbXBSFIaPEmkF0tq1KWpKa6LLeIk9dAAhtYMZq5D8NkJA8mUDeYWUnOGAsSZR qYGg== 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=uLoYBPkgaId6vakpA+84Lr78lBf3OpaP5aCCMbHCXWs=; b=fyrmm+GzMTmEXdL1qvS8AuEDDazjZAOlbCyVZTlWnJU5bSaElnKL/sPvChqepYhH6e WdStIiC1zRadYWozEUxkNumjFd06I8gZCnB7nH5rNCd8JFa5IYOU79OYA5i5p1I0lwIg Wx+ccKw5A6Jl+UYIq5xDRltBK1xx6ACUL2TcmbLBgAr3/HWG8Wwc81ZBRcNhuJLnxIkU azu6zRYnQlr9eGAzJuJWDtPqlDleY0HJkcB22/3ErJSVVt2wrl93jDqcxMGeeaMjX5Bx 6rSg+yNimjAhN9Z1vToUTW8AgZ8vCMWsdfyaqNWYXcqTnd20TOXnS0JL0/zl/sN2DtnV MMkw== X-Gm-Message-State: AJcUukeMyY0Papux48ZzYuK/TR3FVluwLGLe33spKBSB3UEqI+0DBTZY ONVgPdRT46c3as8bvv/0+K66We5StG5i2z5WO4UYjQ== X-Google-Smtp-Source: ALg8bN6QujgUvr5OSCBv8I399sar3i5nNPPi2taA4jjc1L9gXasiPP9+35oJoCA1zpVf5f6Ho7kYWEdYfy6pHyOBvOE= X-Received: by 2002:a24:53c9:: with SMTP id n192mr11519661itb.8.1548740940660; Mon, 28 Jan 2019 21:49:00 -0800 (PST) MIME-Version: 1.0 References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> In-Reply-To: <87pnshgn7v.fsf@gmx.de> From: Allen Li Date: Tue, 29 Jan 2019 05:48:49 +0000 Message-ID: Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo To: Michael Albinus Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, Jan 28, 2019 at 9:12 AM Michael Albinus wrote: > > Allen Li writes: > > Hi Allen, > > > I get tramp_exit_status 0 as expected, but I think > > tramp_perl_file_name_all_completions may be a red herring, since when > > I tried using Edebug on tramp-sh-handle-file-name-all-completions, I > > get the "Process has died" error after some time irrespective of my > > code stepping. > > So could you pls call this shell function, once it has been declared: > > # tramp_perl_file_name_all_completions `pwd` Running that didn't yield any insights. in both normal bash and bash --posix. I also tried sending it via stdin instead of an interactive shell, all with no luck. I tried monkey patching tramp-wait-for-regexp to see what the exit status is. (defun tramp-wait-for-regexp (proc timeout regexp) "Wait for a REGEXP to appear from process PROC within TIMEOUT seconds. Expects the output of PROC to be sent to the current buffer. Returns the string that matched, or nil. Waits indefinitely if TIMEOUT is nil." (with-current-buffer (process-buffer proc) (let ((found (tramp-check-for-regexp proc regexp))) (cond (timeout (with-timeout (timeout) (while (not found) (tramp-accept-process-output proc 1) (unless (process-live-p proc) (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp))))) (t (while (not found) (tramp-accept-process-output proc 1) (unless (process-live-p proc) (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp))))) (tramp-message proc 6 "\n%s" (buffer-string)) (when (not found) (if timeout (tramp-error proc 'file-error "[[Regexp `%s' not found in %d secs]]" regexp timeout) (tramp-error proc 'file-error "[[Regexp `%s' not found]]" regexp))) found))) In my Messages buffer, I found @@@@@@@@@@@ DEAD 139 A search tells me that this is SIGSEGV. The corresponding backtrace: (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (while (not found) (tramp-accept-process-output proc 1) (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp))) (cond (timeout (let ((-with-timeout-value- (catch 'timeout (let* ((-with-timeout-timer- (run-with-timer timeout nil (function (lambda nil (throw 'timeout 'timeout))))) (with-timeout-timers (cons -with-timeout-timer- with-timeout-timers))) (unwind-protect (progn (while (not found) (tramp-accept-process-output proc 1) (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp)))) (cancel-timer -with-timeout-timer-)))))) (if (eq -with-timeout-value- 'timeout) (progn) -with-timeout-value-))) (t (while (not found) (tramp-accept-process-output proc 1) (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp))))) (let ((found (tramp-check-for-regexp proc regexp))) (cond (timeout (let ((-with-timeout-value- (catch 'timeout (let* ((-with-timeout-timer- (run-with-timer timeout nil (function (lambda nil (throw 'timeout 'timeout))))) (with-timeout-timers (cons -with-timeout-timer- with-timeout-timers))) (unwind-protect (progn (while (not found) (tramp-accept-process-output proc 1) (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp)))) (cancel-timer -with-timeout-timer-)))))) (if (eq -with-timeout-value- 'timeout) (progn) -with-timeout-value-))) (t (while (not found) (tramp-accept-process-output proc 1) (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp))))) (tramp-message proc 6 "\n%s" (buffer-string)) (if (not found) (progn (if timeout (tramp-error proc 'file-error "[[Regexp `%s' not found in %d secs]]" regexp timeout) (tramp-error proc 'file-error "[[Regexp `%s' not found]]" regexp)))) found) (save-current-buffer (set-buffer (process-buffer proc)) (let ((found (tramp-check-for-regexp proc regexp))) (cond (timeout (let ((-with-timeout-value- (catch 'timeout (let* ((-with-timeout-timer- (run-with-timer timeout nil (function (lambda nil (throw 'timeout 'timeout))))) (with-timeout-timers (cons -with-timeout-timer- with-timeout-timers))) (unwind-protect (progn (while (not found) (tramp-accept-process-output proc 1) (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp)))) (cancel-timer -with-timeout-timer-)))))) (if (eq -with-timeout-value- 'timeout) (progn) -with-timeout-value-))) (t (while (not found) (tramp-accept-process-output proc 1) (if (process-live-p proc) nil (message "@@@@@@@@@@@ DEAD %d" (process-exit-status proc)) (debug) (tramp-error-with-buffer nil proc 'file-error "Process has died")) (setq found (tramp-check-for-regexp proc regexp))))) (tramp-message proc 6 "\n%s" (buffer-string)) (if (not found) (progn (if timeout (tramp-error proc 'file-error "[[Regexp `%s' not found in %d secs]]" regexp timeout) (tramp-error proc 'file-error "[[Regexp `%s' not found]]" regexp)))) found)) tramp-wait-for-regexp(# nil "\\(^\\|\0\\)[^#$\n]*///e7c116e27b816fdfc1b43f2c9e5a951b#\\$\\(\033[[0-9]+n\\)?\015?$") tramp-wait-for-output(#) tramp-send-command((tramp-file-name "sudo" #("root" 0 4 (tramp-default t)) nil "cielnosurge" nil "/" nil) "tramp_perl_file_name_all_completions () {\n\\perl -e '\nopendir(d, $ARGV[0]) || die(\"$ARGV[0]: $!\\nfail\\n\");\n@files = readdir(d); closedir(d);\nforeach $f (@files) {\n if (-d \"$ARGV[0]/$f\") {\n print \"$f/\\n\";\n }\n else {\n print \"$f\\n\";\n }\n}\nprint \"ok\\n\"\n' \"$1\" 2>/dev/null\n} 2>/dev/null; echo tramp_exit_status $?") tramp-send-command-and-check((tramp-file-name "sudo" #("root" 0 4 (tramp-default t)) nil "cielnosurge" nil "/" nil) "tramp_perl_file_name_all_completions () {\n\\perl -e '\nopendir(d, $ARGV[0]) || die(\"$ARGV[0]: $!\\nfail\\n\");\n@files = readdir(d); closedir(d);\nforeach $f (@files) {\n if (-d \"$ARGV[0]/$f\") {\n print \"$f/\\n\";\n }\n else {\n print \"$f\\n\";\n }\n}\nprint \"ok\\n\"\n' \"$1\" 2>/dev/null\n}") tramp-barf-unless-okay((tramp-file-name "sudo" #("root" 0 4 (tramp-default t)) nil "cielnosurge" nil "/" nil) "tramp_perl_file_name_all_completions () {\n\\perl -e '\nopendir(d, $ARGV[0]) || die(\"$ARGV[0]: $!\\nfail\\n\");\n@files = readdir(d); closedir(d);\nforeach $f (@files) {\n if (-d \"$ARGV[0]/$f\") {\n print \"$f/\\n\";\n }\n else {\n print \"$f\\n\";\n }\n}\nprint \"ok\\n\"\n' \"$1\" 2>/dev/null\n}" "Script %s sending failed" "tramp_perl_file_name_all_completions") tramp-maybe-send-script((tramp-file-name "sudo" #("root" 0 4 (tramp-default t)) nil "cielnosurge" nil "/" nil) "%s -e '\nopendir(d, $ARGV[0]) || die(\"$ARGV[0]: $!\\nfail\\n\");\n@files = readdir(d); closedir(d);\nforeach $f (@files) {\n if (-d \"$ARGV[0]/$f\") {\n print \"$f/\\n\";\n }\n else {\n print \"$f\\n\";\n }\n}\nprint \"ok\\n\"\n' \"$1\" 2>/dev/null" "tramp_perl_file_name_all_completions") tramp-sh-handle-file-name-all-completions("" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t))) apply(tramp-sh-handle-file-name-all-completions ("" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t)))) tramp-sh-file-name-handler(file-name-all-completions "" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t))) apply(tramp-sh-file-name-handler file-name-all-completions ("" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t)))) tramp-file-name-handler(file-name-all-completions "" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t))) file-name-all-completions("" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t))) tramp-handle-file-name-completion("" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t)) file-exists-p) apply(tramp-handle-file-name-completion ("" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t)) file-exists-p)) tramp-sh-file-name-handler(file-name-completion "" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t)) file-exists-p) apply(tramp-sh-file-name-handler file-name-completion ("" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t)) file-exists-p)) tramp-file-name-handler(file-name-completion "" #("/sudo:root@cielnosurge:/" 6 10 (tramp-default t)) file-exists-p) > > Instead of `pwd` you could use any directory path. > > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 29 05:04:37 2019 Received: (at 34192) by debbugs.gnu.org; 29 Jan 2019 10:04:37 +0000 Received: from localhost ([127.0.0.1]:49720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goQFw-0008CJ-SN for submit@debbugs.gnu.org; Tue, 29 Jan 2019 05:04:37 -0500 Received: from mout.gmx.net ([212.227.17.22]:33621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goQFu-0008C4-Rz for 34192@debbugs.gnu.org; Tue, 29 Jan 2019 05:04:35 -0500 Received: from detlef.gmx.de ([212.86.44.195]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MSuYT-1gh1jx32MX-00RtGa; Tue, 29 Jan 2019 11:04:24 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> Date: Tue, 29 Jan 2019 11:04:21 +0100 In-Reply-To: (Allen Li's message of "Tue, 29 Jan 2019 05:48:49 +0000") Message-ID: <87fttbn5ju.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:gh8ND9xlVFObb98tQutp+d61rAfrBeIGdLJw1YxeGLHeP+k2hOA mJKTTnY2/Tlo/BEnerjP7IkDAAZYs7CWUHxWoTo8RQMt57anXYwl/dl+WUTKA5Bv6E8drkm piYx4VsD+tvgqSy67tGHWPLdhLyZ0lhM5rJd4qMUTIP0P8BSLFXR5IJQnScfwf+i5SX6ye7 stmDUmGYOrOvzgKrKvF8A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:COnPmqINaBo=:KIfS7k0tMOkiVTbYx/d1F/ t9bqJhOMMp6SwVAwVyfGLV+dmhslRK/rIEUYkcuZmIQCRHNdD02bmrlGDeAAC/45kPlba5LAw U/pgOJjiRR6fZ7Vb91iysDhHMbz3n9vaVF5aJ2HnYbTf/N1Ee6+WzPYnZbDl9KhuBb+j2Vg+e AhSLKCX7vQapx/iqdMnBcQTyhD+SE9aEqW4z3WXs1PR2ogtbDHU4RwrgQA6mOB+24VzuRyV74 BRlAeK6BdAVBGiQlaGQr0X7tW9EKY9WZGqwP4NKdf53kOpQMaBbguO+FHT6v+eJSAsn+ZHOnM MBtIiWhKLZIMqlo9546rFd8VIoCZmtEzA0RqI6lEXlIqq0oFZY8zwmCW4MOzmAI1d+eSUUT+U Q6TOvFEzMvGCO6IkJ7kcXJJ/UENLTdcd4TJEAYbUvYqLqCOVVaoviUddcmA0aIdfs8pcb/cIf agPFEEBVSBADi0vUvF/xcKl46i8IYZsa+Kr65U+mTzAo5f0flKh7NURXOPYj1RDVjGEZ8vAaJ Rco2bsF69rbfB4upbxNlDH7avqFHwiqTqjN+PT0bY6k4R9whzWzE8lSy7rdJlBPr20JqoyCJO wX1aEwlrEm52m5V0s80DMQ0b7pyWITzlBYE+ZWSQ0KsefePx/JAENxlFbdhSqnxwsoEBRJioR V50+yd8bvrDGaza+HhPjCANndTX60AMRUtrzQ5EB05coDgM8YOen97Wv8gMEcHXASrxnOof+Z ptt4lDlQY3eu+elXEr6x29iQY7jVqd6KpmVmKGPOcIxEj2dKrQHdmLLO9A2gGzAOiQiTneywm NlOs+CnZELj78YdSlFA17Ie9GgJ01UmwykZdR+aII6uQh8CIUtxPBxPcSHAYHzNyBz5Gx0wFN nvJZ2JSaEpM2tcwpMFNqLI/Y7QfKdytUbV+5HpX8g5pBXtW1mpUeXAu29U18zk X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Allen Li writes: Hi Allen, > I tried monkey patching tramp-wait-for-regexp to see what the exit status 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: --=-=-= Content-Type: text/plain Content-Disposition: inline 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 --=-=-= Content-Type: text/plain Recompile tramp-sh.el, and rerun the test with tramp-verbose 10. Your patch isn't needed in this scenario. Best regards, Michael. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 02 19:22:16 2019 Received: (at 34192) by debbugs.gnu.org; 3 Feb 2019 00:22:16 +0000 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 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 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) MIME-Version: 1.0 References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> In-Reply-To: <87fttbn5ju.fsf@gmx.de> From: Allen Li Date: Sun, 3 Feb 2019 00:21:56 +0000 Message-ID: Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo To: Michael Albinus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 04 06:53:46 2019 Received: (at 34192) by debbugs.gnu.org; 4 Feb 2019 11:53:46 +0000 Received: from localhost ([127.0.0.1]:58176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqcos-0001XD-7f for submit@debbugs.gnu.org; Mon, 04 Feb 2019 06:53:46 -0500 Received: from mout.gmx.net ([212.227.15.19]:57925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqcoq-0001X0-0u for 34192@debbugs.gnu.org; Mon, 04 Feb 2019 06:53:44 -0500 Received: from detlef.gmx.de ([212.86.43.81]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MIe0O-1goQxK3NW4-002Hhp; Mon, 04 Feb 2019 12:53:34 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> Date: Mon, 04 Feb 2019 12:53:33 +0100 In-Reply-To: (Allen Li's message of "Sun, 3 Feb 2019 00:21:56 +0000") Message-ID: <875ztzzs5e.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:bYPYxMLw+uioijzKIPx2OoxzoVJRT6qHf/mbPNDKzEF+1PUHuoR RtpmPZbzxp20mF59N6ordBL7S7+Gx2D3H1TWeaAZfHlUxNtOfZMV9fVXms59PtkNIRP0qMP YcJybFlUxZLRbVNV6uVxvumEowqJF5pcOKStvUQnZ8W6ZcxhOz28yQBGhqVTuVHugFmCaCE qqVbXj8WngK/7SSob2gGw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:MclvtdJ+9yk=:B/68VMpM4rV0o+Ukq7m18F XCVZJ9s1Tm9dUTv+4v4Hgn0sackiwiyHlkeTKJu6nI4kXtVebz3Cr6febRqNv25sjJ/4e8700 /63HptthdhLY1vLyHarsMLC/012jtyad8Siv7t4c7zLw0gs8yFT9FEW1338sN04LWkw1V4I4i K24O1PjvC/b0MSVgj5D62yR73chdUTckO5u3o/dXbQldtcxtFOIgF+qAnvEcyqPt2HC7DONU6 L25Hs//z1ldXkGJCRR22Idf7B7t6q1v/VlvhS7VKAz+/iMZG5hV1/zjuprZM4DMVXYFGcxGFl 5GBt3zgK2Tpz8sM+r4ln2lM0vJeeTDPEqZ3EZ2j8PSClXyWH+IcTniGnrpfnS/r/5n1VLyXEA 5XTms33eYwAN67AI170xdGT1nDBsshzhTsufrlLjQQEQtbWoq24BDw8tz0Zaw09y7sORMF/er y/pjtYBhnXkoONCniAaATolVjBRJpog/hGGq3UItaTk2+DjqYtiZDlPjhECM0LhIpvCx5WOYT JXewHGcjWKR3OMwIQSRfCAi10yhM4OG+jHnoEUNFq6oCLxbxUDqgkPpfpa5k9JIJOVrnjqPZJ 7Ie+9lQV6H5lAEYjnManPhkBV0mL6stt+CD59+Q2RhZR7enH24tvaScTL3EeZ7prrkOqEAgWW 8TM2fjDhgucKLfR10KbDG7QUHZnQWQ8h4L+oGK1KthL4SILvN6p1eakTKgwI3STaZjNP/llmM oaYcpVobkw/4gogYyPZAEpNYAdgb8X0ebSzkOFB6/QcdhcxnV4GbBKT1+/r4+w163h56UnQ+e lZCkriD7NOmUUJFB9DgfCCRuHyBFnoMy+SdSOS9cMIWPvyfnzuLPN+1H+4pJLJbfdfqgqbQ0y C8ndLKiSHDqvBu6X+IVqGydrcJFThpRgKLfkajOvLpmLn/zWfCba8y0tSpPbosERn/5E2eTau ur4m3+FrIiQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 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 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* buff= er? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 07 02:04:30 2019 Received: (at 34192) by debbugs.gnu.org; 7 Feb 2019 07:04:30 +0000 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 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 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) MIME-Version: 1.0 References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> In-Reply-To: <875ztzzs5e.fsf@gmx.de> From: Allen Li Date: Thu, 7 Feb 2019 07:04:11 +0000 Message-ID: Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo To: Michael Albinus Content-Type: multipart/mixed; boundary="000000000000ae54d50581487321" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 07 04:22:47 2019 Received: (at 34192) by debbugs.gnu.org; 7 Feb 2019 09:22:47 +0000 Received: from localhost ([127.0.0.1]:36548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grftP-0007Sn-7p for submit@debbugs.gnu.org; Thu, 07 Feb 2019 04:22:47 -0500 Received: from mout.gmx.net ([212.227.15.18]:44379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grftN-0007SX-GK for 34192@debbugs.gnu.org; Thu, 07 Feb 2019 04:22:46 -0500 Received: from detlef.gmx.de ([213.220.158.98]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MbfnB-1gapxY48sn-00Izdu; Thu, 07 Feb 2019 10:22:38 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> Date: Thu, 07 Feb 2019 10:22:34 +0100 In-Reply-To: (Allen Li's message of "Thu, 7 Feb 2019 07:04:11 +0000") Message-ID: <87bm3oar6t.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:HWld7vDg1lL/pNoO9Io5Nn6gdn7zO7p7zmCOlVv62tI7Rnimy4K 5oT/NHIZ2Cf1KyQMkBzhbILpLsRi788wqd0tm+lw5EqK5wTNEbgF/mxb720tjqYiZo+LDQC 44R4OJiUYjqmDz4jYJ1bLJIwGZio88CvqwvSxiWeFE6K0XDs0MeGgq4c6TCnfGaKct9uc/9 pauNe8JaauXfHh4NrBvmA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Nd/hf4EWhDw=:hqhGH9CZ/fcxluWBUfPsPW O6Qmrq1ywEhjRj2G8WZJ9wWOjZ35xveOZzxFswfPcKp17JzsOWuKNuTkInN1vN1hWw0O9ma+e 2ESDd/LuJ5ntAWiTr/oSP+xROSTeKWVcKXZkNIjvWWD4i7OXhMWOQJQ8n0CwBqdLspq54MUID QyY4YgQ4sRLuL658FeQzxcX6i6yl693HhrnYPVcERyDUhaJcM8jcZN3AF/tm36WsbhEg7boUi A9bGCfeeyhznw+/GQi9r51+pavmuiLw1H+xGUc2oDbT9oJrv/+fifHolsoOh5YBxQf2b4JxOl UbhLCvk4aVYr0HadSUTp874762uHOo7VO3Pr8I9YKHAs/1/QqKk6pwBkkB+GA4sIIm5cHfDTR u0NIXcTL6LTP/LCwkCvNumSX7WDBNnHg4ltiyzqxRrCLIGhoF7Ly9ykjk052MDagzcfTm6w1q LRUDFs5v8vWCYhCwz1wTf0lXhWjETNRWKPLDE8X2sgviw7Y24ODBkGAg0kcSzNnpydduFwJ39 NfZB0LSybD2ha+uVp8wYtB+M22cKFzBT9B/snfvKhErNBmVbwLv+0Kd6+PBYbwfInL/6ctRyg KZ2Tq/PVh/FwmgDNihq5RLyrDSCaQcr67nxAY5nNIAQJ0MIs/0wCkPxmzpNI2nzMghzz6f468 ynbB6HJ5nq93PXdeLPHpF+TlgoKdx0tz2tPwIaWqapol0PgDNs4JClJJceyyC8rch0h1PYMJb jqaL5leM+qhnLQCM3ea1txfIKfeL4MYOsXz6r3hZLzRlVhgARwBu0BV/iuABQyB6LcjCLlXMf Wafu0fGoYdFiFTBQskVqaDCIKbrb6He3p9/TrAZE/pisglhG04ae3OCR+AvCn3DtW4k2MpOnp yPGBizAp0w7pz4xW4FV1nimFaJIsen1dAmYvs7D/NxNL6lZrREIv0q5XIboDAzxU8c75Yv7mL hF+cjXRCKeA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Allen Li writes: Hi Allen, > I finally traced the problem down to setting tramp-histfile-override to t. > > Apparently, Bash 5.0 doesn't like HISTSIZE=0. Changing it to > HISTSIZE=1 fixes the error. Is this new in bash 5.0? I have installed GNU bash 4.4.19, and its info manual says: --8<---------------cut here---------------start------------->8--- 'HISTSIZE' The maximum number of commands to remember on the history list. If the value is 0, commands are not saved in the history list. Numeric values less than zero result in every command being saved on the history list (there is no limit). The shell sets the default value to 500 after reading any startup files. --8<---------------cut here---------------end--------------->8--- Hmm, there's exactly the same text in https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz/bash-5.0/doc/bash.info Before changing Tramp, I'd like to understand what's up. > Reproduce: > > 1. emacs -Q > 2. (setq tramp-histfile-override t) > 3. C-x C-f /sudo::/ TAB RET Do you have some special settings in your remote .profile, .bash_profile, .bash_login, or .bashrc? Could you test with moving these files away? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 08 03:45:46 2019 Received: (at 34192) by debbugs.gnu.org; 8 Feb 2019 08:45:46 +0000 Received: from localhost ([127.0.0.1]:38891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs1n8-00050V-Ae for submit@debbugs.gnu.org; Fri, 08 Feb 2019 03:45:46 -0500 Received: from mail-it1-f172.google.com ([209.85.166.172]:34719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs1n6-00050G-CV for 34192@debbugs.gnu.org; Fri, 08 Feb 2019 03:45:45 -0500 Received: by mail-it1-f172.google.com with SMTP id x124so8013105itd.1 for <34192@debbugs.gnu.org>; Fri, 08 Feb 2019 00:45:44 -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=d22HxhXWOTTuGCrfGnw7Ez3RConDtO7GAGwYY6lQNdk=; b=S1NFxZ5sxrilf9AbdRxQAJ9qLnb0rkNMyoIxpWOVR8lAbJV1MP8L7FiBo35HEr9GtO LY11Jwg5WhYOGwI6p7Iaz8USYKo2FJgfqRhJL2fIpjwy3F6stmLhqxUe2z4G44YcwN1J 8X9qJ764Q2xDf3Bp5Yq5G/QtKU7jPGt28sbTir16Ah/VYtAsOHZehzzEogGNkVtVvg9w QjxgQAeIxirfp55+K8VayUFSgZNUmK98zIEEtPad1+i21zhZT0t/DsOFO16EnUmjtk64 lYikIRvciIjOSgqF6G3LXXRz20gW/pS1UC3X4/1W4+ZWgvJ9DogFk+AouvGUXfv1l0ip Nryg== 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=d22HxhXWOTTuGCrfGnw7Ez3RConDtO7GAGwYY6lQNdk=; b=WNWlo4rt9RkB6txyXhvj1kDeHWSU/2z9zyO0bRSEW4KGk1N3BxCR1ocvNhAX3R7g++ xTYjw2VBnfkgwz/61Ovst1ePhp933Eo2a9LRkZ+WQqgIX7vwbZQGT8N+iMiILM66hPMn CECngcWn7fQhLpO4U8uTd7WSNr2qsuh4ff+OpcekLLG0AAhSSa8/c+AVuPR9XjnE7XaL 5DUMJ9Hn3Bt0qt39g9YVYjaOBtQ7gXpZ6wyac9diBrRsNwAJwMxT5ruvb0/yH7Tt8Qv9 8uvKXPKzz/VvMGLdYwOCW6brIKGmYPeq4UhX0wpEPHNxcuW/jxcL+bvQ6UsdaLlNqoEN 8PhQ== X-Gm-Message-State: AHQUAubWAc4781je2IbNqyBWjphkNrgBtszKTwskI+wBDTV+I9wF4oF+ m9deK9KdYtoiaKUgSDxYN/MQ0pnCowN9SkrKs47m1g== X-Google-Smtp-Source: AHgI3IZAEyB40b0MAXKFqr5ApBnOFBU816LEOrbLGFamcQg833sngHfEoKykFEa6SMcZ15oYwF3p9zqIHd9K/stIQps= X-Received: by 2002:a24:53c9:: with SMTP id n192mr7132050itb.8.1549615536573; Fri, 08 Feb 2019 00:45:36 -0800 (PST) MIME-Version: 1.0 References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> <87bm3oar6t.fsf@gmx.de> In-Reply-To: <87bm3oar6t.fsf@gmx.de> From: Allen Li Date: Fri, 8 Feb 2019 08:45:25 +0000 Message-ID: Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo To: Michael Albinus Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Feb 7, 2019 at 9:27 AM Michael Albinus wrote: > > Allen Li writes: > > Hi Allen, > > > I finally traced the problem down to setting tramp-histfile-override to t. > > > > Apparently, Bash 5.0 doesn't like HISTSIZE=0. Changing it to > > HISTSIZE=1 fixes the error. > > Is this new in bash 5.0? I have installed GNU bash 4.4.19, and its > info manual says: > > --8<---------------cut here---------------start------------->8--- > 'HISTSIZE' > The maximum number of commands to remember on the history list. If > the value is 0, commands are not saved in the history list. > Numeric values less than zero result in every command being saved > on the history list (there is no limit). The shell sets the > default value to 500 after reading any startup files. > --8<---------------cut here---------------end--------------->8--- > > Hmm, there's exactly the same text in > https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz/bash-5.0/doc/bash.info > > Before changing Tramp, I'd like to understand what's up. To be clear, I'm not suggesting any change in Emacs to fix this. All signs point to this being an obscure bug in Bash. I may take this upstream (but I don't think it's worth the effort as there's a very simple workaround of using dash for /bin/sh). > > > Reproduce: > > > > 1. emacs -Q > > 2. (setq tramp-histfile-override t) > > 3. C-x C-f /sudo::/ TAB RET > > Do you have some special settings in your remote .profile, > .bash_profile, .bash_login, or .bashrc? Could you test with moving > these files away? I don't think so, as TRAMP starts /bin/sh without anything that should load any of those files. I may try at some point, but again since there's a simple workaround I'm hitting the limit of how much effort I want to put into this. Perhaps more people will run into this bug once Bash 5 pushes out to the larger distros, or the bug will get fixed inadvertently. I don't have any opinions on whether to keep this bug open or close in the meantime. Thanks for your help so far. > > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 08 05:44:34 2019 Received: (at 34192) by debbugs.gnu.org; 8 Feb 2019 10:44:34 +0000 Received: from localhost ([127.0.0.1]:38950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs3e6-0007uh-6o for submit@debbugs.gnu.org; Fri, 08 Feb 2019 05:44:34 -0500 Received: from mout.gmx.net ([212.227.15.19]:33481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gs3e4-0007uS-E9 for 34192@debbugs.gnu.org; Fri, 08 Feb 2019 05:44:33 -0500 Received: from detlef.gmx.de ([213.220.158.98]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M8leW-1gxZxc0cRA-00C6TG; Fri, 08 Feb 2019 11:44:24 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> <87bm3oar6t.fsf@gmx.de> Date: Fri, 08 Feb 2019 11:44:21 +0100 In-Reply-To: (Allen Li's message of "Fri, 8 Feb 2019 08:45:25 +0000") Message-ID: <87o97m7e62.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:PqC0ibEoezmzn2co7HnY0BQyV0ZIvMs6Rumol1ByvDbvvadxM6M 5K1N13XiHCir9zAawOmwKbhxPq1VBSJnm0CAU6Vd5v2oS9SlIsyb5QMa1Ywj/yLw5H24rYq 8bUbBDT5wtYuF4WCJcGbdA78+e3zJnD5JowB3JCTl69Ov+hhyAAB1aa+rGzTj1pz2VBEZv6 X8j3htiZ0OvL+DjCFXICw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:LTVoWl9GpD0=:C+ovFIHIymUb0pzXqo+byv CO1iyUfArRoAqOW0Q6qLfNVfUFivG265uEWvOIJSUkUlKbuoi2pzJFyqrck8svFyebawH7HbB 8neRdw2zSJX4y5t7u2kYOhVKWSnsW5vJ0qegzBQ0Pa8l/5Cyc1rsSnQ3mTPRU16l024BuR+pm 7sp6XOoWCtVquB1YH6CWF9zixEdqtXWKZnR51CW2mq+/cLDY3r+ZfaafXHb1jvicv39J0ByLl qtZP8z+4HwFuny3IoOtk23Kaq3lVLxmUPvU7/eEBks7fqATUIu7Zcm4/tw5RLUklcicSrpUnp /JcAxdHwfwxZ3idNXui2F5/uM4Pg1Xf3Rbaq3dnTDnYf991ddjnSvVDHH9ThARLR5BudIfEXK aJEhRWOiKyMHtzGbnfHVxeBMLQoaAC+hTKKLiMYPFojPyBy//c7gc09ZNrZwZv4yVpwXqLE61 8gEMJgxn8Ahvpk7rGifjeJDcJsOliHsqWKQrfCxWmgZvRVshm3jARfQ4Oz/s9WSuozvLVLycD Cq0A5HY6De97DC2+LPEhK37HX41jUJl5LjRq1BrRyAmzso1VT4EeXn+C0Jo+pfN985uaVOyFW hYJGL7nC1MuLvYaMV73Zi1SGNq0BQC009dDawuzBay9TZ8sHOI5Tye6+78p6llDmho+0jhxHR Jfu6B1iVZJk3FDeDlSr+c6K0dcXcTy1+jmaq9/mDD32Nnx16pD1rhTrRVaRteBhMXzm1zapiJ VetyiVzSPuAbuGQDxq7/1+sg6X9nai7glSKBK130vBtkUlVijgCYpmE7FT92BwhLI4NU36HJJ ArKz+HEvOEap3smUnUSum9Tb1eGMbLu+5Kpcq2UpVS+WYSOLxxiLDos4kbCatVCzfeStljps6 0XHG23aifjN8Xfs9pjZ0jJDmZBBxAYjmyXlt0M2RpkUjnP4RvNFQn4tMC0lsgj5srxJNvdTwg dPdCrTcU/Uw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Allen Li writes: >> Hi Allen, Hi Allen, >> > Reproduce: >> > >> > 1. emacs -Q >> > 2. (setq tramp-histfile-override t) >> > 3. C-x C-f /sudo::/ TAB RET >> >> Do you have some special settings in your remote .profile, >> .bash_profile, .bash_login, or .bashrc? Could you test with moving >> these files away? > > I don't think so, as TRAMP starts /bin/sh without anything that should > load any of those files. I may try at some point, but again since > there's a simple workaround I'm hitting the limit of how much effort I > want to put into this. I believe bash loads (some of) them automatically. Therefore, bash knows the parameters --noprofile and --norc. It would be very helpful for investigation, if you could move these remote files away temporarily, and check whether the error persists. > Perhaps more people will run into this bug once Bash 5 pushes out to > the larger distros, or the bug will get fixed inadvertently. I don't > have any opinions on whether to keep this bug open or close in the > meantime. If it is reproducible with bash 5.0, I would like to add a not to the Tramp manuals. At least. Thanks for your support in testing. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 16 22:11:40 2019 Received: (at 34192) by debbugs.gnu.org; 17 Feb 2019 03:11:40 +0000 Received: from localhost ([127.0.0.1]:50636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvCrk-00066W-H7 for submit@debbugs.gnu.org; Sat, 16 Feb 2019 22:11:40 -0500 Received: from mail-it1-f174.google.com ([209.85.166.174]:40434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvCri-00066K-J2 for 34192@debbugs.gnu.org; Sat, 16 Feb 2019 22:11:39 -0500 Received: by mail-it1-f174.google.com with SMTP id i2so33303955ite.5 for <34192@debbugs.gnu.org>; Sat, 16 Feb 2019 19:11:38 -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=hNIGV75wJrTWAXhDafVooAUOvIAMx1qpPKniVR0Ly0k=; b=yLWY1rTJR6cqRYDpoSaz0Y5GjGAeuBtutaOrFNoxnqTtRuAkJemfu0GUPTXi5fa+bI xZFczoYYQ0WjfJjCm0rVbXHzClxA0TWlgWxqwRL6MQ82j4YcgwX5/+P/bQuXgRWLhS98 q0XPAAcyC6XrlHan2P24vFjFqdldPw7Cw3UOsEMkPlzpYPGEN8MJMDR1uKLkzG4NK5vl X12VSL5RdkDX6wx9l76yIdhkIchpZvFqHM29vTAauhGp6zDUKmCAVTX25ZFAfnBESGf3 ntnVmPCjb3fQkI4B3M04p4wktIl/FBN2nl3dt9HspdgZi2ym7Txd7o6Shxm+BaQdmSsI mJgw== 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=hNIGV75wJrTWAXhDafVooAUOvIAMx1qpPKniVR0Ly0k=; b=ehxWKU5MWsSIjeShTqR5c6E1z7pjNe9VtFgvd140v35RQXVCiynebYSDL+6jQ3MdkF TE0Asoa2o5Qxz8G6+R4832VtVF71ZvmC6Yrd5IP5GdQuPL+tP7mWyA5roc0KlidPwyxd qTdOs8Vi++/3uS0odO+M5HTNzw1f5rno9qGdLQbrVapwk+sPXoiOnD8lLaWVWSiq+qFe 0WgciMfpho98KJIWEnXbR2+2yKAR83mjStdIMqfCeAy59wNJj6dtmbFIsSgJG7f3P1Ui N0Pin+Jxyv6RYC4apaeAr/4HdWGjSC0+65YiFvbUvanqLgBB08SsceCNtMga0PSA4KTL hDgA== X-Gm-Message-State: AHQUAua46+1bVIJ0h+K1FDPuI5DUhhu2eYRbjmSbQWY/+V6ON4RYKJGw V2lHwb4+iehgRi3RhIbWIL/KKH5CoIxWH2FAWT4F8g== X-Google-Smtp-Source: AHgI3IadEvvAziUG2WaaQQf6q1Ca0QN3M5KuckPljr4wNFvlgZL3w69VUD/aqZRXMGSsyWgZDkLBNO198f/UnOFBxoM= X-Received: by 2002:a5e:8f4b:: with SMTP id x11mr10330234iop.217.1550373092712; Sat, 16 Feb 2019 19:11:32 -0800 (PST) MIME-Version: 1.0 References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> <87bm3oar6t.fsf@gmx.de> <87o97m7e62.fsf@gmx.de> In-Reply-To: <87o97m7e62.fsf@gmx.de> From: Allen Li Date: Sun, 17 Feb 2019 03:11:21 +0000 Message-ID: Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo To: Michael Albinus Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Fri, Feb 8, 2019 at 10:44 AM Michael Albinus wrote: > It would be very helpful for investigation, if you could move these > remote files away temporarily, and check whether the error persists. > > > Perhaps more people will run into this bug once Bash 5 pushes out to > > the larger distros, or the bug will get fixed inadvertently. I don't > > have any opinions on whether to keep this bug open or close in the > > meantime. > > If it is reproducible with bash 5.0, I would like to add a not to the > Tramp manuals. At least. > > Thanks for your support in testing. Reproducing in a container, anyone else on Arch Linux should be able to follow this. 1. mkdir ~/container 2. sudo pacstrap -i -c ~/container base --ignore linux --ignore linux-firmware sudo emacs 3. sudo systemd-nspawn -b -D ~/container 4. Login with root 5. useradd -m bob 6. passwd bob bob 7. visudo bob ALL=(ALL) ALL 8. su bob 9. cd ~ 1. emacs -Q 2. (setq tramp-histfile-override t) 3. C-x C-f /sudo::/ TAB bob RET (Exit container with C-] C-] C-]) Versions as of now: "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) > > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 20 09:43:18 2019 Received: (at 34192) by debbugs.gnu.org; 20 Feb 2019 14:43:18 +0000 Received: from localhost ([127.0.0.1]:57292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwT5i-00019w-FW for submit@debbugs.gnu.org; Wed, 20 Feb 2019 09:43:18 -0500 Received: from mout.gmx.net ([212.227.15.19]:41137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwT5f-00019g-PD for 34192@debbugs.gnu.org; Wed, 20 Feb 2019 09:43:16 -0500 Received: from detlef.gmx.de ([212.86.38.226]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LqALY-1haDkV44yO-00dlYq; Wed, 20 Feb 2019 15:43:04 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> <87bm3oar6t.fsf@gmx.de> <87o97m7e62.fsf@gmx.de> Date: Wed, 20 Feb 2019 15:43:02 +0100 In-Reply-To: (Allen Li's message of "Sun, 17 Feb 2019 03:11:21 +0000") Message-ID: <8736oijzbd.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:mHs6lzGeg8XLIXRBkRWmIz4VCRYYs76opjloGv/lRuk2zMXrtdJ OM0hrKb+EeEHJ1bYxvfmliut/VUMJxG7nHCOSnaTc7z9hCZObGc2/h0JSdK1oajNdOCuMch ANh+YV2YIt1QxGqTnJBV51n7Zpfwtx9ncIWhFJl6LWfp+Z6LRCMPMD8xfr1IjavAHaQh3pW H+o4B/XLDy1F/Lu7oCa8w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2rn3MK6Z5Mw=:p8cJD93Q3oe96yNnnxkqjZ Z43YfRi4XCIEg0/wzq20CbEb2/1FKzHOXywNC7z5x5CBR+lYgX2dsauQt4lASCBMkyrzADCz5 5+YcCZY0jQaqy2LuUWJjTFNHWOyMKZfMg7Cfga9ToI106Ljrd3PYZM4DGKVPiCx8o9bRpDcIW zaHYO8EKk0aDNBbXWsD1ILyP3FuuUR3+l8rW7/ZhTVrBTOjkJMEipbGdiXWlNfrS90hwdHeHI LKvacybrcujyRmpcLRk2gZqfFfeiZWlCi78zfLf8sFOVMzmGRwlOzGPE9xZlFYqeIc3DoAdba mLjQivzZUdW//KZLkAjToDKUJ2UVYiFPmoXpIQsEyz0PxqP06kW+5WDFLIq69SlIWmEDVQJ3f tbyidRLpMIj0DqRT06LXWokcv4TKBKmbYMKBvCEE1S+UGwN8+nTZBtSzytBgNKGG8kMXEpDXP WaQzNFQLJ4T3HZe2JPOpZbsFZst5utPjkUmiMSpd6bet2ohRTTuo96xDOjVr+rAqk8ahN/3BF vEq/QaKONuPEnTp0IfQnSx+Gfrt0WG15q9sE0E5ZK2w/qIats9Not0xe3+jobL065UHHKdaIs 8bOFmSNjbItJReWvLb6z5rYFd+jIFvYwLXVyzpRmcNxUyx+4PRv3BMLCwMGkaoSRN8/FiersB ZiIoXBObN3Ok41f0fV/FMSINkOryDQrs/Ws6yWB14mZkVlEG9Gv3mkS9cl9cZr3gqFGPPxMd5 tYmzPEWbme7CdZZHIWTqBs5wTluSGHoGG9qGJJ7wMY51hIAWudhe1FyPWTanHhXa0DsglEY2j pIDAjsyP9UMQNMR6Hra1+LAcY5Qz8VdAaZHs1KTcoMQ6I3OzdEzPjVJulJDiEb6Hc4lLAybHZ i9iNZY9tNFO9w8RjESAYxRJE45XQ47wlXf2mkH8wyZ1cy+C4GdLIzjVzdUgvsQO6VKnBVSmRP PpkZ7CqNq2w== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Allen Li writes: Hi Allen, > Reproducing in a container, anyone else on Arch Linux should be able > to follow this. Thanks. I've downloaded bash 5.0 from the ftp server, compiled and installed it. In a bash shell, I could reproduce the problem, playing the commands Tramp has emitted. Well, I wrote a bash bug report. Let's see what they'll answer. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 05:38:25 2019 Received: (at 34192) by debbugs.gnu.org; 21 Feb 2019 10:38:25 +0000 Received: from localhost ([127.0.0.1]:58978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwlkH-0003Fw-49 for submit@debbugs.gnu.org; Thu, 21 Feb 2019 05:38:25 -0500 Received: from mout.gmx.net ([212.227.15.15]:49861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwlkF-0003Fi-Ky for 34192@debbugs.gnu.org; Thu, 21 Feb 2019 05:38:24 -0500 Received: from detlef.gmx.de ([213.220.149.111]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M39zL-1hD3PJ0yFr-00sxW6; Thu, 21 Feb 2019 11:38:10 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> <87bm3oar6t.fsf@gmx.de> <87o97m7e62.fsf@gmx.de> <8736oijzbd.fsf@gmx.de> Date: Thu, 21 Feb 2019 11:38:06 +0100 In-Reply-To: <8736oijzbd.fsf@gmx.de> (Michael Albinus's message of "Wed, 20 Feb 2019 15:43:02 +0100") Message-ID: <87mump5svl.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:1yEXqmHW1DUemGon3gMJn53KCVEfN7uUqsAVsaAAN00oTpsoTpD DYrPMaeZ/2c8xukzPb6eo9fPK7gg5LWgPDbsRlIRq2ziviXDwi9FKRWvebSGRP5UY6O+Ld9 IYKh22cjpDXse8XAtMQPWxer/Br4RrydampR1H9+oSIbCUX4unQAqROKcDgzEZVj9APctoj w68z4Oy/0N7D85awcB92A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:BiaUs71dnJk=:1NbMgmJWHx8Lu5VuHILc42 5MLsuZuc7K5Mq4+5JrTgkgUFmmjqPAuP/2sOO34l6ufJco98UzakKSOhaWT7MhskcW6aJu6Vm OKiH836qKcUpEhgGG5I4hH3nIicuO8DdBlO4keitL77236BxEgwbDlZu5nD8VJeTA1Hw0hSkg RpRwFY+lcTNBkcyfC2J2kz3C6W6usDfHvL9j8rbNMjPfkd0kxpJhEsWG7751ENJvCll8CNT33 KqRNE6h3gR/0zUzheer/UXHDd/8jO9dPxYeNYnJDroYvmYiCE0aM3kNir7N8rfQHPjNia2OJF 9BhqyOSMaB8cbl8ZqzlkSTGFTP6iSGMYV8aNf2Vn4s7xoViY4P5MZCJvXnfHSQ59+iRAIUWg6 ioPYY1C9jujbJVOtLhh1/6+zReAfWujVmtjNC/asBQqxQnZHT/lSCUEGnSjME2CRqn0dVXWpi 23L8aRjVegChjvA6AzB8UOfcTMl5dooPBkQRA9ffLj3tLdHN3w5FHCRh0dGlLCuoZEAeVMxN7 Z7N5cfKNa2klM2eb9NAF5igVjwOTO+Opnp1JNEhJ2qPLeCne7959McT1PXVZMB6mBOUOBQli1 yuEItG+G93zmV+qCL5jJjywWkIj6l6V/5hltxcJZv4qOJpMzWPxpG9u7b67Kue9GRrDubP+3F +m17fX3hz/bHfdb4PTMiWCK0yTc/L/5n73UgmNZYL1HqDQMIY8Tap90PY4XXatS8rZkte/HL1 esifWzopp0rElb6RBrhTreU3sACsOOBTGna00/H6F8KI2uqcz581HvoMUgXrbjEm4QJHpUECJ 5gJ1LwxwK0uzI+LC7R9ht6KJW4XmsYzvd9tPeujf+EGP8ML8SVaqTkzX3vVO4XB78x17Ft+qO iiJQBNV+PU9E6XhIgdHCR+idynzFIgJ6z26zddyGNK8GOyb3AVsIzng0Eq2oShJcmW/Sl3Rdu YmIJabR5DbQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: Hi Allen, >> Reproducing in a container, anyone else on Arch Linux should be able >> to follow this. > > Thanks. I've downloaded bash 5.0 from the ftp server, compiled and > installed it. In a bash shell, I could reproduce the problem, playing > the commands Tramp has emitted. > > Well, I wrote a bash bug report. Let's see what they'll answer. I've got an answer from the bash maintainer. He confirms the problem, and he has sent also a patch. I've tested the patch; it fixes the problem in my environment with bash 5.0. Will forward that message. So we have to wait for a new bash 5.0.x version which fixes this. In the meantime, I'll write a warning in the Tramp doc. Thanks again for your testing, and best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 05:39:54 2019 Received: (at 34192) by debbugs.gnu.org; 21 Feb 2019 10:39:54 +0000 Received: from localhost ([127.0.0.1]:58982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwllh-0003IQ-NI for submit@debbugs.gnu.org; Thu, 21 Feb 2019 05:39:54 -0500 Received: from mout.gmx.net ([212.227.15.15]:38305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwllf-0003I9-D4 for 34192@debbugs.gnu.org; Thu, 21 Feb 2019 05:39:52 -0500 Received: from detlef.gmx.de ([213.220.149.111]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LcT2M-1hLc7a3FMk-00jsoZ; Thu, 21 Feb 2019 11:39:44 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo Date: Thu, 21 Feb 2019 11:39:43 +0100 Message-ID: <87imxd5ssw.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:+hpWOXF2IUT8QB16Jml4/bl0Si+bBRNOCaFz86XU/GIDTFLxEqd xkXe69qT8hDwJD8OLvA/82U2Tei74UzD9OdD3DP+qmvVr1Ge6FW8AxzRzJMYtEZD5Jj/mpE tPHPqCgtYyrxAuOpZkPHyY564ljIShA6OLFu6QYWxTaTAu/sOO5qHuLGecIbqO0B7ElsMyu 3k7QlSCSLX8h+ZZP3xiiw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:AEwGYy1UCtM=:3ixUNbXbsxwZHTNWaKiInK 3ld2Hl1iiWr1U3Nqhze5nnm2TEJAHO1gZ2upW4svZHvbdV2aYampf44gGsY0RhXA5kPMP9nKq 8Np1ZoDFV4BlLUJQKGNs6txXd2p4ci4qEiriAjI//2FLthId8pvT4hN60z5VOk5HzgczD+4sL Cx2IahAkLQ2gg6W5N10eeSMJuQ/JayQgiv2nAER22Jl3fveCR4KJ8e/h0FH+IA74EBeA3tFYe UqzUvQOIcG36taqk+DJdbBKcq54PE/W25u+5ax8f8Mgt794MjST9gT/mgKdm0gYXnFIMm6qeD FPQWUSfePh0sIEIg1Xgey5FFqhBGt64fIcFGzPwHfRVk3qxocFZIh+IIRo5shw69P5HeKT1ht C+dn2DAoCOSPDloHD1erhssPb6XWnyJbi6whmN8F4cG7hPA9RUOnL3EYvu0tLB29uv+xocniX 98A7U2Cxl2UfLXzDs1E2X5n9qqNV2YCNkckEgrTeMsjnVOTYAagQYtwY93OxqpR6C0LdkdJCo Cr59+DnHUxKfAAN49LdKJj9IrUULP73h70O31l5fi+iTy7X2o9EsV+NnJUvlPfUYRyDzOIHWu 8BTZ7HlbGMZnarsPR17gAlaECYrWf4OramERWXIGMIbCb8C96MxcnsPy3F5PJeEgEmjOr740C ZSw1MaNLGo8YAf65u51y5cavzXJrdV2S0i49noxP1N3eqewAWbpV/1/0vjOvCGxokSQsed8UQ +ogFoKEvBsZ4F+cToyDdgCA/xGAphBTFQG9yUM8k8CteBedxgF1c4xQKc42wQbD1e2YEM3Ht3 s/+W7dAMkyy66pdo7b+9EujBqw4XdmjY9lEuQfg5LSi+ZG6/N+6wVZr2rhgpo99uZGY3RGc5c 2Ig3jA6X2tYiQe8BZUjdQRy9PDP03vtAhV118iRYQ1CFhOz9zDULFvDhBfrUIa X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192 Cc: 34192@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain -------------------- Start of forwarded message -------------------- Subject: Re: bash 5.0 dies with HISTSIZE=0 From: Chet Ramey Date: Wed, 20 Feb 2019 16:23:23 -0500 --=-=-= Content-Type: multipart/mixed; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On 2/20/19 8:10 AM, Michael Albinus wrote: > Bash Version: 5.0 > Patch Level: 0 > Release Status: release > > Description: > This is an error report from an Emacs/Tramp user. With bash 5.0, bash > 5.0 dies when HISTSIZE is set to 0. Setting it to 1 seems to work. Using > bash 4.4 works as well. for details. > > Repeat-By: > The following is an extract from what Tramp does inside Emacs. I could > reproduce it in a a shell: > > > # env TERM='dumb' INSIDE_EMACS='27.0.50,tramp:2.4.2-pre' ENV='' HISTFILE='' HISTFILESIZE=0 HISTSIZE=0 PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /home/albinus/src/bash-5.0/bash -norc -noprofile > #$ tramp_perl_file_name_all_completions () { > \perl -e ' > opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); Thanks for the report. Try the attached patch and see if that fixes the crash. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/ --==-=-= Content-Type: text/plain; charset=utf-8; name=history-zero-length.patch Content-Disposition: attachment; filename=history-zero-length.patch *** ../bash-5.0-patched/bashhist.c 2018-07-05 22:41:14.000000000 -0400 --- bashhist.c 2019-02-20 16:20:04.000000000 -0500 *************** *** 561,573 **** if (!history_expansion_inhibited && history_expansion && history_expansion_p (line)) { /* If we are expanding the second or later line of a multi-line command, decrease history_length so references to history expansions in these lines refer to the previous history entry and not the current command. */ if (history_length > 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) history_length--; expanded = history_expand (line, &history_value); if (history_length >= 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) ! history_length++; if (expanded) --- 561,576 ---- if (!history_expansion_inhibited && history_expansion && history_expansion_p (line)) { + int old_len; + /* If we are expanding the second or later line of a multi-line command, decrease history_length so references to history expansions in these lines refer to the previous history entry and not the current command. */ + old_len = history_length; if (history_length > 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) history_length--; expanded = history_expand (line, &history_value); if (history_length >= 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) ! history_length = old_len; if (expanded) --==-=-=-- --=-=-= Content-Type: text/plain -------------------- End of forwarded message -------------------- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 06:20:32 2019 Received: (at 34192-done) by debbugs.gnu.org; 21 Feb 2019 11:20:32 +0000 Received: from localhost ([127.0.0.1]:58989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwmP2-0004JH-3K for submit@debbugs.gnu.org; Thu, 21 Feb 2019 06:20:32 -0500 Received: from mout.gmx.net ([212.227.15.19]:53839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwmOz-0004J3-F3 for 34192-done@debbugs.gnu.org; Thu, 21 Feb 2019 06:20:29 -0500 Received: from detlef.gmx.de ([213.220.149.111]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MBExR-1gnC0e1cdZ-00AErz; Thu, 21 Feb 2019 12:20:21 +0100 From: Michael Albinus To: Allen Li Subject: Re: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo References: <87y375gpnk.fsf@gmx.de> <87pnshgn7v.fsf@gmx.de> <87fttbn5ju.fsf@gmx.de> <875ztzzs5e.fsf@gmx.de> <87bm3oar6t.fsf@gmx.de> <87o97m7e62.fsf@gmx.de> <8736oijzbd.fsf@gmx.de> <87mump5svl.fsf@gmx.de> Date: Thu, 21 Feb 2019 12:20:15 +0100 In-Reply-To: <87mump5svl.fsf@gmx.de> (Michael Albinus's message of "Thu, 21 Feb 2019 11:38:06 +0100") Message-ID: <87ef815qxc.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:T0NW7jAFaJMVKSKqKDODHFyfIE/8mv4g6VugSW/PHruhgrNVVq4 AMiTTvODJeR0NU5m2OhAY5NgKj+6B1g8UALYgDIs3nIuj4GRQvPk7OtsGVz1gUcy9Tl4nzx q7ETYI+ZBZmmtljRolBKUb0u3wPwVFirCOE+jmxngi+JvQbFdAZZW0f7mAsC7uov/MY+gJ6 W4FdFQdH+P91SUbgwLh/g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:T13Y7AakXZI=:F3CWAEKoLcdplG26Osjmgh dnawLqsYJTHvS7yt5TDkEeZ0jHLxxeu2TsZMXL6etHfrLLqHEVOnyOY1F6se/1wLMhOERsNOh YpE+fmJGRPz9Nbk110Lf5QHw9c77lunERTJpNDztztuxw/G20jfDVrKCYSBwss9Ej3F/gX51f b6cwlg90seAkuOxY1KYmod7laLrWDgRvYx188gL1iCEtwkC5R8Gh4yRlXunwzH3+NpAGyrouA qmdjiGHUUhVVxggHquSQGzgKvHmSY4RGG5lydOBfoWLHwzNjMAhwhOvsK6rHLfgJGRMQDU3Be phqpZaWmTZt2anK3CFt2qI0Jm+WFBFK7ZQSugE2qaPY8V8zqO6nISaEXrRzq/pPIiNt8VK76B myulR1gw3dy0vZZzxYM3/dExjM7RcTTseFQy9SVyqfq6IhM/uPqAo0Vkh/47tLzb6v6xgQggS pYzhGhewnXE5ptZW8nRWyRmVDRsBjDKdQOBaxOjRp22U1sVyQyfT6ZZUvf2LP0/G65GkFvKYt dXiZ1DatHB1lgxJw8Ocn/U0F5GhgvYYxYJOr5ZmBGk8fyeQ8euJp2I+XEcwbeiyBg3/VOEBwN R00wWrCU4mjHPj4KLtF9AKyPguEeTb73N+8wK6A6Nigp9Vf0jPb7BXgKzv+Dd0lx8/ZYamRZe X0hwI4bTWskShOY/VSp/UfxP0aYGuXtTfebMI2ttgOSTk9kN6fvlEYdRSvRBdnxDpTKeHwd6h Ez0enUCvXcZ9TSvGL0ktvUsl4kPPXyVWKAouggbi8Z4MzambUqaz/FTYMojS56+a67OxYN70Z XUHL5Z4j/slFkZmtedBB66+OwZ2iJ7BvH7Sqs4OT707gsny5Ityg44Jw+VRXtfyrqKsQxGpLV BB8RK0GmnM2kvAM83Ouw/ECOd7XtyunLNq6d62HD8YqUx34Wr8yTwdTU3UxAG+eVS4Q6gxLIj w/oklNcybtA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34192-done Cc: 34192-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Emacs 26.2 Hi Allen, > I've got an answer from the bash maintainer. He confirms the problem, > and he has sent also a patch. I've tested the patch; it fixes the > problem in my environment with bash 5.0. > > Will forward that message. So we have to wait for a new bash 5.0.x > version which fixes this. In the meantime, I'll write a warning in the > Tramp doc. I've documented this in the Tramp manual, pushed to the emacs-26 branch. Since there's nothing left on Emacs side we could do, I'm closing the bug. Best regards, Michael. From unknown Sun Jun 22 00:09:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 21 Mar 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator