Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Where to start debugging zle recursive-edit? / Ctrl-C
- X-seq: zsh-workers 39504
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Where to start debugging zle recursive-edit? / Ctrl-C
- Date: Thu, 29 Sep 2016 10:07:43 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=1k1MzfbPM4zV4f3DgBaD98IyPJfDapzkYiooTINAbGE=; b=WBO2U58WggSBsBuZLZbTYgrvcaMB740h2eQEDnQ1ZFRtosbLJNbq6yo+Bv7pgCuYog vtXHwshQ+R8p2MBF6xqS/3cNkS/P+ls71L5q5T9S8dbD2ryDWd9ymuhslfaugD0anQcg F7YrxgzlZOjLwmNrVHw6TWpw0QZCO4fbJwC3a/umyIUj66Y1vQEYWnm/8sSRRaqG//oE YbTgGrxd4cnaD2HSVeCEhF1+P6zNnx6zYBMF+KuZE56cM38IMWEn2GllLcqkpzXhefrm Ewmn5z00snuWpJtwlJES8xjcQ0yD5T/uxS4vw9Mzu8KQKDQvH/XSARMJXjV/xLAnxaBE l+EA==
- In-reply-to: <CAKc7PVAP1t=9wxA91rMdDWX5pi89Ndw1P7i6dm1o3E1DRbZp5Q@mail.gmail.com>
- 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
- References: <CAKc7PVBvm+u5QQQZo+6QEQw4bRHx1br5K-A6y_6pAuP8+KCbcQ@mail.gmail.com> <160924133140.ZM29034@torch.brasslantern.com> <CAKc7PVDu6pPaPWHSOp4dOU8+yXE_12OVccyCcXh=_=DqWVRRaw@mail.gmail.com> <160927090957.ZM12910@torch.brasslantern.com> <CAKc7PVAP1t=9wxA91rMdDWX5pi89Ndw1P7i6dm1o3E1DRbZp5Q@mail.gmail.com>
On Sep 29, 11:30am, Sebastian Gniazdowski wrote:
} Subject: Re: Where to start debugging zle recursive-edit? / Ctrl-C
}
} I've got a suspicious effect, after smoothly running no-opt binary for
} few days - couldn't recall if I spotted anything suspicious. The
} effect is message at shell startup:
}
} TRAPALRM: scalar parameter abcdef created globally in function TRAPALRM"
}
} [...]
}
} and only "setopt localoptions warncreateglobal" from z-sy-h was
} reported. Zshrc has at the end:
}
} TRAPALRM() { abcdef=$(( abcdef + 1 )); }
} TMOUT=1
So what's happening is that z-sy-h begins executing, and then *while* it
is executing, the first TMOUT occurs and TRAPALRM executes. It therefore
picks up the warncreateglobal from the z-sy-h context and so you get the
warning about the assignment to abcdef.
This could happen any time that z-sy-h is active simultaneously with the
TMOUT alarm.
} Crash related to Ctrl-C appeared in uncanny situations
} AFAIR like Ctrl-R, Ctrl-C multiple times, then menu search completion
} with also Ctrl-C, something like this, hard to reproduce.
Memory management for menu selection is known to be somewhat fragile;
other crashes have occurred there. Usually this seems to happen when
tracking of where things should be drawn on the screen gets out of
sync with the data structures describing what to draw, see for example
workers/37961 (commit f07a1bd0). It would not surprise me to find
that an ill-timed interrupt could result in the same sort of problem.
There are some queue_signals() regions in complist.c but they're very
narrowly defined.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author