From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Where to start debugging zle recursive-edit? / Ctrl-C
Date: Thu, 29 Sep 2016 11:30:20 +0200 [thread overview]
Message-ID: <CAKc7PVAP1t=9wxA91rMdDWX5pi89Ndw1P7i6dm1o3E1DRbZp5Q@mail.gmail.com> (raw)
In-Reply-To: <160927090957.ZM12910@torch.brasslantern.com>
On 27 September 2016 at 18:09, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Sep 27, 12:16am, Sebastian Gniazdowski wrote:
> }
> } have unoptimized HEAD Zsh, coredumps are set up, added some stressing
>
> If you're not seeing the problem under these circumstances, then it's
> probably a race condition that's eliminated either by taking out the
> code optimization or by adding the other processing.
It seems so, hours after I switched to CFLAGS=-O2 compiled binary,
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"
It appeared just once, not long after switching to -O2. I don't use
warn_create_global, and did a test that Mikael suggested to ensure:
function setopt() { print -r - "$funcfiletrace[1]: $0 ${(q-)@}" >>!
/tmp/setopt_data; builtin $0 "$@" }
and only "setopt localoptions warncreateglobal" from z-sy-h was
reported. Zshrc has at the end:
TRAPALRM() { abcdef=$(( abcdef + 1 )); }
TMOUT=1
PERIODIC_HOOK() { efghij=$(( efghij + 1 )); }
PERIOD=1
add-zsh-hook periodic PERIODIC_HOOK
repeat 50; do sleep 1000000 &; done
coproc cat
My aim is .recursive-edit and Ctrl-C, but just want to hook at
something first, have any backtrace, I suspect it will be easy to
connect with problems with .recursive-edit even when not directly
related to it. 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.
Best regards,
Sebastian Gniazdowski
next prev parent reply other threads:[~2016-09-29 9:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 16:26 Sebastian Gniazdowski
2016-09-24 20:31 ` Bart Schaefer
2016-09-24 20:58 ` Sebastian Gniazdowski
2016-09-25 7:09 ` Daniel Shahaf
2016-09-26 22:16 ` Sebastian Gniazdowski
2016-09-27 16:09 ` Bart Schaefer
2016-09-29 9:30 ` Sebastian Gniazdowski [this message]
2016-09-29 17:07 ` Bart Schaefer
2016-09-30 9:04 ` Sebastian Gniazdowski
2016-09-30 11:28 ` Sebastian Gniazdowski
2016-09-30 13:30 ` Sebastian Gniazdowski
2016-09-30 20:44 ` Bart Schaefer
2016-10-02 16:26 ` Sebastian Gniazdowski
2016-10-02 17:37 ` Sebastian Gniazdowski
2016-10-05 5:31 ` Sebastian Gniazdowski
2016-10-05 6:14 ` Bart Schaefer
2016-10-05 10:27 ` Sebastian Gniazdowski
2016-10-05 18:31 ` Bart Schaefer
2016-10-05 20:36 ` Sebastian Gniazdowski
2016-09-30 21:45 ` Bart Schaefer
2016-09-30 21:54 ` Sebastian Gniazdowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKc7PVAP1t=9wxA91rMdDWX5pi89Ndw1P7i6dm1o3E1DRbZp5Q@mail.gmail.com' \
--to=sgniazdowski@gmail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).