Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16315

Re: Seg fault on "echo ~nosuchuser"

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Eric Pruitt <eric.pruitt@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Seg fault on "echo ~nosuchuser"
Date Thu, 28 May 2020 20:20:55 -0700
Lines 31
Approved bug-bash@gnu.org
Message-ID <mailman.581.1590722462.2541.bug-bash@gnu.org> (permalink)
References <CAAHpriPmaDcTYQLkyGqA6fM_AyVQkfN_f7p1qzkoqj-2-G1xBA@mail.gmail.com> <20200529032055.GA23088@sinister.lan.codevat.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1590722463 17730 209.51.188.17 (29 May 2020 03:21:03 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Keith Thompson <Keith.S.Thompson@gmail.com>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:pgp-key:user-agent; bh=To38hfc1m5zdKl1MTW6HYea6zIMtVKfwvG5VA/MM+/I=; b=vQ/JUFpKR8lzw9SY3vQxzK/KialIK1FE4JPYjdwpciHEg4/En16b8I11i60VGMnVot d24+y6U/v4t75T6GTm1cgUpECMGbd+TwHQHwXTb6upY0RcwXTKqpmas3OlqGOovl6L1J 3u8aLMHv5/dktiecqAM2hk4v7WiSPMH3hwu3f0Q3PIKHGjBw3RMsCO8sVtMjsMfbIgj0 4JOHh9gP3uwQY62yE7k1sMV3mgc8jjZlaRG0CNzJ+7Qys1p4sqPKWpcix/B5pKSTK8ms jJptgk9GX3nBmcAh4KF96Lc8Hu+uW3ZRzTUSszDec0ALN5eN4T3S6lfQyzlzd223n+vY bhiA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:pgp-key:user-agent; bh=To38hfc1m5zdKl1MTW6HYea6zIMtVKfwvG5VA/MM+/I=; b=q/JxEULctAk1I/Rh491fTdDW6jQU4csvWA+dHEMACgNig3JHms90gK5so6MdGqX+kL eDVPnjjFNRZX9smEEQ0HJNu7GQZyUiHcvnzl/UQoT0GSGR/KG3QbhDf547T1omGpRWTF KgHy6lIZ9JAqni/KFf9v3AKGvH1n4LGXFqCq4oJNwrDJS9mBRrgysA2X3KVhGqhLtbfJ WFWdwuBVKQA4letyixw+jvUIo6h3qLXYcFMVsIbIcfQ8vl+Fg5jLKuoOcvV+EX9DL3q8 uRJp6YKMQ6Enkvi7TTray8fdW3hRGr/0W/0KbiYg/VNYm/hG/OgDeBfIhmqD8nMq6HUg 5KAA==
X-Gm-Message-State AOAM531yPg/L3C8MzlvEmWXbcMIGQSCo9mAr6mtKvQpgVWs+QaFhEKcx GAtuwRDaFBrxTLDxajFavE4=
X-Google-Smtp-Source ABdhPJwaujkAY8B64yuUALasisng9aaXK75Ojy2mHHG85qiKwdV7Kf7G/WWGpdhwCuzkk3dl1iI3GQ==
X-Received by 2002:a62:e408:: with SMTP id r8mr6422024pfh.213.1590722457843; Thu, 28 May 2020 20:20:57 -0700 (PDT)
Content-Disposition inline
In-Reply-To <CAAHpriPmaDcTYQLkyGqA6fM_AyVQkfN_f7p1qzkoqj-2-G1xBA@mail.gmail.com>
PGP-Key https://www.codevat.com/pgp.asc#F8601B5D2511B4C3535232488DDDE2E6053692AB
User-Agent Mutt/1.10.1 (2018-07-13)
Received-SPF pass client-ip=2607:f8b0:4864:20::444; envelope-from=eric.pruitt@gmail.com; helo=mail-pf1-x444.google.com
X-detected-operating-system by eggs.gnu.org: No matching host in p0f cache. That's all we know.
X-Spam_score_int -20
X-Spam_score -2.1
X-Spam_bar --
X-Spam_report (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200529032055.GA23088@sinister.lan.codevat.com>
X-Mailman-Original-References <CAAHpriPmaDcTYQLkyGqA6fM_AyVQkfN_f7p1qzkoqj-2-G1xBA@mail.gmail.com>
Xref csiph.com gnu.bash.bug:16315

Show key headers only | View raw


On Thu, May 28, 2020 at 03:12:47PM -0700, Keith Thompson wrote:
> I see this problem on copies of bash 5.0.16 and 5.0.17 built from
> sourced on Ubuntu 20.04 LTS.  It does *not* occur with the /bin/bash
>     GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu)
> provided by the distribution.  I haven't verified how far
> back this goes.

For what it's worth, I cannot reproduce this on Bash 5.0.17 compiled
with musl 1.2.0 or glibc 2.28 on Debian 10, GCC 8.3.0.

musl:

    ~$ bash --version
    GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
    ...
    ~$ bash -c 'echo ~nosuchuser'
    ~nosuchuser

glibc:

    bash-5.0$ ldd --version
    ldd (Debian GLIBC 2.28-10) 2.28
    ...
    bash-5.0$ ./bash --version
    GNU bash, version 5.0.17(2)-release (x86_64-pc-linux-gnu)
    ...
    bash-5.0$ ./bash -c 'echo ~nosuchuser'
    ~nosuchuser

Eric

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Seg fault on "echo ~nosuchuser" Eric Pruitt <eric.pruitt@gmail.com> - 2020-05-28 20:20 -0700

csiph-web