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

Martin Steigerwald ms at teamix.de
Mon Mar 26 08:00:16 UTC 2012


Am Donnerstag, 22. März 2012 schrieb Axel Beckert:
> 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] 
[…] 
> > > mango% compinit
> > > mango% cd In
> > > 
> > > No reaction on tab anymore.
[…]
> > > 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").

No D state here at all:

ms at mango:~> ps aux | grep 8220 | grep -v grep
ms        8220  0.0  0.0   5760  2568 pts/13   Ss   09:37   0:00 /usr/bin/zsh

I checked it while pressing tab with

ms at mango:~> watch -n 0,1 "ps aux | grep 8220 | grep -v grep"

in a different window.

> It doesn't seem to happen with all kinds of completion but at least
> with scp completion.

I always happens with the LDAP user, even on non-NFS:

ms at mango:/etc> cd netw [… aborted by Ctrl-C …]

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

We don't have a lot of users, maybe 50 at most.

Ciao,
-- 
Martin Steigerwald - teamix GmbH - http://www.teamix.de
gpg: 19E3 8D42 896F D004 08AC A0CA 1E10 C593 0399 AE90





More information about the Pkg-zsh-devel mailing list