Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 4.3.9: frequent crashes in completion menu selection
- X-seq: zsh-workers 26373
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: 4.3.9: frequent crashes in completion menu selection
- Date: Tue, 20 Jan 2009 10:39:07 +0000
- In-reply-to: <691a5d910901181547r4d569891mca406c789af2b35@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <200901081526.48797.arvidjaar@xxxxxxxxxx> <200901081230.n08CUXTB010409@xxxxxxxxxxxxxx> <200901181447.54147.arvidjaar@xxxxxxxxxx> <2d460de70901181124l4370b10kcb2c06569607a501@xxxxxxxxxxxxxx> <691a5d910901181547r4d569891mca406c789af2b35@xxxxxxxxxxxxxx>
On Sun, 18 Jan 2009 15:47:31 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author