#25 possible bug in completion

unreproducible
closed
nobody
Completion (18)
5
2005-02-21
2004-01-16
Eric Moors
No

I have encountered a problem with zsh and completion. When I hit
tab, to request completion on $PS1 two times, zsh appears to eat up
all processor time, and appears to be stuck in a loop. It does not
respond to ctrl-C anymore. The only way I found to kill it was with a
SIGKILL. This looks like a genuine bug to me.

% zsh --version
zsh 4.0.6 (i386-redhat-linux-gnu)

% prompt elite2

% echo $PS1 <TAB>

which expands $PS1, so I get

% echo %\{^[\[01\;36m%\}\(%\{^[\[22\;36m%\}%n%\{^[\[01\;30m%\}
@%\{^[\[22\;
36m%\}%m%\{^[\[01\;36m%\}\)%\{^[\[01\;36m%\}\(%\{^[\[22\;36m%\}%
\!%\{^[\[01\;
30m%\}/%\{^[\[22\;36m%\}pts%\{^[\[01\;36m%\}\)%\{^[\[01\;36m%\}\(%
\{^[\[22\;
36m%\}%D\{%I:%M%P\}%\{^[\[01\;30m%\}:%\{^[\[22\;36m%\}%D\{%
m/%d/%y\}%\{^[\[01\;
36m%\}\)%\{^[\[01\;30m%\}-%\{^[\[00m%\}"
"%\{^M%\}%\{^[\[01\;36m%\}\(%\{^[\[22\;36m%\}%\#%\{^[\[01\;30m%\}
:%\{^[\[22\;
36m%\}%\~%\{^[\[01\;36m%\}\)%\{^[\[01\;30m%\}-%\{^[\[00m%\}\

now if I hit <TAB>, zsh starts using full processor time, uninterruptible
as
far as I can tell, only kill -9 will make it stop.

% bindkey | grep -i "\^I"
"^I" expand-or-complete
"^[^I" self-insert-unmeta

Not sure if the rest makes any sense to anyone here,
% setopt -x

+_expand:76> eval exp=(
%\\{\\[01\\\;36m%\\}\\\(%\\{\\[22\\\;36m%\\}%n%\\{\\[01\ \\;30m%\\}@%\\{\\[22\\\;36m%\\}%m%\\{\\[01\\\;36m%\\}\\\)%\\{\\[01\\\;
36m%\\}\\\ (%\\{\\[22\\\;36m%\\}%\\\!%\\{\\[01\\\;30m%\\}/%\\{\\[22\\\;36m%\\}
pts%\\{\\[01\ \\;36m%\\}\\\)%\\{\\[01\\\;36m%\\}\\\(%\\{\\[22\\\;36m%\\}%D\\{%I:%
M%P\\}%\\{\\[
01\\\;30m%\\}:%\\{\\[22\\\;36m%\\}%D\\{%m/%d/%y\\}%\\{\\[01\\\;
36m%\\}\\\)%\\{\\ [01\\\;30m%\\}-%\\{\\[00m%\\}\""
%\\}%\\{\\[01\\\;36m%\\}\\\(%\\{\\[22\\\;36m%\\}%\\\#%\\{\\[01\\\;30m%
\\}:%\\{\\ [22\\\;36m%\\}%\\\~%\\{\\[01\\\;36m%\\}\\\)%\\{\\[01\\\;30m%\\}-%
\\{\\[00m%\\}\\ \ )

And here it hangs. AFAICT indefinetely.

Ive tried this in zsh 4.0.6, 4.0.9 and 4.1.1 and all versions
show this behaviour

Eric

Discussion

  • Oliver Kiddle
    Oliver Kiddle
    2004-03-30

    Logged In: YES
    user_id=22969

    I can't reproduce this. What do your configuration files
    contain? Or. even better start by running zsh -f and slowly
    add bits of your setup until you can reproduce the problem.

    Note that we don't use this bug tracker. In general bug
    reports are better off sent to the mailing list at
    zsh-workers@sunsite.dk

     
  • Oliver Kiddle
    Oliver Kiddle
    2004-03-30

    • milestone: --> unreproducible
     
  • Eric Moors
    Eric Moors
    2005-02-21

    • status: open --> closed