Hi Yalei,

Thanks for checking! 

@YeXin, does this [1] fix your issue? Note that the test server implementation 
is not the most robust nor the most tested. I actually often test the reverse 
of what you did, i.e., builtin server with tcp_echo client. The tcp_echo client 
is somewhat better than the server as it can do more than 1 connection, albeit 
limited to the number of physical threads available. 

Florin

[1] https://gerrit.fd.io/r/#/c/14027/ <https://gerrit.fd.io/r/#/c/14027/>

> On Aug 7, 2018, at 3:07 AM, wylandrea <wyland...@gmail.com> wrote:
> 
> I just tested tcp_echo in master, don't reproduce this issue.
> 
> /Yalei
> 
> yexin (F) <yexi...@huawei.com <mailto:yexi...@huawei.com>> 于2018年8月7日周二 
> 下午12:03写道:
> Hi Florin,
> 
>  
> 
> The problem observed is in v18.07, not the rc, and the line is at 1126 
> (session = pool_elt_at_index ()), sorry for wrong version last time.
> 
>  
> 
> -------------
> 
> YeXin
> 
>  
> 
> 发件人: Florin Coras [mailto:fcoras.li...@gmail.com 
> <mailto:fcoras.li...@gmail.com>] 
> 发送时间: 2018年8月6日 23:35
> 收件人: yexin (F) <yexi...@huawei.com <mailto:yexi...@huawei.com>>
> 抄送: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io>; wangyalei (A) 
> <william.wangya...@huawei.com <mailto:william.wangya...@huawei.com>>
> 主题: Re: [vpp-dev] Assertion fails in external echo server/client
> 
>  
> 
> Hi YeXin, 
> 
>  
> 
> First of all, do you see this with 18.07 or master? Secondly, I’ve checked 
> out origin/stable/1804 and at line 1126 there’s no attempt to access a pool. 
> Are you testing with rc0 or custom code?
> 
>  
> 
> Thanks, 
> 
> Florin
> 
> 
> 
> 
> On Aug 5, 2018, at 11:29 PM, yexin (F) <yexi...@huawei.com 
> <mailto:yexi...@huawei.com>> wrote:
> 
>  
> 
> The version tested is v18.04.
> 
>  
> 
> 发件人: yexin (F) 
> 发送时间: 2018年8月6日 14:22
> 收件人: 'vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io>' <vpp-dev@lists.fd.io 
> <mailto:vpp-dev@lists.fd.io>>
> 抄送: wangyalei (A) <william.wangya...@huawei.com 
> <mailto:william.wangya...@huawei.com>>
> 主题: Assertion fails in external echo server/client
> 
>  
> 
> Hi vpp-dev,
> 
>  
> 
> I get the “assertion failure” when test external echo server/client by doing 
> below:
> 
>  
> 
> 1.      Build the external test echo apps
> 
> 2.      Start vpp1 and attach the server application, `./tcp_echo uri 
> tcp://192.168.122.67/11111 <> use-svm-api`
> 
> 3.      Start vpp2 and connect to tcp_echo server from vpp prompt, `vpp# test 
> echo clients uri tcp://192.168.122.67/11111` <>
>  
> 
> Then the server crashed due to assertion failure. The error message looks 
> like:
> 
>  
> 
> ‘/vpp/src/tests/vnet/session/tcp_echo.c:1126(server_handle_fifo_event_rx) 
> assertion `! pool_is_free (em->sessions, _e)` fails’
> 
>  
> 
> ----------
> 
> YeXin
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10039): https://lists.fd.io/g/vpp-dev/message/10039 
> <https://lists.fd.io/g/vpp-dev/message/10039>
> Mute This Topic: https://lists.fd.io/mt/24206621/675152 
> <https://lists.fd.io/mt/24206621/675152>
> Group Owner: vpp-dev+ow...@lists.fd.io <mailto:vpp-dev+ow...@lists.fd.io>
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
> <https://lists.fd.io/g/vpp-dev/unsub>  [fcoras.li...@gmail.com 
> <mailto:fcoras.li...@gmail.com>]
> -=-=-=-=-=-=-=-=-=-=-=-
> 
>  
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10056): https://lists.fd.io/g/vpp-dev/message/10056 
> <https://lists.fd.io/g/vpp-dev/message/10056>
> Mute This Topic: https://lists.fd.io/mt/24217935/675329 
> <https://lists.fd.io/mt/24217935/675329>
> Group Owner: vpp-dev+ow...@lists.fd.io <mailto:vpp-dev%2bow...@lists.fd.io>
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
> <https://lists.fd.io/g/vpp-dev/unsub>  [wyland...@gmail.com 
> <mailto:wyland...@gmail.com>]
> -=-=-=-=-=-=-=-=-=-=-=-
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10057): https://lists.fd.io/g/vpp-dev/message/10057
> Mute This Topic: https://lists.fd.io/mt/24219225/675152
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [fcoras.li...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10060): https://lists.fd.io/g/vpp-dev/message/10060
Mute This Topic: https://lists.fd.io/mt/24219225/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to