[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segfault after many stackframes
From: |
Chet Ramey |
Subject: |
Re: Segfault after many stackframes |
Date: |
Fri, 19 Apr 2019 09:16:08 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 4/19/19 4:21 AM, Ole Tange wrote:
>
> Reading https://www.gnu.org/prep/standards/standards.html#Semantics
>
> """Avoid arbitrary limits on the length or number of any data
> structure, including file names, lines, files, and symbols, by
> allocating all data structures dynamically."""
>
> You could argue that Bash being a GNU tool, it should do like Perl:
> Run out of memory before failing.
You've obviously overlooked the FUNCNAME variable and its effects, but
I am curious about this point. Why do you think bash would exceed some
kind of memory resource limit before it exceeds a stack size limit? Or
is it supposed to use an out-of-memory message as a generic default?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/