Hi, 

vnet_bind_uri can only be called from main thread. If a worker wants to start 
listening, you should rpc the request to main thread with 
vlib_rpc_call_main_thread.

Regards,
Florin

> On Jul 6, 2020, at 3:46 AM, [email protected] wrote:
> 
> [Edited Message Follows]
> 
> HI,
> I am trying to run a VPP application on multicore env and get a crash when I 
> call 'vnet_bind_uri'. If I run in just without workers in startup.conf, I 
> dont get any crash. Please if someone can help me understand why is this 
> crash coming?
> 
> I am using VPP 20.01 on a Ubuntu VM:
> 
> startup.conf:
> unix {
>    nodaemon
>    interactive \
>    cli-listen /run/vpp/cli.sock
>    log /tmp/vpp.log
>    full-coredump
>   poll-sleep-usec 100
> }
> api-trace {
>    on
> }
>
> socksvr {
>   default
> }
> cpu {
>   main-core 0
>   workers 1
> }
>
> dpdk {
>     dev 0000:02:04.0
> }
>
> socksvr { socket-name /tmp/vpp-api.sock}
> 
> 
> GDB:
> 
> Thread 1 "vpp_main" received signal SIGABRT, Aborted.
> 0x00007f5dd1f86428 in __GI_raise (sig=sig@entry=6) at 
> ../sysdeps/unix/sysv/linux/raise.c:54
> 54      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
> (gdb) bt
> #0  0x00007f5dd1f86428 in __GI_raise (sig=sig@entry=6) at 
> ../sysdeps/unix/sysv/linux/raise.c:54
> #1  0x00007f5dd1f8802a in __GI_abort () at abort.c:89
> #2  0x0000000000407510 in os_panic () at 
> /home/aishwarya/BN/vpp-20.01/src/vpp/vnet/main.c:355
> #3  0x00007f5dd234dfb2 in debugger () at 
> /home/aishwarya/BN/vpp-20.01/src/vppinfra/error.c:84
> #4  0x00007f5dd234e4a1 in _clib_error (how_to_die=2, function_name=0x0, 
> line_number=0, fmt=0x7f5dd3a20bc0 "%s:%d (%s) assertion `%s' fails")
>     at /home/aishwarya/BN/vpp-20.01/src/vppinfra/error.c:158
> #5  0x00007f5dd36ec397 in vnet_listen (a=0x7f5d93010b50) at 
> /home/aishwarya/BN/vpp-20.01/src/vnet/session/application.c:960
> #6  0x00007f5dd36fdb1d in vnet_bind_uri (a=0x7f5d93010b50) at 
> /home/aishwarya/BN/vpp-20.01/src/vnet/session/application_interface.c:138
> #7  0x00007f5d8734aaaa in zt_app_listen (vm=0x7f5dd2b4e480 
> <vlib_global_main>, port=9993)
>     at /home/aishwarya/BN/vpp-20.01/src/plugins/zt_pkt_handler.c:1249
> #8  0x00007f5d87349987 in zt_node_create (vm=0x7f5dd2b4e480 
> <vlib_global_main>) at 
> /home/aishwarya/BN/vpp-20.01/src/plugins/zt_pkt_handler.c:924
> #9  0x00007f5d8734d661 in zt_app_command_fn (vm=0x7f5dd2b4e480 
> <vlib_global_main>, input=0x7f5d93010f00, cmd=0x7f5d92abecc8)
>     at /home/aishwarya/BN/vpp-20.01/src/plugins/zt_pkt_handler.c:1835
> 

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

View/Reply Online (#16890): https://lists.fd.io/g/vpp-dev/message/16890
Mute This Topic: https://lists.fd.io/mt/75330170/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to