Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unbounded recursive call in a shell script crashes zsh
- X-seq: zsh-workers 40983
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: unbounded recursive call in a shell script crashes zsh
- Date: Sun, 16 Apr 2017 14:00:16 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=ZNLrLFnqtbW39DBO457Qm2XR7ffnQSgRk1nps/E9VMw=; b=rb+mb59bBw8+QyY9qmXqZVlhW2miZumn6zrY0gNZ8hu8qjMlUobg3sevA1Lbccs+cu vPBIaIDvhAIL0Ua4/UNMbJbl+kIIfGtgHWpE5h5u3Fv5i4GUG1iMOu6VN3dXna2mT7Ba v7Hv/d0DTQjmEPizeSEBhe15NKB/uEeTm5CIluK6CxNbgRTEJUcZV7Wr3eemrxyfHy8C DR3CMnFjjvRxqloGBEv48agqYRknpJme5Q6nWUTu3K6VqQIeTwD5kPfZvWMFlLnnv27j XwL0i6NL30htfLeHLvgoVYUwwsoz8SpkLTDcrcWu/x7pqACO6LjFxZ3c36kAiT8avpzB BO2w==
- In-reply-to: <20170416185628.GA25858@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <2960832.nVDpiBkaWZ@kdudka-nb> <2420758.31stuSQeAV@kdudka-nb> <CAH+w=7atHK+_7fdzxCB4gRkWiKW8zCcTvW-qHM-0fUjH=OsPDQ@mail.gmail.com> <2350280.olGvC23INb@kdudka-nb> <CAFOazAO2jcj+zPpJuHXtykUE4yGR0FnYA5+-xHgH4nu_gDZgbw@mail.gmail.com> <CAFOazAM8N5ZQEv_HtQwt-18M6aNOTEMhGAmYxO0De1cjpjnjXA@mail.gmail.com> <170415091456.ZM22606@torch.brasslantern.com> <20170416185628.GA25858@fujitsu.shahaf.local2>
On Apr 16, 6:56pm, Daniel Shahaf wrote:
}
} Hmm. Would it work to measure the stack space used, by declaring
} a local variable in main() [...]?
Aside from it depending on a particular stack architecture which may
not be shared by all hardware, it doesn't solve the problem of knowing
how much stack space will be occupied by the average call frame.
And even if you could manage to divide the available space by the
average size, that's still not a guarantee you won't run out if a
number of frames are larger than average.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author