linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Buettner <kev@primenet.com>
To: "jjs" <Jerry.Sexton@insignia.com>, <linuxppc-dev@lists.linuxppc.org>
Cc: "Kevin Buettner" <kev@primenet.com>, Michael Snyder <msnyder@cygnus.com>
Subject: Re: gdb and multi-threaded applications.
Date: Fri, 10 Mar 2000 14:32:25 -0700	[thread overview]
Message-ID: <1000310213225.ZM27738@saguaro.lan> (raw)
In-Reply-To: "jjs" <Jerry.Sexton@insignia.com> "Re: gdb and multi-threaded applications." (Mar 10,  1:03pm)


On Mar 10,  1:03pm, jjs wrote:

> Sorry I have not been back to you sooner, I have been distracted by other
> things. I tried getting a test application to exhibit the same behaviour
> with no luck. However, I did notice that before the call to pthread_create
> to start up the new thread we have the line:
>
>     pthread_sigmask(SIG_BLOCK, &fullSigMask, &sigMask);
>
> All the bits in fullSigMask are set, so this call blocks all signals to the
> calling thread. Commenting this line out makes everything work under gdb,
> the new thread gets created and doing 'info threads' after this gives me a
> list of all the threads running in the process. This implies that gdb
> requires a signal to be unblocked at the point the thread is created. If
> this is fact the case, which signal must we not block in order for correct
> operation under gdb?

SIGCHLD.

(I think.)

Background for Michael: Jerry reported a problem in which gdb (on
linux/ppc) hangs on a pthread_create().   Jerry has verified that
the thread tests in the test suite work properly on his platform,
so we know that gdb does work (some of the time) when creating
new threads.  Jerry's application is proprietary and I've asked him
to try to distill the problem into a small example that we can test.

Note to Jerry: I'd still like a small example, preferably one that
we could eventually put into the testsuite.

Kevin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-03-10 21:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-10 13:03 gdb and multi-threaded applications jjs
2000-03-10 21:32 ` Kevin Buettner [this message]
2000-03-13 13:05   ` Michael Snyder
2000-03-13 20:18   ` Michael Snyder
  -- strict thread matches above, loose matches on Subject: below --
2000-03-15 10:18 jjs
2000-02-28 15:31 jjs
2000-02-28 18:42 ` Kevin Buettner
2000-02-26 12:38 jjs
2000-02-26 16:01 ` Kevin Buettner
2000-02-23 10:09 jjs
2000-02-23 12:27 ` Martin Costabel
2000-02-23 12:40 ` Kevin Buettner

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=1000310213225.ZM27738@saguaro.lan \
    --to=kev@primenet.com \
    --cc=Jerry.Sexton@insignia.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=msnyder@cygnus.com \
    /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 NNTP newsgroup(s).