zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: coredump on C-c
Date: Fri, 27 Sep 2013 16:50:43 +0100	[thread overview]
Message-ID: <20130927165043.3b23c6f9@pws-pc.ntlworld.com> (raw)
In-Reply-To: <130926212036.ZM29497@torch.brasslantern.com>

On Thu, 26 Sep 2013 21:20:36 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> It occurs to me, though, that queuing signals all over hashtable.c may
> be an over-reaction.  Maybe the problem is just with re-entering the
> endparamscope() routine, and that's where queue_signals() is needed.

Really, we should be doing as little from signals as possible.  The fact
that the trap (immediately down (numerically) the backtrace from the bit
you quoted) is running an arbitrary function while anything else can be
happening outside the handler is a bit worrying.  I have a feeling we
decided at one time that it would be a good strategy only to have trap
handlers run at certain safe points (i.e. the reverse strategy from
blocking them at dangerous points)?

endparamscope() certainly seems an unobjectionable place to queue
signals, though.  If it turns out to be doing good, maybe the next thing
is to look through the next higher function, runshfunc(), for other
similar points.

But presumably there's nothing to prevent the shell from doing any of
the hashtable things you looked at before, except caused by actions in
the function rather than change of scope, at the point where the SIGINT
arrives and the trap gets run.

pws


  reply	other threads:[~2013-09-27 15:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26 17:52 Eitan Adler
2013-09-26 21:31 ` Bart Schaefer
2013-09-27  1:10   ` Eitan Adler
2013-09-27  3:49   ` Bart Schaefer
2013-09-27  4:20     ` Bart Schaefer
2013-09-27 15:50       ` Peter Stephenson [this message]
2013-09-27 19:50         ` Bart Schaefer
2013-09-27  5:00   ` Eitan Adler
2013-10-16 21:40   ` Eitan Adler
2013-10-17  0:04     ` Bart Schaefer

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=20130927165043.3b23c6f9@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.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).