* unknown TERM problem.
@ 2000-06-10 8:04 Tanaka Akira
2000-06-10 16:59 ` PATCH: " Bart Schaefer
2000-06-10 17:08 ` Clint Adams
0 siblings, 2 replies; 5+ messages in thread
From: Tanaka Akira @ 2000-06-10 8:04 UTC (permalink / raw)
To: zsh-workers
I found that unknown TERM causes core dump.
Z(2):akr@flux% TERM=xxx Src/zsh -f
zsh: can't find termcap info for xxx
flux% bindkey -e; autoload -U compinit; compinit -D
flux% zstyle ':completion:*:default' menu select=1
flux% ls <TAB><TAB>
CVS/zsh: segmentation fault (core dumped) TERM=xxx Src/zsh -f
Z(2):akr@flux%
--
Tanaka Akira
^ permalink raw reply [flat|nested] 5+ messages in thread
* PATCH: Re: unknown TERM problem.
2000-06-10 8:04 unknown TERM problem Tanaka Akira
@ 2000-06-10 16:59 ` Bart Schaefer
2000-06-10 17:08 ` Clint Adams
1 sibling, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 2000-06-10 16:59 UTC (permalink / raw)
To: Tanaka Akira, zsh-workers
On Jun 10, 5:04pm, Tanaka Akira wrote:
} Subject: unknown TERM problem.
}
} I found that unknown TERM causes core dump.
Actually, any terminal that doesn't have a programmable cursor will have
the same effect, e.g. TERM=dumb.
The following seems to be the correct fix; domenuselect() is a hook, so
there isn't any way to catch it before the function is entered.
Index: Src/Zle/complist.c
===================================================================
@@ -1627,6 +1627,8 @@
int space, lbeg = 0, step = 1, wrap, pl = nlnct, broken = 0, first = 1;
char *s;
+ if (!mtab)
+ return 0;
if (fdat || (dummy && (!(s = getsparam("MENUSELECT")) ||
(dat && dat->num < atoi(s))))) {
if (fdat) {
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unknown TERM problem.
2000-06-10 8:04 unknown TERM problem Tanaka Akira
2000-06-10 16:59 ` PATCH: " Bart Schaefer
@ 2000-06-10 17:08 ` Clint Adams
2000-06-10 17:13 ` Clint Adams
2000-06-10 17:18 ` Bart Schaefer
1 sibling, 2 replies; 5+ messages in thread
From: Clint Adams @ 2000-06-10 17:08 UTC (permalink / raw)
To: Tanaka Akira; +Cc: zsh-workers
> I found that unknown TERM causes core dump.
This is dying at complist.c:1733 while trying to dereference p,
which is set to NULL because mmtabp is set to NULL, I think because
mtab is set to NULL, which may be because mnew is set to 0.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unknown TERM problem.
2000-06-10 17:08 ` Clint Adams
@ 2000-06-10 17:13 ` Clint Adams
2000-06-10 17:18 ` Bart Schaefer
1 sibling, 0 replies; 5+ messages in thread
From: Clint Adams @ 2000-06-10 17:13 UTC (permalink / raw)
To: Tanaka Akira; +Cc: zsh-workers
> This is dying at complist.c:1733 while trying to dereference p,
> which is set to NULL because mmtabp is set to NULL, I think because
> mtab is set to NULL, which may be because mnew is set to 0.
Or Bart could have fixed it already.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unknown TERM problem.
2000-06-10 17:08 ` Clint Adams
2000-06-10 17:13 ` Clint Adams
@ 2000-06-10 17:18 ` Bart Schaefer
1 sibling, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 2000-06-10 17:18 UTC (permalink / raw)
To: zsh-workers
On Jun 10, 1:08pm, Clint Adams wrote:
} Subject: Re: unknown TERM problem.
}
} This is dying at complist.c:1733 while trying to dereference p,
} which is set to NULL because mmtabp is set to NULL, I think because
} mtab is set to NULL, which may be because mnew is set to 0.
And all of that is because the complist module is expecting the complete
module (I think) to have created the completion listing before it gets
started, but the listing isn't created because the terminal can't do
cursor motions and hence can't handle alwayslastprompt.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-06-10 17:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-10 8:04 unknown TERM problem Tanaka Akira
2000-06-10 16:59 ` PATCH: " Bart Schaefer
2000-06-10 17:08 ` Clint Adams
2000-06-10 17:13 ` Clint Adams
2000-06-10 17:18 ` Bart Schaefer
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).