All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [BUG] normal pthreads broken
Date: Fri, 23 Jun 2006 10:50:47 +0200	[thread overview]
Message-ID: <1151052647.4438.20.camel@domain.hid> (raw)
In-Reply-To: <449AC16F.3020708@domain.hid>

On Thu, 2006-06-22 at 18:12 +0200, Jan Kiszka wrote:
> Hi Gilles,
> 
> I think some regression slipped into the rt-pthread lib. This example no
> longer works on my box (thread is not executed):

The issue is in src/skins/posix/thread.c. The trampoline does not even
attempt to fire the thread body for policy == SCHED_OTHER. Will fix.
This said, I still wonder why cyclic is affected, since it should only
create SCHED_FIFO threads, but tracing it a bit, the issue is indeed the
same one.

> 
> #include <pthread.h>
> #include <stdio.h>
> #include <sys/mman.h>
> 
> void *thread(void *arg)
> {
>         printf("thread\n");
>         return 0;
> }
> 
> main()
> {
>         pthread_t thr;
> 
>         mlockall(MCL_CURRENT|MCL_FUTURE);
> 
>         printf("create = %d\n",
>                pthread_create(&thr, NULL, thread, NULL));
>         pause();
> }
> 
> 
> This also explains why the cyclic test is broken.
> 
> Jan
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
-- 
Philippe.




  reply	other threads:[~2006-06-23  8:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 16:12 [Xenomai-core] [BUG] normal pthreads broken Jan Kiszka
2006-06-23  8:50 ` Philippe Gerum [this message]
2006-06-23  8:58   ` Philippe Gerum
2006-06-23  9:07   ` Jan Kiszka

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=1151052647.4438.20.camel@domain.hid \
    --to=rpm@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.