Re: [PATCH] Fix segfault with self-modifying array PROMPT_COMMAND

2020-08-31 Thread Chet Ramey
On 8/30/20 9:36 PM, Koichi Murase wrote: > Bash Version: 5.1 > Patch Level: 0 > Release Status: release > > Description: > > In the devel branch (e4d38c2d: commit bash-20200819 snapshot), a > segmentation fault occurs when a prompt command stored in the array > version of PROMPT_COMMAND

Re: [PATCH] Fix segfault with self-modifying array PROMPT_COMMAND

2020-08-30 Thread Koichi Murase
2020-08-31 10:36 Koichi Murase : > Description: > > In the devel branch (e4d38c2d: commit bash-20200819 snapshot), a > segmentation fault occurs when a prompt command stored in the array > version of PROMPT_COMMAND unsets the corresponding element in > PROMPT_COMMAND. I'm sorry, but I

[PATCH] Fix segfault with self-modifying array PROMPT_COMMAND

2020-08-30 Thread Koichi Murase
Hi, I hit a segmentation fault with the array PROMPT_COMMAND. Here is the report and a patch. There is also another trivial patch. Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=native -O3 uname output: