From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: 4.3.9: frequent crashes in completion menu selection
Date: Tue, 20 Jan 2009 10:39:07 +0000 [thread overview]
Message-ID: <20090120103907.1193e13c@news01> (raw)
In-Reply-To: <691a5d910901181547r4d569891mca406c789af2b35@mail.gmail.com>
On Sun, 18 Jan 2009 15:47:31 -0800
Bart Schaefer <schaefer@brasslantern.com> wrote:
> It looks like the loop that tries to locate the highlighted match in
> the list of completions is running one line too far, but I can't see
> why (a) there is no highlighted match and (b) having a format style
> causes this to happen.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x08109622 in domenuselect (dummy=0x8156c74, dat=0xbfe3d4b0)
> at ../../../zsh-4.0/Src/Zle/complist.c:2433
> 2433 if (*p && !mmarked(*p) && **p && mselect
Might be this simple: mtab_been_reallocated doesn't work the
first time through the loop, because we've just reset some key parameters
before the loop, and Andrey's results clearly show this is happening when
you start a new completion. That variable was added to fix a bug with
redisplaying within menu completion.
Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.118
diff -u -r1.118 complist.c
--- Src/Zle/complist.c 6 Aug 2008 02:21:03 -0000 1.118
+++ Src/Zle/complist.c 20 Jan 2009 10:36:46 -0000
@@ -2421,6 +2421,7 @@
mlines = 999999;
mlbeg = 0;
molbeg = -42;
+ mtab_been_reallocated = 0;
for (;;) {
METACHECK();
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
next prev parent reply other threads:[~2009-01-20 10:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 12:26 Andrey Borzenkov
2009-01-08 12:30 ` Peter Stephenson
2009-01-18 11:47 ` Andrey Borzenkov
2009-01-18 11:52 ` Mikael Magnusson
2009-01-18 11:56 ` Andrey Borzenkov
2009-01-18 19:24 ` Richard Hartmann
2009-01-18 23:47 ` Bart Schaefer
2009-01-20 10:39 ` Peter Stephenson [this message]
2009-01-08 15:58 ` Richard Hartmann
2009-01-08 16:02 ` Andrey Borzenkov
2009-01-08 17:55 ` Richard Hartmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090120103907.1193e13c@news01 \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).