From: Jochen Behnke <JK.Behnke@domain.hid>
To: Jochen Behnke <JK.Behnke@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] App with pthreads using rt_task_shadow locks up
Date: Thu, 15 Mar 2007 17:17:21 +0100 [thread overview]
Message-ID: <451199191@domain.hid> (raw)
Hello,
after hours of searching, I have finally found the problem.
It was a bug in my "SimpleRPC" library. The thread function, responsible for the "lockup", mainly constists of an endless loop ( while(pObj->nRun) ) that polls a request queue. This was not a problem as long as this thread was a standard pthread. Turning this thread into a real-time task by adding a call to rt_task_shadow at the beginning of the thread function (before the while loop) resulted in a frozen linux system.
I used to work with the following system
Gentoo Linux
Linux Kernel 2.6.17 (IPIPE 1.4)
Xenomai 2.2.3
Now that I know, that upgrading to Xenomai 2.3.0 is not a problem, I plan to upgrade to the 2.3.x branch.
Regards
Jochen
>
> Hello Gilles,
>
> > Jochen Behnke wrote:
> > > Hello Gilles,
> > >
> > > thanks for your response.
> > > At the moment I try to cut down my application to the minimum.
> > > I also will install the latest version of the xenomai 2.2.x branch (2.2.5) and check whether I can reproduce the fault. As I noticed that some functions have been changed (rt_mutex_lock/unlock no longer exist in Xenomai 2.3.x, they obviously have been renamed for some reason) I would rather stick to the 2.2.x branch. Is that reasonable in your opinion ?
> > > Will the 2.2.x branch be maintained in the future ?
> > >
> > > Thanks again.
> > >
> > > Jochen
> >
> > Please do not forget to CC the list.
> I'm sorry. I just used the wrong reply button.
>
> >
> > rt_mutex_lock/rt_mutex_unlock were renamed
> > rt_mutex_acquire/rt_mutex_release to avoid a conflict, as documented in
> > API.CHANGES
> I will have a look at this.
>
> >
> > Please try with Xenomai 2.3.0, or better with trunk. The aim of this
> > check is for us to avoid chasing bugs that were already solved. For
> > example if you are using fork() in your application, only I-pipe patches
> > in the trunk will solve your problem.
> At the moment I don't use fork() but I can try using 2.3.x.
> I hope that I don't have to change too much code on my side.
>
> As soon as I have results, I'll post them here.
>
> Jochen
>
> _______________________________________________________________________
> Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
> Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
next reply other threads:[~2007-03-15 16:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-15 16:17 Jochen Behnke [this message]
2007-03-15 16:47 ` [Xenomai-help] App with pthreads using rt_task_shadow locks up Philippe Gerum
-- strict thread matches above, loose matches on Subject: below --
2007-03-16 7:12 Jochen Behnke
2007-03-15 18:34 Jochen Behnke
2007-03-15 18:51 ` Philippe Gerum
2007-03-13 19:03 Jochen Behnke
[not found] <448721993@domain.hid>
2007-03-13 18:12 ` Gilles Chanteperdrix
2007-03-12 16:02 Jochen Behnke
2007-03-12 16:09 ` 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=451199191@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.