Re: [RTnet-developers] Problem in SOCK_RAW
Brought to you by:
bet-frogger,
kiszka
|
From: Jorge A. <j-a...@cr...> - 2006-09-19 17:01:19
|
Em Ter=C3=A7a, 19 de Setembro de 2006 16:50, escreveu: > Jorge Almeida wrote: > > Hello to all, > >=20 > > I'm testing the SOCK_RAW functionality in the rtnet framework for long = periods of time and a problem is happening. > > I will try to describe it: > >=20 > > I'm making tests sending 1.000.000 (one milion messages), with an inter= val of 5 ms each. > > After some time, more than 100.000 messages, the host were the test is = running has a strange behaviour, the program does not return but the bash d= ies. I must make the login phase again to enter the host. > > The messages stop of being sent (I'm monitoring the network with ethere= al). > >=20 > > In the /proc i find some data about the file descriptor used by the soc= ket (/proc/rtai/rtdm/open_fildes) > > Index Locked Device > > 0 0 PACKET_RAW > >=20 > > I think this is OK because the socket was never closed. >=20 > Because the sender somehow died I think. But why does the console also > die? That's not a typical program error. Anything on the kernel console? In attach follows the messages file for one session where the problem happe= ns >=20 > >=20 > > But the behaviour is strange. > > My guess is that this problem is due to some kind of semaphore or any s= ynchronization mechanism. >=20 > The guess is based on which information? Because it only happens in a very high number of messages and not in a smal= l number. Maybe a variable that overflows or anything like that. >=20 > >=20 > >=20 > > Any clues for wath is happening? >=20 > Nope. >=20 > If there are no signs anywhere, I would first try to run your scenario > over a similar time using some vanilla RTnet version with normal packet > sockets. Have you tried this before? Just to exclude that there are > major stability issues. I've tested with SOCK_DGRAM two times, one OK the other the same problem. I= 'm doing some more tests with SOCK_DGRAM. >=20 > BTW, you are on RTAI? What version, patch, gcc? I'm using RTAI 3.4 test1, with gcc-4.1.0, with patch HAL IPIPE-NOTHREADS 1.= 3-08 I'm gonna try with rtai 3.4 now. >=20 > Jan >=20 >=20 =2D-=20 Jorge Almeida j-a...@cr... DISCLAIMER: This message may contain confidential information or privileged= material and is intended only for the individual(s) named. If you are not a= named addressee and mistakenly received this message you should not copy or= otherwise disseminate it: please delete this e-mail from your system and no= tify the sender immediately. E-mail transmissions are not guaranteed to be s= ecure or error-free as information could be intercepted, corrupted, lost, de= stroyed, arrive late or incomplete or contain viruses. Therefore, the sender= does not accept liability for any errors or omissions in the contents of th= is message that arise as a result of e-mail transmissions. Please request a = hard copy version if verification is required. Critical Software, SA.=0A |