Re: Usrsocktest app example fails

2020-02-25 Thread Xiang Xiao
I try the test on simulator, and all cases pass without exception, maybe you can try the simulator in your environment to ensure your modification don't affect the system. On Mon, Feb 24, 2020 at 7:31 PM Oleg Evseev wrote: > Hi Xiang, > > I've checked https://github.com/apache/incubator-nuttx/pu

Re: Usrsocktest app example fails

2020-02-24 Thread Oleg Evseev
Hi Xiang, I've checked https://github.com/apache/incubator-nuttx/pull/354 PR. It fixed issues it supposed to fix, thanks. But I've still have semaphore assertion running test case WakeBlockingConnectMultiThread in do_wake_test() on third call in loop of sem_post(&tid_releasesem) when tidx is 2.

Re: Usrsocktest app example fails

2020-02-22 Thread Xiang Xiao
The semaphore assertion look like the memory corrruption(maybe the stack too small) which platform you are running. On Sat, Feb 22, 2020 at 6:52 PM Oleg Evseev wrote: > > Hi Xiang, > > I can check it only on Monday, thanks! > > But, by the way, in commits you mentioned several errors in usrsockte

Re: Usrsocktest app example fails

2020-02-22 Thread Oleg Evseev
Hi Xiang, I can check it only on Monday, thanks! But, by the way, in commits you mentioned several errors in usrsocktest that looks different than on my first screenshot (especially debug assertion failed somewhere inside semaphore). Maybe there will still be problems due to my wrong settings. Wi

Re: Usrsocktest app example fails

2020-02-22 Thread Xiang Xiao
Oleg, try this PR: https://github.com/apache/incubator-nuttx/pull/354 with Masayuki and my patch, all test in usrsocktest should pass now. Actually, all fail is very minor: 1.Set the different errno 2.Foget to check NULL pointer 3.Don't zero the sockaddr padding bytes ,usrsock work well very even w

Re: Usrsocktest app example fails

2020-02-21 Thread Oleg Evseev
Hi Masayuki, Thanks for the work! Looking forward to new PRs. пт, 21 февр. 2020 г. в 08:42, Ishikawa, Masayuki (SHES) < masayuki.ishik...@sony.com>: > Hi, Oleg, > > > > Though I am not an author of the code, > > I found a couple of bugs both usrsocktest and nuttx. > > I will send PRs later. > >

Re: Usrsocktest app example fails

2020-02-20 Thread Oleg Evseev
Turned on DEBUG_ASSERTIONS, DEBUG_NET_ERROR=y, DEBUG_NET_INFO=y, DEBUG_NET_WARN=y, left only WakeWithSignal test in usrsocktest example, got hardfault in debug assertion somewhere in semaphores nsh> Starting unit-tests... Testing group "WakeWithSignal" => usrsockdev_open: opening /dev/usrsock usrs

Usrsocktest app example fails

2020-02-20 Thread Oleg Evseev
Hi all, Trying to run usrsocktest example from app: [image: изображение.png] 1) first two failed test in NoBlockRecv and BlockRecv fail because ret = recvfrom(sd, data, datalen, 0, (FAR struct sockaddr *)&remoteaddr, &addrlen); fills sin_zero in remoteaddr with some notzero values. [image: и