bug-bash
[Top][All Lists]
Advanced

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

Re: Segfault in Bash


From: Ilkka Virta
Subject: Re: Segfault in Bash
Date: Tue, 14 Jul 2020 19:02:26 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 14.7. 16:08, Chet Ramey wrote:
On 7/14/20 6:32 AM, Jeffrey Walton wrote:
./audit-libs.sh: line 17: 22929 Segmentation fault      (core dumped)
$(echo "$file" | grep -E "*.so$")

Bash is reporting that a process exited due to a seg fault, but it is
not necessarily a bash process.

As a suggestion: it might be useful if the error message showed the actual command that ran, after expansions. Here it shows the same command each time, and if only one of them crashed, you wouldn't immediately know which one it was. The un-expanded source line is in any case available in the script itself.

The message also seems to be much briefer for an interactive shell or a -c script. At least the latter ones might also benefit from the longer error message.

--
Ilkka Virta / itvirta@iki.fi



reply via email to

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