bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash with 5.2 beta in compgen


From: Chet Ramey
Subject: Re: Crash with 5.2 beta in compgen
Date: Sun, 17 Apr 2022 18:46:13 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 4/16/22 12:50 PM, Sam James wrote:


On 16 Apr 2022, at 17:11, Chet Ramey <chet.ramey@case.edu> wrote:

On 4/16/22 1:45 AM, Sam James wrote:

Bash Version: 5.2
Patch Level: 0
Release Status: beta
Description:
         Bash crashes when running compgen -c -X a.
Repeat-By:
        # bash -c "compgen -c -X a"
        Segmentation fault (core dumped)

I can't reproduce this. I wonder if it has to do with resource limits.


Suspect Andreas' reply may be more insightful, but was able to reproduce this 
in a fresh Debian stable chroot too,
created with debootstrap.

root@debian-stable:~/bash-5.2-beta# /usr/local/bin/bash -c "compgen -c -X a"
Segmentation fault (core dumped)

Thanks to you and Andreas. I tracked down the offending change, from April
2021. It only affects compgen called from non-interactive shells.

--
``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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]