Re: I found multiple crash bugs in Dash v0.5.12-115-gb4ef25d
Herbert Xu <[email protected]> Sun, 14 Sep 2025 08:51:28 +0800
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 29, 2025 at 07:40:16PM -0700, Nathan Mills wrote: > > *Crash v0.5.12-gb4ef25d_try2#5: stack-overflow. cmdloop calls > evaltree, which calls evalcommand, which calls evalfun, which calls > evaltree, etc. Dash crashes when reaching 22,448 stack frames deep on > my machine. > > **Crash v0.5.12-gb4ef25d_try2#5: stack-overflow ** > > Base64'd > SDsJSCgpAEg7CUgAgH9KSCQj6jw+JF8kEGdISDsJSDxIb3JlLH8AgP+A/yM/Cg== > > Minimized (assume the file "empty" does not exist): > ``` > touch empty > src/dash -c 'H()H;H<empty' > ``` This is to be expected. You're doing infinite recursion, of course it will eventually fail when the stack is exhausted. Cheers, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt