From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: 4.3.9: frequent crashes in completion menu selection
Date: Sun, 18 Jan 2009 15:47:31 -0800 [thread overview]
Message-ID: <691a5d910901181547r4d569891mca406c789af2b35@mail.gmail.com> (raw)
In-Reply-To: <2d460de70901181124l4370b10kcb2c06569607a501@mail.gmail.com>
On Sun, Jan 18, 2009 at 11:24 AM, Richard Hartmann
<richih.mailinglist@gmail.com> wrote:
> On Sun, Jan 18, 2009 at 12:47, Andrey Borzenkov <arvidjaar@newmail.ru> wrote:
>
>> Zsh crashes.
>
> Confirmed for CVS from 13.01.09
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
== (**p)->gnum)
(gdb) p p
$1 = (Cmatch **) 0x85d7a90
(gdb) p *p
$2 = (Cmatch *) 0x148
(gdb) where
#0 0x08109622 in domenuselect (dummy=0x8156c74, dat=0xbfe3d4b0)
at ../../../zsh-4.0/Src/Zle/complist.c:2433
#1 0x0808f80a in runhookdef (h=0x8156c74, d=0xbfe3d4b0)
at ../../zsh-4.0/Src/module.c:990
#2 0x080f0231 in after_complete (dummy=0x815a3dc, dat=0xbfe3d540)
at ../../../zsh-4.0/Src/Zle/compcore.c:515
#3 0x0808f86a in runhookdef (h=0x815a3dc, d=0xbfe3d540)
at ../../zsh-4.0/Src/module.c:996
#4 0x0812e71e in docomplete (lst=0)
at ../../../zsh-4.0/Src/Zle/zle_tricky.c:869
#5 0x0812d507 in expandorcomplete (args=0x8169abc)
at ../../../zsh-4.0/Src/Zle/zle_tricky.c:315
Preceding lines are:
2421 mlines = 999999;
2422 mlbeg = 0;
2423 molbeg = -42;
2424 for (;;) {
2425 METACHECK();
2426
2427 if (mline < 0 || mtab_been_reallocated) {
2428 int x, y;
2429 Cmatch **p = mtab;
2430
2431 for (y = 0; y < mlines; y++) {
2432 for (x = mcols; x > 0; x--, p++)
(gdb) p mlines
$7 = 999999
(gdb) p y
$8 = 1
(gdb) p mtab_been_reallocated
$9 = 1
The only assignment of mtab_been_reallocated = 1 is in complistmatches().
next prev parent reply other threads:[~2009-01-18 23:47 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 [this message]
2009-01-20 10:39 ` Peter Stephenson
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=691a5d910901181547r4d569891mca406c789af2b35@mail.gmail.com \
--to=schaefer@brasslantern.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).