zsh-workers
 help / color / mirror / code / Atom feed
* core dump on parameter completion
@ 1999-07-24  9:11 Naoki Wakamatsu
  1999-07-24 13:12 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Naoki Wakamatsu @ 1999-07-24  9:11 UTC (permalink / raw)
  To: zsh-workers

3.1.6-test-2 generates core file on parameter completion,

% zsh -f
% autoload -U compinit
% compinit
% compconf completer=_approximate 
% echo $ZSH_v[TAB]zsh: 15442 segmentation fault (core dumped)  zsh -f

but, don't generetes it after complete file name once.

% zsh -f
% autoload -U compinit
% compinit
% compconf completer=_approximate 
% ls
GNUstep      ZSH_VERSION  core         lab          tmp
Mail         bin          dic          lib          typescript
% ls ZSH_v[TAB]
% ls ZSH_VERSION 
ZSH_VERSION
% echo $ZSH_v[TAB]
% echo $ZSH_NAME 
correct to:
ZSH_NAME      ZSH_VERSION   


OS: Linux 2.0.36 (Debian GNU/Linux 2.1 slink)

---
Naoki Wakamatsu
naoki-w@ht-net21.ne.jp


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: PATCH: 3.1.6-test-3: core dump on parameter completion
@ 1999-08-02  9:00 Sven Wischnowsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 1999-08-02  9:00 UTC (permalink / raw)
  To: zsh-workers


Peter Stephenson wrote:

> Got it!  There's a missing dupstring(); the cline struct is an invalid
> pointer (it's the positional parameter list from the function redefining
> compadd, which will be freed before the line is inserted), even though the
> returned completion r is correctly duplicated.  The only thing I can't
> answer is whether r is really supposed to be different from w at this
> point, but let's assume so until proved otherwise.

Yes, that's correct. Other parts of the code may shorten the strings
in the cline lists (my last matching-code overhaul may have changed
the code so that the strings aren't really modified any more, but it's 
still safer).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-08-02  9:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-24  9:11 core dump on parameter completion Naoki Wakamatsu
1999-07-24 13:12 ` Peter Stephenson
1999-07-27 14:55   ` PATCH: 3.1.6-test-3: " Peter Stephenson
1999-08-02  9:00 Sven Wischnowsky

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).