All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jochen Behnke <JK.Behnke@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] App with pthreads using rt_task_shadow locks up
Date: Mon, 12 Mar 2007 17:02:06 +0100	[thread overview]
Message-ID: <447063209@domain.hid> (raw)

Hello,

I am currently porting software form a windows based control system to Xenomai. The application creates 3 realtime tasks which build the core of the control unit. Up to this point everything worked fine. The next milestone of this project is to integrate network communication using sockets and pthreads with the control system. The implementation of my - let's call it "SimpleRPC" -  library uses sockets and pthreads. At runtime this library creates at least 3 pthreads (1 that listens for incoming connections, 1 that performs socket I/O per connected client, 1 that executes the requested functions). As the functions, that are called by the workerthread, use xenomai mutexes to synchronize critical sections of code, the workerthread needs to be a realtime task scheduled by xenomai. So I use rt_task_shadow, to "convert" the pthread into a xenomai realtime task. When this code is executed, my application locks up and I have to restart the whole system. When I remove the rt_task_shadow call everything is fine, except for the calls to rt_mutex_lock that return an error code because the calling context is not a realtime task.

I am using
Xenomai 2.2.3
Linux Kernel 2.6.17

What's wrong ?
How can I debug this problem ?

Any hint is appreciated.


Jochen


P.S.:
Is there an easy way to search the xenomai mail archives ? At the moment I walk through them more or less manually.




_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179





             reply	other threads:[~2007-03-12 16:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 16:02 Jochen Behnke [this message]
2007-03-12 16:09 ` [Xenomai-help] App with pthreads using rt_task_shadow locks up Gilles Chanteperdrix
     [not found] <448721993@domain.hid>
2007-03-13 18:12 ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2007-03-13 19:03 Jochen Behnke
2007-03-15 16:17 Jochen Behnke
2007-03-15 16:47 ` Philippe Gerum
2007-03-15 18:34 Jochen Behnke
2007-03-15 18:51 ` Philippe Gerum
2007-03-16  7:12 Jochen Behnke

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=447063209@domain.hid \
    --to=jk.behnke@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.