From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>,
zsh-workers@sunsite.auc.dk
Subject: Re: BUG: coredump with menu-select and LIST_PACKED
Date: Tue, 26 Oct 1999 16:29:03 +0000 [thread overview]
Message-ID: <991026162903.ZM1886@candle.brasslantern.com> (raw)
In-Reply-To: <199910260917.LAA13020@beta.informatik.hu-berlin.de>
On Oct 26, 11:17am, Sven Wischnowsky wrote:
} Subject: Re: BUG: coredump with menu-select and LIST_PACKED
}
} Bart Schaefer wrote:
}
} > On Oct 25, 8:06pm, Alexandre Duret-Lutz wrote:
} > } Subject: BUG: coredump with menu-select and LIST_PACKED
} > }
} > } venus% setopt listpacked
} > } venus% foo <TAB>
} > } 1 11 13 15 3 5 7 9
} > } 10 12 14 2 4 6 8 xxxxxxxxxxxxxxx
} > } venus% foo <M-m>
} > } zsh: segmentation fault (core dumped) zsh -f
} >
} > Looks like the `amatches' global is garbage. Here's a stack trace (this is
} > after patches 8412 and 8413).
} >
} > #0 0x4013c377 in clprintm (g=0x80d8168, mp=0x80c2b00, mc=0, ml=0, lastc=0,
} > width=135800832, path=0x80d1ab0 "./1", buf=0xbffff0d8)
} > at ../../../zsh-3.1.6/Src/Zle/complist.c:390
}
} Hm. I can't reproduce this bug and my line complist.c:390 doesn't
} access `amatches'.
It does, but very indirectly. That line is (was, before your huge patch;
I don't know yet now):
for (i = (width ? width : mcols); i--; ) {
390 mtab[mx + mm + i] = mp;
mgtab[mx + mm + i] = g;
}
The value of `i' comes from `width' which comes a few call frames up from
`amatches->width', which is trash (a huge number).
} So I have to ask: can someone tell me how to reproduce this with a
} `zsh -f'?
The instructions that Alexandre gave were exactly what I did to produce
the stack trace.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1999-10-26 16:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-26 9:17 Sven Wischnowsky
1999-10-26 16:29 ` Bart Schaefer [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-10-25 19:06 Alexandre Duret-Lutz
1999-10-25 17:26 ` Bart Schaefer
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=991026162903.ZM1886@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).