Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#924736: zsh 5.7.1 segfaults when three setopt options are in play [origin: wesley@xxxxxxxxxxxxx]
- X-seq: zsh-workers 44134
- From: Wesley Schwengle <wesley@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug#924736: zsh 5.7.1 segfaults when three setopt options are in play [origin: wesley@xxxxxxxxxxxxx]
- Date: Sat, 16 Mar 2019 23:28:39 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mintlab-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/IG074UD4FxEb7ZpJ+i8sSGVqJ3RlBsaHdg8c3RnEZY=; b=LDsbOtolU/LnkW8qiHf6tLutl4dWRf4aaqZGCCdF348pWQ53LVRJ7I21JmDn9q8jU/ FpoK0OfcyiBfKAsfFB3m9cZOy1KOFIg+xhlpJ6kUrXI8gFIB6p7swnNrebp2wASclnTL ccTFAQNAp9JI5XuuqNmAZ/GYCYai8OtrcWFcmilgE4G0oX4L7YBUO1OP/IkZEJkpRdfq 5hgZ0Q0aEpltLI6lKJlTKDZb30E3/84hL/2rtsVZfLp6UIBig3fxz57oQuqmjtF5MvlY ajW+Mxs42cZ36xf+O+spMALMO+kXLucUN627tDy20eoHNrfwW5HyidHMHw6CrSFu4TPU BU4g==
- In-reply-to: <20190316214155.GH10429@sym.noone.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20190316214155.GH10429@sym.noone.org>
Hello all,
<snip>
> Haven't had time to bisect this, but I got this backtrace from git
> HEAD:
On #zsh (thanks okdana, Mikachu and DHowett) we noticed that the bug
was introduced between 5.3.1 and 5.6.2.
I managed to bisect and the bug seems to originate from
https://github.com/zsh-users/zsh/commit/758966502caa6f91abcbaaebf2610609250de1fb
Once that commit is reverted the bug disappears. Mikachu noticed that
if one applies the patch below the problem is also resolved. My
understanding of the zsh code base is limited, so I don't feel
confident to submit the patch for actual inclusion in the code base:
diff --git i/Src/hist.c w/Src/hist.c
index dbdc1e4e5..972a36db2 100644
--- i/Src/hist.c
+++ w/Src/hist.c
@@ -1489,7 +1489,7 @@ hend(Eprog prog)
} else
save = 0;
}
- if (chwordpos <= 2 && !hist_keep_comment)
+ if (chwordpos <= 2)
save = 0;
else if (should_ignore_line(prog))
save = -1;
Cheers,
Wesley
--
Wesley Schwengle, Developer
Mintlab B.V., https://www.zaaksysteem.nl
E: wesley@xxxxxxxxxx
T: +31 20 737 00 05
Messages sorted by:
Reverse Date,
Date,
Thread,
Author