All of lore.kernel.org
 help / color / mirror / Atom feed
From: "M. Koehrer" <mathias_koehrer@domain.hid>
To: jan.kiszka@domain.hid, mathias_koehrer@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: Re: [Xenomai-help] Re: Re: What happens if task entry function returns?
Date: Fri, 17 Nov 2006 16:28:59 +0100 (CET)	[thread overview]
Message-ID: <8592118.1163777339046.JavaMail.ngmail@domain.hid> (raw)
In-Reply-To: <455DCE75.1080300@domain.hid>


[-- Attachment #1.1: Type: text/plain, Size: 2374 bytes --]

Hi Jan!

I have modified my test to use a sleep(1) at the end of the task functions.
I have enclosed the strace logs to this mail.
The file strace.tls is the one that uses the /lib/tls/... libraries.
The file strace is the one that uses the /lib/... libraries.

I hope that helps...
BTW: I have updated to the latest SVN version of Xenomai (kernel is 2.6.17.7) - the same effect here.

Thanks for the feedback!

Regards

Mathias

> > First, I give you some more information about the error.
> > The output is the following:
> > Hi, I am task A Hello
> > Hi, I am task B World
> > Main waits for A
> > This is the end of A
> > Main waits for B
> > 
> > Then the system hangs.
> 
> You mean completely? Or just that application? Please enable the Xenomai
> watchdog to see if we have a run-away RT thread in that case.
Only the application hangs!

> 
> > 
> > I have done two tests to verify if there is an SMP issue.
> > First, I have set all CPUs in use with the application to CPU 0.
> > There was no change. However, I am able to stop the application with
> CTRL-C
> > and everything is cleaned up fine.
> > 
> > Then, I have modified the BIOS settings of the PC to disable
> Hyperthreading.
> 
> [Which is recommended anyway to keep latencies bounded - HT is evil for
> RT!]
> 
> > Again, no change. The same effect as with the test before.
> > 
> > The strange thing here is, when I use the original test (main on CPU 0, rt
> tasks on CPU 1)
> > on a SMP machine, I am not able to terminate the application with CTRL-C.
> > I have to reboot the PC.
> > 
> > That means, there seems to be a relation to SMP...
> 
> Probably in so far that the symptom changes. But !SMP doesn't make it go
> away.
> 
> > 
> > Another thing I have detected:
> > When I modify the program to replace the final rt_task_delete by
> > a sleep(1) call everything runs perfectly again.
> 
> Ok, could you try on a non-hanging setup to grab what is happening via
> strace?


-- 
Mathias Koehrer
mathias_koehrer@domain.hid


Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  44,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

[-- Attachment #2: strace.tgz --]
[-- Type: application/octet-stream, Size: 2102 bytes --]

  reply	other threads:[~2006-11-17 15:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17 12:14 [Xenomai-help] Re: Re: What happens if task entry function returns? M. Koehrer
2006-11-17 13:58 ` [Xenomai-help] " Jan Kiszka
2006-11-17 14:17   ` [Xenomai-help] " M. Koehrer
2006-11-17 15:00     ` Jan Kiszka
2006-11-17 15:28       ` M. Koehrer [this message]
2006-11-17 15:38         ` Jan Kiszka
2006-11-18 15:52     ` Philippe Gerum
2006-11-20  7:52       ` Re: [Xenomai-help] Re: Re: What happens if task entry function M. Koehrer

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=8592118.1163777339046.JavaMail.ngmail@domain.hid \
    --to=mathias_koehrer@domain.hid \
    --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.