Hi vpp developers,

I would like to use vpp with nc, but after the nc server has accepted the first 
connection from the nc client,
the server closes the session and the server and client end normally.

More precisely, they end after
  pthread_mutex_unlock (&q->mutex)
from
  unix_shared_memory_queue.c / unix_shared_memory_queue_add(...)
has been executed by the client.
Please have a look at the backtrace of the stack below.

Server:
sudo -E bash -c 'export LD_PRELOAD=/usr/local/lib/libvcl_ldpreload.so.0.0.0; 
./nc -l -n -v 2222'

Client:
sudo -E gdb --args ./nc -v -n 127.0.0.1 2222
(gdb) set environment LD_PRELOAD=/usr/local/lib/libvcl_ldpreload.so.0.0.0
(...)
(gdb) bt
#0  unix_shared_memory_queue_add (q=0x30046080, elem=0x7fffffff9828 ""\a0", 
nowait=0) at 
/home/palmar/dev/vpp/build-data/../src/vlibmemory/unix_shared_memory_queue.c:232
#1  0x00007ffff684f610 in vl_msg_api_send_shmem (q=0x30046080, 
elem=0x7fffffff9828 ""\a0") at 
/home/palmar/dev/vpp/build-data/../src/vlibmemory/memory_shared.c:581
#2  0x00007ffff6ebde6d in vppcom_send_connect_sock (session=0x7fffe1f1e52c, 
session_index=0) at /home/palmar/dev/vpp/build-data/../src/uri/vppcom.c:788
#3  0x00007ffff6ec2ba0 in vppcom_session_connect (session_index=0, 
server_ep=0x7fffffff98b0) at 
/home/palmar/dev/vpp/build-data/../src/uri/vppcom.c:2096
#4  0x00007ffff7bd1435 in vcom_socket_connect (__fd=__fd@entry=6, 
__addr=__addr@entry=0x688b40, __len=__len@entry=16) at 
libvcl-ldpreload/vcom_socket.c:990
#5  0x00007ffff7bcdf70 in vcom_connect (__fd=__fd@entry=6, 
__addr=__addr@entry=0x688b40, __len=__len@entry=16) at 
libvcl-ldpreload/vcom.c:1842
#6  0x00007ffff7bce08e in connect (__fd=6, __addr=0x688b40, __len=16) at 
libvcl-ldpreload/vcom.c:1862
#7  0x0000000000403ce1 in connect_with_timeout (ctimeout=-1, salen=16, 
sa=0x688b40, fd=6) at netcat.c:961
#8  remote_connect (host=host@entry=0x7fffffffe14c "127.0.0.1", port=0x688af0 
"2222", hints=...) at netcat.c:877
#9  0x000000000040219c in main (argc=<optimized out>, argv=<optimized out>) at 
netcat.c:641

Could you please let me know whether this is a known issue?

Regards,
Peter

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev
  • [vpp-dev] When ... Peter Palmár
    • Re: [vpp-d... Shrinivasan Ganapathy -X (shganapa - NETPACE INC at Cisco)

Reply via email to