Re: [RTnet-developers] Problem in SOCK_RAW
Brought to you by:
bet-frogger,
kiszka
|
From: Jan K. <jan...@we...> - 2006-09-19 15:51:06
|
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= dies. 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. 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? >=20 > But the behaviour is strange. > My guess is that this problem is due to some kind of semaphore or any s= ynchronization mechanism. The guess is based on which information? >=20 >=20 > Any clues for wath is happening? Nope. 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. BTW, you are on RTAI? What version, patch, gcc? Jan |