This is weird - when you step-by-step in gdb and it works, is msg_size still 110190? Ie in the failing case, do we fail because we decode a bad msg_size or because we are missing some data?
ben > -----Original Message----- > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Kevenvy Smith > Sent: Thursday, May 26, 2022 3:42 > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] some questions about vpp_api_test hang-up > > Hi ,There: > I'm an absolute beginner at vpp. And I encountered some problems when I > start with vpp. Here is the details: > 1) if I start vpp without modifing value of item "socksvr"(use default > ) in startup.conf, and run vpp_api_test in another shell, it performances > OK. > 2) if I start vpp with modifing value of item "socksvr" to > "127.0.0.1:9000 <http://127.0.0.1:9000/> " in startup.conf, and run > vpp_api_test in another shell with "./vpp_api_test socket-name > 127.0.0.1:9000 <http://127.0.0.1:9000/> " , it performances OK, too. > 3) if I start vpp with modifing value of item "socksvr" to > "192.168.1.1:9000 <http://192.168.1.1:9000/> " in startup.conf, and run > vpp_api_test in another host(192.168.1.2) with "./vpp_api_test socket-name > 192.168.1.1:9000" ,vpp_api_test hang-up.Then I start vpp_api_test with gdb > , > > find it steps into dead cycle in function vl_socket_client_read_internal > which called by function vl_socket_client_read_internal, where at the C > file socket_client.c line 125, the value of var "msg_size" is 110190, but > the total sum of n returned by read is 102614, and all next n is -1 and > the errno is always EAGAIN. > But in the case of 3,when I start vpp with gdb and step by step, > vpp_api_test performances OK sometimes. > I don't find some valuable info on JIRA or Google. > So I am in puzzle about the matter, and I don't known whether it's a bug > or maybe my environment has some problems. If not, what should I do to > fix this ? > Other development environment infos: > Centos 7 kernel 3.10.0-1160.59.1.el7.x86_64 , Vpp version 22.02. > > > Regards, > Kevenvy
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21486): https://lists.fd.io/g/vpp-dev/message/21486 Mute This Topic: https://lists.fd.io/mt/91346308/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-