[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Infinite recursion makes bash segfault
From: |
Judicaël Courant |
Subject: |
Re: Infinite recursion makes bash segfault |
Date: |
Tue, 10 May 2022 09:38:19 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
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 : I was (naively) expecting the interpreter to run
in bounded stack space. Sorry for the noise if that was the intended
behavior.
If you are worried about this, set the FUNCNEST shell variable to an >
appropriate value.
Nice, thanks :-)
Yours,
Judicaël Courant.
--
Judicaël Courant
Software Engineer, TrustInSoft
(+33) (0)6 52 42 88 23
https://trust-in-soft.com