Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A repeating core, just sharing backtrace
- X-seq: zsh-workers 43159
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: A repeating core, just sharing backtrace
- Date: Tue, 10 Jul 2018 17:12:19 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GYpaJuytmGKoH3MPcxpVMzFqtK6PvIg0iBFUzurPGGw=; b=jJes0w1xEFYzgbSbBcRzMAO5FQmrDVnZPoWWvWs+VGqEaCDEDJLwGrn0kOwdmDqZ3/ egWHoLbmyRZBzLD6iPUtRSD4+iKM1sJBlhhp7jkfyq1Eo+LUuO71dcAWUFCg+kEpWpZY of9c2+0amIybnzdy+6k5V/BlTlHYCUestP0mIz6iQUMTJs0Dl0bxkAGWeg2w61yeKO+5 t6bni//dpMlpcDWcLdaagjNScZwM6KdGSVrQeM2rHoWFCtM/rH3QbMcdy8Rv2yLQldaZ DKV+ft6MldB9MlFeHcDZ7wEA7mU4+xpZttqvrU7KJCK/TS52vtN/YA/+cgLiEaZoVpOi 74qA==
- In-reply-to: <20180710133834eucas1p20aa4ca380dfa7544a37e00accad3ecea~ABX6FaDE52812528125eucas1p2T@eucas1p2.samsung.com>
- 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: <CAKc7PVDcW6SRsk7XtjvNkj49C2-o-_BmQywYizh=QOvu5z16iw@mail.gmail.com> <CGME20180705134128epcas4p426987f777de70dfe2dfacda469b39424@epcas4p4.samsung.com> <CAKc7PVBQn-ZjZ1T0TLqofETRiRw3xTExJ3aN10FWPqEQSi180w@mail.gmail.com> <20180710143319.340e1bdf@camnpupstephen.cam.scsc.local> <20180710133834eucas1p20aa4ca380dfa7544a37e00accad3ecea~ABX6FaDE52812528125eucas1p2T@eucas1p2.samsung.com>
On 10 July 2018 at 15:38, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> On Tue, 10 Jul 2018 14:33:19 +0100
> Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
>> diff --git a/Src/exec.c b/Src/exec.c
>> index 5864020..47a4567 100644
>> --- a/Src/exec.c
>> +++ b/Src/exec.c
>> @@ -4418,7 +4418,9 @@ gethere(char **strp, int typ)
>> while ((c = hgetc()) == '\t' && strip)
>> ;
>> for (;;) {
>> - if (bptr == buf + bsiz) {
>> + if (bptr >= buf + bsiz - 1) {
>
> ... make that "-2", because we need to allow for two *more* updates.
> The previous logic just allowed for where we'd already got to, because
> it just needed to check one position. That doesn't work any more.
I've tested if core still repeats (who knows), then I've updated and
recompiled zsh, then tested 3 times the script invocation that caused
segfault, and there was no such problem anymore. I've also checked if
tests pass.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author