Monotosh Das wrote: > > I have applied your patch and I have received the following results: > The loop was executed for 13 times. The rt_dev_recv(....) has returned > -14... The application on the other end was not running... >> [1] -14 >> [2] -14 >> [3] -14 >> [4] -14 >> [5] -14 >> [6] -14 >> [7] -14 >> [8] -14 >> [9] -14 >> [10] -14 >> [11] -14 >> [12] -14 >> [13] -14
Those -14 are caused by the assertion that catches the bug gracefully and returns and error code instead of letting RTnet crash later on. > > This are the kernel log.... > > rt_socket_init: pending_sem.count = 0 > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL > rt_udp_recvmsg: pending_sem.count = 0 > Assertion failed! /usr/src/rtnet/stack/ipv4/udp.c:rt_udp_recvmsg:399 skb > != NULL OK, so rtdm_sem_timedwait must be wrong here. > > Now what do you suggest? As vulcano seem to have not changed the situation, please report the issue to the RTAI list now. You should refer to this thread to ease the description of the issue. I don't see any potential reason anymore why RTnet could cause this bug. As I said, the same RTnet code works flawlessly over Xenomai when being stressed identically. Anyway, I'll jump on this again once someone prove me wrong. Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users