Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh eats 100% CPU with completion in /



Benjamin R. Haskell <zsh@xxxxxxxxxx>:
> On Fri, 30 Oct 2009, Frank Terbeck wrote:
> > Zsh eats 100% CPU on a colleague's laptop if you do this:
> > % cd /
> > % cd ..
> > % ./<tab>
[...]
> As a potential source of differences, it might be interesting to see 
> what's mounted in the root directory of each machine.  This reminds me of 
> Zsh scanning drives under /cygdrive/ when running under Cygwin.
> 
> Though I'm not sure how the 'cd ..' plays into it... something relating to 
> changes that dealt with current-directory tracking?  (sorry, can't recall 
> specifics -- it was on here or zsh-users within the past three months or 
> so)

Ah, I just remembered something:

After doing:
% cd /
% cd ..

My colleague could hang the shell by doing this:
% cd ~
% ./<tab>

I don't know if he could reproduce that every time, but I saw him do
it at least once.

So, I'm not to sure if what's mounted to / comes into play...
For my machine, I can tell you that I got an encrypted partition
mounted at /mnt and non-encrypted partitions at /home, /var, /tmp and
/usr.

On my colleague's system, / homes everything with respect to his linux
system, except for /boot which is a separate partition at the start of
the hard drive. I think he had a cdrom mounted at /media/cdrom0 which
/cdrom was a symlink to, IIRC. He also had his NTFS windows partition
mounted read-only at /media/something (where something is the actual
directory name, which I cannot recall right now).

Too bad this doesn't happen on a system of mine... But the fact that
Mikael can reproduce it at least means I'm not seeing things. :)

Regards, Frank



Messages sorted by: Reverse Date, Date, Thread, Author