Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 3.1.6-pws-6: $compstate[unambiguous] could be garbage
- X-seq: zsh-workers 8176
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>
- Subject: Re: PATCH: 3.1.6-pws-6: $compstate[unambiguous] could be garbage
- Date: Thu, 7 Oct 1999 21:36:58 +0000
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <19991007133016.A4805@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <991007104018.ZM25846@xxxxxxxxxxxxxxxxxxxxxxx> <19991007133016.A4805@xxxxxxxx>
On Oct 7, 1:30pm, Clint Adams wrote:
> Subject: Re: PATCH: 3.1.6-pws-6: $compstate[unambiguous] could be garbage
> > - } else {
> > + } else if (mnum != unambig_mnum || !ainfo || !scache) {
>
> Still getting things like
>
> _main_complete: bad pattern: x['^H8T^V@ [92]
Well, that certainly does appear that it could be caused by this or a
similar problem. `unambiguous' and `unambiguous_cursor' are the only keys
that have readonly computed values, and as it turns out they're both
computed by the same caching function, which is what caused the bug I saw
in the first place.
So if you get a debugger going and put a breakpoint in unambig_data() and
manage to see it free and reallocate the `scache' pointer twice, let us
know what `mnum', `unambig_mnum', and `ainfo' were when it happened.
One thing I tried while figuring out what was going on for the patch above
was inserting
noglob print -l x"${(@kv)^compstate}"x
immediately before line 92. That would at least tell you which assoc key
has the bad value.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author