From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Jan Kiszka <jan.kiszka@domain.hid>, xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [BUG] rt_task_delete kills caller
Date: Sun, 30 Jul 2006 18:57:53 +0200 [thread overview]
Message-ID: <1154278674.4970.5.camel@domain.hid> (raw)
In-Reply-To: <17612.58055.398043.315669@domain.hid>
On Sun, 2006-07-30 at 18:48 +0200, Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
> > The second bug causing spurious RT32 signals to be notified is more of a
> > GDB issue
>
> When running the attached program inside gdb, the RT32 signal seems to
> be used as the asynchronous cancellation signal. Or at least when
> running with libthread_db.so.
>
Mm, ok. This would also correlate with GDB going south when ptracing the
asynchronous cancellation handler defined by the pthread library.
> plain text document attachment (cancel.c)
> #include <pthread.h>
>
> void *routine(void *cookie)
> {
> pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
>
> for (;;)
> ;
>
> return cookie;
> }
>
> int main(int argc, const char *argv[])
> {
> pthread_t tid;
> pthread_create(&tid, NULL, routine, NULL);
> pthread_cancel(tid);
> pthread_join(tid, NULL);
>
> return 0;
> }
--
Philippe.
prev parent reply other threads:[~2006-07-30 16:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-21 9:17 [Xenomai-core] [BUG] rt_task_delete kills caller Jan Kiszka
2006-07-21 9:38 ` Jan Kiszka
2006-07-21 12:48 ` Jan Kiszka
2006-07-21 15:31 ` Jan Kiszka
2006-07-21 16:08 ` Philippe Gerum
2006-07-30 9:23 ` Philippe Gerum
2006-07-30 16:48 ` Gilles Chanteperdrix
2006-07-30 16:57 ` Philippe Gerum [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1154278674.4970.5.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.