All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: kawk@domain.hid
Cc: Xenomai GNA <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] gdb/gdbserver and pthread_cond_wait (was: gdb/gdbserver hangs...)
Date: Mon, 27 Dec 2010 18:13:10 +0100	[thread overview]
Message-ID: <1293469990.1856.11.camel@domain.hid> (raw)
In-Reply-To: <alpine.DEB.1.10.1012271744460.20479@domain.hid>

On Mon, 2010-12-27 at 17:50 +0100, Kolja Waschk wrote:
> Hi,
> 
> > The test code creates SCHED_OTHER threads. This is likely not what you
> > wanted to do.
> 
> It indeed doesn't describe my original problem, but while compacting the test code, I found that it doesn't make a difference. The behaviour is the same (or at least the symptoms are the same) ..
> 
>   1. ... with the threads created with prio>0, EXPLICIT_SCHED and SCHED_FIFO
>   2. ... with additionally the main thread being set up for SCHED_FIFO too

A possible explanation is that we know ptrace() is sending your app
linux signals, particularly with legacy linuxthreads under the hood.
Since your thread relaxes due to printf() as well, the combination of
both events normally bumps the current thread out of real-time mode AND
stops the RPI boost too, which may cause the next thread to preempt.

What happens if you only log the debug info in some global array, and
dump its contents after all threads are joined, instead of issuing
printf() in the thread body?

> 
> Kolja
> 

-- 
Philippe.




  parent reply	other threads:[~2010-12-27 17:13 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 17:30 [Xenomai-help] gdb/gdbserver hangs during rt_task_create Kolja Waschk
2010-12-21 20:03 ` Gilles Chanteperdrix
2010-12-22  9:30   ` Kolja Waschk
2010-12-22 12:11     ` Kolja Waschk
2010-12-22 12:38       ` Kolja Waschk
2010-12-22 13:50       ` Philippe Gerum
2010-12-22 14:14         ` Kolja Waschk
2010-12-22 14:17           ` Philippe Gerum
2010-12-22 14:20             ` Philippe Gerum
2010-12-22 15:25             ` Kolja Waschk
2010-12-22 15:29               ` Philippe Gerum
2010-12-22 17:18                 ` Kolja Waschk
2010-12-22 18:13                   ` Kolja Waschk
2010-12-22 18:28                     ` Philippe Gerum
2010-12-22 19:00                       ` Kolja Waschk
2010-12-23  8:53                         ` Philippe Gerum
2010-12-23 21:43                           ` Gilles Chanteperdrix
2010-12-23 21:55                             ` Waschk,Kolja
2010-12-23 22:13                               ` Gilles Chanteperdrix
2010-12-22 22:26       ` Gilles Chanteperdrix
2010-12-27 14:44     ` [Xenomai-help] gdb/gdbserver and pthread_cond_wait (was: gdb/gdbserver hangs...) Kolja Waschk
2010-12-27 16:31       ` Philippe Gerum
2010-12-27 16:53         ` Kolja Waschk
     [not found]         ` <alpine.DEB.1.10.1012271744460.20479@domain.hid>
2010-12-27 17:13           ` Philippe Gerum [this message]
2010-12-27 17:27             ` Kolja Waschk
2010-12-27 19:59               ` Philippe Gerum
2010-12-28  9:50                 ` Kolja Waschk
2010-12-28 16:42       ` [Xenomai-help] gdb/gdbserver and pthread_cond_wait Gilles Chanteperdrix
2010-12-28 18:21         ` Kolja Waschk
2010-12-28 18:30           ` Kolja Waschk
2011-01-01 22:02             ` Gilles Chanteperdrix

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=1293469990.1856.11.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=kawk@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.