unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Doug Evans <xdje42@gmail.com>
To: Mark H Weaver <mhw@netris.org>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: Need to block SIGCHLD in libgc and guile internal threads
Date: Sat, 30 Aug 2014 10:40:06 -0700	[thread overview]
Message-ID: <CAP9bCMTsLcQHaEKs7hOfg=OYOJH=vNo0-bP=O2TWjjKyn3=uKw@mail.gmail.com> (raw)
In-Reply-To: <87mwan19l7.fsf@netris.org>

On Fri, Aug 29, 2014 at 10:36 AM,  <mhw@netris.org> wrote:
> On master, where we now require gc-7.2 or later, I guess we should be
> able to simplify this and block all signals.
>
> However, it's not clear how to backport this to stable-2.0, which does
> not even have a finalization thread, and yet gdb bug 17247 occurs with
> Guile 2.0.11.  Any idea how to prevent the problem on stable-2.0?

For gdb my plan is to block SIGCHLD before initializing guile and
unblock it afterwards.
That'll work regardless of guile version (assuming no new internal
guile threads get created afterwards).
For stable-2.0 you could do a similar thing I guess: block every
signal not expected before
initializing libgc and undo that afterwards.
[taking care to not block signals libgc uses internally I guess,
e.g. SIGPWR, SIGXCPU. I'm not sure if libgc checks and fails
to initialize or unblocks them]
[and, for completeness sake, we're only talking about asynchronous
signals ... not SIGSEGV, etc.]



      reply	other threads:[~2014-08-30 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26  8:14 Need to block SIGCHLD in libgc and guile internal threads Doug Evans
2014-08-26 16:41 ` Doug Evans
2014-08-29 17:36 ` mhw
2014-08-30 17:40   ` Doug Evans [this message]

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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP9bCMTsLcQHaEKs7hOfg=OYOJH=vNo0-bP=O2TWjjKyn3=uKw@mail.gmail.com' \
    --to=xdje42@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=mhw@netris.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).