Subject: Re: [Xenomai-core] [BUG] normal pthreads broken From: Philippe Gerum In-Reply-To: <1151052647.4438.20.camel@domain.hid> References: <449AC16F.3020708@domain.hid> <1151052647.4438.20.camel@domain.hid> Content-Type: text/plain Date: Fri, 23 Jun 2006 10:58:01 +0200 Message-Id: <1151053081.4438.21.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core On Fri, 2006-06-23 at 10:50 +0200, Philippe Gerum wrote: > 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, Oops, wrong. It first creates normal threads, then calls setschedparam to move them to the FIFO policy. So that's ok. > but tracing it a bit, the issue is indeed the > same one. > > > > > #include > > #include > > #include > > > > 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.