Re: Infinite recursion makes bash segfault

2022-05-10 Thread Judicaël Courant
Hi, > Yes. If you recurse indefinitely, you will eventually exceed your > stack size resource limit and get the prescribed fatal signal. Thanks for your answer, Chet. I understand how and why that happens in C programs. However, I wasn't expecting that from a higher-level, interpreted language

Re: Infinite recursion makes bash segfault

2022-05-05 Thread Chet Ramey
On 5/5/22 7:10 AM, Judicaël Courant wrote: Hi, I found bash segfaults when running into an infinite recursion (details below). I would expect it to either stop (or possibly exit) with a clear error message instead. Here are the details (as given by bashbug). The problem also happens with the

Infinite recursion makes bash segfault

2022-05-05 Thread Judicaël Courant
Hi, I found bash segfaults when running into an infinite recursion (details below). I would expect it to either stop (or possibly exit) with a clear error message instead. Here are the details (as given by bashbug). The problem also happens with the latest bash version (5.2.0(1)-beta). Yours