Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
add-zle-hook-widget: infinite recursion ("job table full or recursion limit exceeded")
- X-seq: zsh-workers 39128
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: add-zle-hook-widget: infinite recursion ("job table full or recursion limit exceeded")
- Date: Tue, 30 Aug 2016 17:23:02 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=4iw WW8a1qWnAR4/6x7k+zOHwg1c=; b=0TLtA2rlWpvIsxr8l4LnqZafG36BOiTWGJA 8vuPFGVsuwdTOt0nwo7VbX7Et3sXYJ4grJ+LuvXmdlnrysFgIZVRDvoW+qh5cwAy 7LQgkKuXxYM3KDtDu7Xlcqglwu/kli8jzZ1gjTZmXZm3RoNiqSBfazIYC3ABwt85 WdNKQCFg=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=4i wWW8a1qWnAR4/6x7k+zOHwg1c=; b=oWu4uOUrJtZrgCaW+lKcX8XIh2dYrAbZ19 4oRAxINvWSq+USxMKlsDybjDSchTkDz0F0Bl91wH5w/GPjng+XPFPR054vHfm6J/ n7Fiko7uvShK0YV/uOgNMNVueJYWxpTiHVCa5tP/+Y7ZhpgOlrxbwX4kKKw1wECZ utftOQI6c=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
It's trivial to trigger:
% Src/zsh -fc 'autoload add-zle-hook-widget; f() {}; add-zle-hook-widget zle-line-pre-redraw f'
add-zle-hook-widget:182: job table full or recursion limit exceeded
zsh: exit 1 $prefix/zsh/bin/zsh -fc
Here's the trace:
% Src/zsh -x -fc 'autoload add-zle-hook-widget; f() {}; add-zle-hook-widget zle-line-pre-redraw f' 2>&1 | head -30
+zsh:1> autoload add-zle-hook-widget
+zsh:1> add-zle-hook-widget zle-line-pre-redraw f
+add-zle-hook-widget:21> '(anon)' zle-line-pre-redraw f
+(anon):2> emulate -L zsh
+(anon):5> zmodload -e zsh/zle
+(anon):5> return 1
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc (*file)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc (*evalautofunc)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc (*loadautofunc)
+add-zle-hook-widget:181> add-zle-hook-widget zle-line-pre-redraw f
+add-zle-hook-widget:21> '(anon)' zle-line-pre-redraw f
+(anon):2> emulate -L zsh
+(anon):5> zmodload -e zsh/zle
+(anon):5> return 1
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc (*file)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc (*evalautofunc)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc (*loadautofunc)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc (*)
+add-zle-hook-widget:182> [[ -o kshautoload ]]
+add-zle-hook-widget:182> add-zle-hook-widget zle-line-pre-redraw f
+add-zle-hook-widget:21> '(anon)' zle-line-pre-redraw f
+(anon):2> emulate -L zsh
+(anon):5> zmodload -e zsh/zle
+(anon):5> return 1
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc shfunc (*file)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc shfunc (*evalautofunc)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc shfunc (*loadautofunc)
+add-zle-hook-widget:178> case cmdarg shfunc loadautofunc shfunc shfunc (*)
+add-zle-hook-widget:182> [[ -o kshautoload ]]
+add-zle-hook-widget:182> add-zle-hook-widget zle-line-pre-redraw f
zsh: broken pipe $prefix/zsh/bin/zsh -x -fc 2>&1 |
zsh: done head -30
Running 'zmodload zsh/zle' before the call appears to prevent hte
problem. I can do that in my callsite (z-sy-h's "make check"), but
I assume zsh shouldn't enter an infinite loop, either.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author