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


Groups > gnu.bash.bug > #16315

Re: Seg fault on "echo ~nosuchuser"

From Eric Pruitt <eric.pruitt@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Seg fault on "echo ~nosuchuser"
Date 2020-05-28 20:20 -0700
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>

Show all headers | 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