zsh-workers
 help / color / mirror / code / Atom feed
* Lockup on tab completion with compinit+list_packed
@ 2001-05-06 14:51 Andreas Ferber
  2001-05-06 23:59 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Ferber @ 2001-05-06 14:51 UTC (permalink / raw)
  To: zsh-workers

Hi,

Recently zsh totally locked up using 100% CPU on doing a tab
completion.

I can reproduce this actually with (running zsh -f):

kallisto% echo $ZSH_VERSION
3.1.9-dev-8
kallisto% ls
alsa-modules-2.4.4-int1-vlan101-nf20010428_0.5.10b-4+p3+1.kallisto.0_i386.deb
alsa-modules-2.4.4-int1-vlan101-nf20010428_0.5.10b-4+p3+2.kallisto.0_i386.deb
alsa-modules-2.4.4-int1-vlan101-nf20010504_0.5.10b-4+p3+1.kallisto.0_i386.deb
kallisto% autoload compinit
kallisto% compinit
kallisto% setopt list_packed 
kallisto% ls <----- here it locks up on pressing TAB once, after the space

If I leave out "setopt list_packed", completion works fine, as does
without the "compinit". Only the combination of the two (in any order)
leads to lockup.

The odd is, with another set of files, with very similar names, it
works perfectly well. For example:

kallisto% ls alsa-modules-2.4.3-ac
             ^<TAB>

On first tab, it completes up to the "-ac". If I then continue to type
in the name and eventually try completing again, everything is fine
for the files

alsa-modules-2.4.3-ac1_0.5.10b-4+p3+kallisto.1.0_i386.deb
alsa-modules-2.4.3-ac14-int1-vlan101-nf20010426-swapb3_0.5.10b-4+p3+1.kallisto.0_i386.deb
alsa-modules-2.4.3-ac1-dc_0.5.10b-4+p3+kallisto.1.0_i386.deb

but it locks up again for

alsa-modules-2.4.3-ac4-int1-nf20010411-dc1_0.5.10b-4+p3+kallisto.1.0_i386.deb
alsa-modules-2.4.3-ac4-int1-nf20010411-dc1_0.5.10b-4+p3+kallisto.1.1_i386.deb
alsa-modules-2.4.3-ac5-int1-nf20010413-dc1_0.5.10b-4+p3+kallisto.1.0_i386.deb

(regardless of how much of the filename I actually typed in)

If I press <TAB> twice after getting to the "-ac", all 6 files show up
fine in the listing.

If I [sl]trace the locked process, no activity shows up, so the
process seems to be doing some internal calculations in an endless
loop. Due to time constraints, I could not look any closer on the
problem.

Please contact me if you need any further information or if I should
do any further investigation.

Andreas

PS: Please Cc me on replies as I don't read the mailinglist.
-- 
<SomeLamer> what's the difference between chattr and chmod?
<SomeGuru> SomeLamer: man chattr > 1; man chmod > 2; diff -u 1 2 | less
	-- Seen on #linux on irc


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

* Re: Lockup on tab completion with compinit+list_packed
  2001-05-06 14:51 Lockup on tab completion with compinit+list_packed Andreas Ferber
@ 2001-05-06 23:59 ` Bart Schaefer
  2001-05-07  8:10   ` Sven Wischnowsky
  2001-05-14  6:12   ` Andreas Ferber
  0 siblings, 2 replies; 4+ messages in thread
From: Bart Schaefer @ 2001-05-06 23:59 UTC (permalink / raw)
  To: Andreas Ferber, zsh-workers

On May 6,  4:51pm, Andreas Ferber wrote:
} Subject: Lockup on tab completion with compinit+list_packed
} 
} Recently zsh totally locked up using 100% CPU on doing a tab
} completion.
} 
} I can reproduce this actually with (running zsh -f):
} 
} kallisto% echo $ZSH_VERSION
} 3.1.9-dev-8

That version is pretty old.  I'm unable to reproduce this with 4.0.1-pre-3.

One minor thing:

} kallisto% autoload compinit

You should use "autoload -U compinit" to make sure that none of your aliases
are changing the way compinit works.  But that's probably not at issue here.

-- 
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] 4+ messages in thread

* Re: Lockup on tab completion with compinit+list_packed
  2001-05-06 23:59 ` Bart Schaefer
@ 2001-05-07  8:10   ` Sven Wischnowsky
  2001-05-14  6:12   ` Andreas Ferber
  1 sibling, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2001-05-07  8:10 UTC (permalink / raw)
  To: zsh-workers; +Cc: Andreas Ferber

Bart Schaefer wrote:

> On May 6,  4:51pm, Andreas Ferber wrote:
> } Subject: Lockup on tab completion with compinit+list_packed
> } 
> } Recently zsh totally locked up using 100% CPU on doing a tab
> } completion.
> } 
> } I can reproduce this actually with (running zsh -f):
> } 
> } kallisto% echo $ZSH_VERSION
> } 3.1.9-dev-8
> 
> That version is pretty old.  I'm unable to reproduce this with 4.0.1-pre-3.

The same for me. We had some changes in that code not too long ago and
if I remember correctly, one was making it faster and another one fixed
a bug with a potentially endless loop (and I even seem to remember that
that was triggered by completion string that were so long that the shell
couldn't use more than one column).

Bye
  Sven


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


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

* Re: Lockup on tab completion with compinit+list_packed
  2001-05-06 23:59 ` Bart Schaefer
  2001-05-07  8:10   ` Sven Wischnowsky
@ 2001-05-14  6:12   ` Andreas Ferber
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Ferber @ 2001-05-14  6:12 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

On Sun, May 06, 2001 at 11:59:15PM +0000, Bart Schaefer wrote:

> } Recently zsh totally locked up using 100% CPU on doing a tab
> } completion.
> That version is pretty old.  I'm unable to reproduce this with 4.0.1-pre-3.

I checked out this version, and now it works. Thanks.

> } kallisto% autoload compinit
> You should use "autoload -U compinit" to make sure that none of your aliases
> are changing the way compinit works.  But that's probably not at issue here.

I'm actually using this in my .zshrc, but I found out that it did not
influence my problem, so I left it out in my mail.

Andreas
-- 
UNIX enhancements aren't.


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

end of thread, other threads:[~2001-05-14  6:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-06 14:51 Lockup on tab completion with compinit+list_packed Andreas Ferber
2001-05-06 23:59 ` Bart Schaefer
2001-05-07  8:10   ` Sven Wischnowsky
2001-05-14  6:12   ` Andreas Ferber

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