From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8592118.1163777339046.JavaMail.ngmail@domain.hid> Date: Fri, 17 Nov 2006 16:28:59 +0100 (CET) From: "M. Koehrer" Subject: Re: Re: [Xenomai-help] Re: Re: What happens if task entry function returns? In-Reply-To: <455DCE75.1080300@domain.hid> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_23051_21822536.1163777339045" References: <455DCE75.1080300@domain.hid> <455DC001.2040001@domain.hid> <434646.1163765689576.JavaMail.ngmail@domain.hid> <16178634.1163773048304.JavaMail.ngmail@domain.hid> List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jan.kiszka@domain.hid, mathias_koehrer@domain.hid Cc: xenomai@xenomai.org ------=_Part_23051_21822536.1163777339045 Content-Type: multipart/alternative; boundary="----=_Part_23050_19572554.1163777339045" ------=_Part_23050_19572554.1163777339045 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 > >=20 > > Then the system hangs. >=20 > 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! >=20 > >=20 > > 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. > >=20 > > Then, I have modified the BIOS settings of the PC to disable > Hyperthreading. >=20 > [Which is recommended anyway to keep latencies bounded - HT is evil for > RT!] >=20 > > Again, no change. The same effect as with the test before. > >=20 > > 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. > >=20 > > That means, there seems to be a relation to SMP... >=20 > Probably in so far that the symptom changes. But !SMP doesn't make it go > away. >=20 > >=20 > > 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. >=20 > Ok, could you try on a non-hanging setup to grab what is happening via > strace? --=20 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=FCnsti= g und schnell mit DSL - das All-Inclusive-Paket f=FCr clevere Doppel-Sparer, nur 44,85 =80 inkl. DSL- und ISDN-Grundgeb=FChr! http://www.arcor.de/rd/emf-dsl-2 ------=_Part_23050_19572554.1163777339045-- ------=_Part_23051_21822536.1163777339045 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=strace.tgz H4sIAK/TXUUAA+1abVPiyhL2M79irp/CFmomCXmxynsPR+ORWgQLcHct2UqFZNCUkFBJcPHqnt9+ eibhJbwpgq737rTrEiYz0z3dz/R08hjFoe2QnTcVEURVFPYJwj7x+DuWsVrcwWJR0uQiLsp4R8QY F7UdJL6tWYkMotgOEdoJgyBe3Y+E0XsY9L5ChsS5J8Lu/kFv0I292I7uot0Cus42fIeWg09IktG9 HUbo08H3PDpCYm7g2z0iPEYP0dFuxfMHQxjqBy452g3jvgNf9vf3f+YR69sO7wQRrp8T6DvURcUG aORsxyFRJOwekNg56Lr7UbDvB7c/HLsPc59atc/50Zg9jMxqzaw2kVANUDRwblHH6xIUhMj1QuLE QfiQz/V6dl8SqpeVSgHp2JAK6KJea1p1s3TyxK6+1stNs4DOSxfWRb38pdQ0n+h1qVqrXp3XLhsF UFRAIlv9sK11iLHEzH5IuoHtgpn19c0M+sTPzObYzi2BuWpW/aRWrVyN55NzHcBvrCqC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