[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Bash segfaults on an infinitely recursive funcion (resend)

From: Pierre Gaston
Subject: Re: [BUG] Bash segfaults on an infinitely recursive funcion (resend)
Date: Sun, 24 Sep 2017 19:24:10 +0300

On Sun, Sep 24, 2017 at 5:01 PM, Shlomi Fish <address@hidden> wrote:

> Hi all,
> With bash git master on Mageia v7 x86-64, bash on Debian Stable and other
> reported sytems:
> address@hidden:~$ /home/shlomif/apps/bash/bin/bash -c 'run() { run; } ;
> run'
> Segmentation fault (core dumped)
> address@hidden:~$

This, or some, variant has been reported multiple times.
Like in most programming languages, you can easily write programs that
behave badly,
in this case you are exhausting the stack has there is no tail call

see for instance
and the following discussion

reply via email to

[Prev in Thread] Current Thread [Next in Thread]