AF: NF:0 PS:10 SRH:1 SFN: DSR: MID: CFG: PT:0 S:shlomif@shlomifish.org RQ: SSV:localhost NSV: SSH: R: MAID:1 X-Claws-Privacy-System: X-Claws-Sign:0 SCF:#mh/Mailbox/sent X-Claws-Auto-Wrapping:1 X-Claws-Auto-Indent:0 X-Claws-End-Special-Headers: 1 Date: Sun, 24 Sep 2017 17:01:40 +0300 From: Shlomi Fish To: bug-bash@gnu.org Subject: [BUG] Bash segfaults on an infinitely recursive funcion (resend) Message-ID: <20170924170140.75bca620@telaviv1.shlomifish.org> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; x86_64-mageia-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi all, With bash git master on Mageia v7 x86-64, bash on Debian Stable and other reported sytems: shlomif@telaviv1:~$ /home/shlomif/apps/bash/bin/bash -c 'run() { run; } ; run' Segmentation fault (core dumped) shlomif@telaviv1:~$ note that this is not a fork bomb as no processes are spawned, and it is also not an out-of-memory problem. I expect bash to fail on this, but it ought not to segfault. also: shlomif@telaviv1:~$ dash -c 'run() { run; } ; run' Segmentation fault (core dumped) shlomif@telaviv1:~$ zsh -c 'run() { run; } ; run' run: maximum nested function level reached I hereby put the reproducing code under the https://creativecommons.org/choose/zero/ . Credit is due to rosa, ongy, anEpiov and other people of freenode's ##programming channel for inspiring this bug report and helping to diagnose it. Regards, Shlomi