[Pkg-zsh-devel] Bug#663982: Bug#663982: zsh: autocompletion does not work anymore after compinit

Axel Beckert abe at debian.org
Thu Mar 22 10:27:54 UTC 2012


Hi,

Frank Terbeck wrote:
> Martin Steigerwald wrote:
> > auto completion stopped worked since this week. This might be related
> > to an upgrade of Z-Shell. It is related configuration, with an empty
> > .zshrc it works. But with the recommended configuration from the
> > system administrator it does not.
> >
> > I found it to stop working after compinit. With empty configuration:
> >
> > mango% cd Infrastruktur/ [aborted with Ctrl-C]
> > mango% autoload -Uz compinit
> > mango% cd Infrastruktur/ [aborted with Ctrl-C]
> 
> Before you're running `compinit', the function-based completion system
> is *NOT* online yet. Zsh will fall back to the older compctl system.
> 
> > mango% compinit
> > mango% cd In
> >
> > No reaction on tab anymore.
> 
> When you say "no reaction" do you mean that zsh eats up all CPU or does
> it actually hang without and CPU utilisation at all?
>
> > But this only happens for *one* user that uses a home directory on NFS.
> 
> If NFS is in play it could also be bad performance with certain options.
> Does the shell hang or does completion just take a very very long time?
> As in "minutes"?

I ran into this too, after I bumped my zshrc to the newest grml zshrc
on Debian Stable with NFS home and about 5000 users in NIS. So I'm not
sure if it has the same reason, but it definitely has the same
symptoms.

I'd say 5 to 10 minutes or so. Ctrl-C doesn't help. Just waiting. The
zsh process is in the "uninterruptable sleep" state (aka "D" aka "disk
waiting").

It doesn't seem to happen with all kinds of completion but at least
with scp completion.
 
> My *guess* is that something triggers user-name lookups which may take a
> very long time with a lot of users in networked environments. But like I
> said, it's a guess for now...

I think the direction is the right one...

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5





More information about the Pkg-zsh-devel mailing list