Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug report: segfault when pasting (function and alias names collide)
- X-seq: zsh-workers 40289
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug report: segfault when pasting (function and alias names collide)
- Date: Fri, 6 Jan 2017 08:40:13 -0800
- 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=XYGbZruZdoguD5cC+Sc+jLr2q4MYL7qSTWaQGLSQX7M=; b=R3ngwcIq0Oz77wMr9p5c18ddzIjde0PErOLq+OMY+SPwGb8ZlF3gy9hdRM0lRg6xuK w1QKKNTk/vV/zrrRQ1TVyTT/VOHq6gtK+hoYMvMuDeB3Epx5lqPzPFsbAVVdX7/46T0i e85Cjn+dG6/rGLqqU5PxWJwi2d8w3K8M3BXTW4PO+jt7ignPT09t76EDT2KBO0Yx8HeD ODs1xuAz1DaQxxComyMvzmwNAT5pZqhUl3RYrOEN6UlTmuncVQeqj4YIJzf3Y+87wUCq kxNfkuViEB9dcn9weSZjS634XRk2HfRwXnROkcwXBZRBQuKXsCCQ6fnwAAw183ap/PXf HU9Q==
- In-reply-to: <20170106022907.GA6982@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: <CAA9FWwOMDftD+nfj=Thw-SO9ZpHD-eg4kOZYTzzTHDRcTeDqxw@mail.gmail.com> <20170106022907.GA6982@fujitsu.shahaf.local2>
On Jan 6, 2:29am, Daniel Shahaf wrote:
}
} All segfaults are bug, but how do you reproduce this one?
This was explained in the original thread from 2010 to which Victor
referred. The crash is because of a stack overflow during the
infinite function-call recursion. Zsh can't detect at runtime that
stack overflow is about to occur, so it sets a compile-time limit
on how deep the recursion is allowed to become.
If zsh is compiled on a machine with memory size X and then run on
a machine with memory size Y < X, the compile-time limit may be too
large and the recursion will continue until a fault results.
There is no practical fix for this, nor is there a practical way to
trap the fault and recover cleanly.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author