All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: rpm@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:48:07 +0200	[thread overview]
Message-ID: <17612.58055.398043.315669@domain.hid> (raw)
In-Reply-To: <1154251439.4965.23.camel@domain.hid>

[-- Attachment #1: message body and .signature --]
[-- Type: text/plain, Size: 317 bytes --]

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.

-- 


					    Gilles Chanteperdrix.

[-- Attachment #2: cancel.c --]
[-- Type: text/plain, Size: 309 bytes --]

#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;
}

  reply	other threads:[~2006-07-30 16:48 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 [this message]
2006-07-30 16:57           ` Philippe Gerum

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=17612.58055.398043.315669@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=rpm@xenomai.org \
    --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.