5.2-alpha completion script source crash

2022-02-19 Thread konsolebox
Loading/sourcing
https://raw.githubusercontent.com/scop/bash-completion/master/completions/gnokii
using bash-5.2-alpha causes bash to go 100% and crash.

Gdb reports "Program terminated with signal SIGKILL, Killed.".  bt =
"No stack.".

Earlier version of bash (5.1.4) runs it and exits well.

Compiling it with a safer flag like `-ggdb3 -O -pipe` didn't help.

-- 
konsolebox



Re: 5.2-alpha completion script source crash

2022-02-19 Thread Chet Ramey

On 2/19/22 10:50 AM, konsolebox wrote:

Loading/sourcing
https://raw.githubusercontent.com/scop/bash-completion/master/completions/gnokii
using bash-5.2-alpha causes bash to go 100% and crash.

Gdb reports "Program terminated with signal SIGKILL, Killed.".  bt =
"No stack.".


Thanks for the report. This is the result of needing to clean up parser
state before recursively calling it to parse the command substitution.

Chet


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/