From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <15069404.1166690889417.JavaMail.ngmail@domain.hid> Date: Thu, 21 Dec 2006 09:48:09 +0100 (CET) From: "M. Koehrer" In-Reply-To: <31078593.1166623877982.JavaMail.ngmail@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <31078593.1166623877982.JavaMail.ngmail@domain.hid> <45894179.8060805@domain.hid> <4587E404.2050101@domain.hid> <4587B287.2060603@domain.hid> <358035.1166518774710.JavaMail.ngmail@domain.hid> <4587A2D4.3020102@domain.hid> <45879DE5.5080507@domain.hid> <7145056.1166514841031.JavaMail.ngmail@domain.hid> <4970132.1166516081275.JavaMail.ngmail@domain.hid> <2579704.1166520394117.JavaMail.ngmail@domain.hid> <4383100.1166529856857.JavaMail.ngmail@domain.hid> <13529671.1166621136153.JavaMail.ngmail@domain.hid> Subject: [Xenomai-help] Re: Re: A fairly small rtnet/Xenomai application that freezes the 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 Hi Jan, meanwhile I have done a couple of additional tests. With one of the PCs I have, I have disabled the Memory Cache to slow it dow= n. The effect was the very same.=20 I have reproduced the behaviour on another PC (also P4, but different mainb= oard). The system freezes as well. And finally, I have found out that printing out a line with printf() direct= ly after the system() call provides a workaround.Then the system is stable. I have replaced the system() call where I called rtroute with a simple call= to "ls -l" (i.e system("ls -l") ). Then the system freezes as well. It looks to me as if a system() call out of the realtime task is not proper= ly handled. An printf() after the system() call seems to move the system back on track.= .. Hope that helps a little bit to identify the issue... Regards Mathias=20 > Hi Jan, >=20 > enclosed is the ethereal dump file. > Unfortunately I do not have a slow machine... (We try to get the fastest > machines running...). >=20 > Thanks for checking the application. >=20 > Mathias > > > after a long debug-reboot-try-again-session I was able to reduce the > > problem I had > > > to a very short application that leads to a complete system freeze on= a > > 2.6.19.1 kernel. > > > As with my PC I am not able to run the NMI stuff within Xenomai, I > forward > > the application to you > > > and the list. Perhaps somebody can try out the enclosed application > with > > the latest Xenomai version > > > on 2.6.19.1. > >=20 > > Thanks for the test case, I will give this a try ASAP. > >=20 > > > Please adjust the IP settings in the C file and in the xenorun script > to > > your setup. > > > It is sufficient to send out UDP frames, if the remote device does no= t > > answer this does not hurt. > > > However the remote device should listen on a specified port to avoid > ICMP > > complains about > > > no-opened UDP ports... > > > Using Ethereal I monitored the traffic. > > > Here is the summary of it: > > > ARP request/response (from the xenorun script) > > > ARP request/response (from the applicaion) > > > UDP message to port 18765 (no answer) > > > 2 seconds later: UDP message to port 18765 (no answer) > > > 2+5=3D7 seconds later: ARP request/response (from the application) > > > 2 seconds later: UDP message to port 18765 > > > Here the system freezes. I do not see the message "Step A". > >=20 > > Could you set me the Ethereal dump for reference? Just in case the test > > does not kick immediately for me and I need to check the event flow. > >=20 > > >=20 > > > One important piece is the system() call out of the realtime > application > > to do a rtroute. > > > When I remove this call, there is no error... > > >=20 > > >=20 > > > I am using Xenomai SVN #1969 and the included 2.6.19.1 patch. Pentium= 4 > > UP. > >=20 > > Do you have a different (slower) execution platform at hand to check if > > the CPU speed as influence on the lock-up? I hope it is not the case - > > makes tracking easier. But it wouldn't be the first time. > >=20 > > >=20 > > > Any feedback on this is highly welcome! > > >=20 > >=20 > > You will get it. > >=20 > > Thanks again, > > Jan > >=20 > >=20 >=20 > --=20 > Mathias Koehrer > mathias_koehrer@domain.hid >=20 --=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