Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15074
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Large compound commands resulting in a segfault |
| Date | 2019-07-01 15:20 -0400 |
| Message-ID | <mailman.4.1562016918.1967.bug-bash@gnu.org> (permalink) |
| References | <20190621202246.18fcb57ce720acc9095d3e0f@plushkava.net> <1e40f970-1c6e-0f7e-eefe-6995ec587716@case.edu> |
On 6/21/19 3:22 PM, kfm@plushkava.net wrote: > Hi, > > The following script generates a compound command consisting of many instances of the : command. I have found that it reproducibly induces a segfault in all versions of bash from 2 onwards. I tested various other shells - several more than are implied here - all of which could handle the generated code without issue. It's an exceeded stack resource limit. Bash uses recursive function calls to implement command lists, and too many can exceed the stack limit. -- ``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/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Large compound commands resulting in a segfault Chet Ramey <chet.ramey@case.edu> - 2019-07-01 15:20 -0400
csiph-web