Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VPP-573] Crash on creating vhost-user interface when socket path is empty #1921

Closed
vvalderrv opened this issue Jan 31, 2025 · 1 comment
Closed

Comments

@vvalderrv
Copy link
Contributor

Description

DBGvpp# create vhost

Thread 1 "vpp_main" received signal SIGSEGV, Segmentation fault.

__strncpy_sse2_unaligned ()

at ../sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S:296

296 ../sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: No such file or directory.

#0 __strncpy_sse2_unaligned ()

at ../sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S:296

#1 0x00007ffff70635f8 in vhost_user_vui_init (vnm=0x68d7a0 <vnet_main>,

vui=0x7fffb67499dc, server_sock_fd=-1, sock_filename=0x0, 

feature_mask=18446744073709551615, sw_if_index=0x7fffb6747aac)

at /home/wdec/vpp/build-data/../vnet/vnet/devices/virtio/vhost-user.c:2540

#2 0x00007ffff7063a62 in vhost_user_create_if (vnm=0x68d7a0 <vnet_main>,

vm=0x68d160 <vlib_global_main>, sock_filename=0x0, is_server=0 '\000', 

sw_if_index=0x7fffb6747b3c, feature_mask=18446744073709551615, 

renumber=0 '\000', custom_dev_instance=4294967295, hwaddr=0x0)

at /home/wdec/vpp/build-data/../vnet/vnet/devices/virtio/vhost-user.c:2593

#3 0x00007ffff7063eac in vhost_user_connect_command_fn (

vm=0x68d160 <vlib_global_main>, input=0x7fffb6747ef0, cmd=0x7fffb5da23e4)

at /home/wdec/vpp/build-data/../vnet/vnet/devices/virtio/vhost-user.c:2689

#4 0x00007ffff74d2349 in vlib_cli_dispatch_sub_commands (

vm=0x68d160 <vlib_global_main>, cm=0x68d3c8 <vlib_global_main+616>, 

input=0x7fffb6747ef0, parent_command_index=118)

at /home/wdec/vpp/build-data/../vlib/vlib/cli.c:484

#5 0x00007ffff74d2257 in vlib_cli_dispatch_sub_commands (

vm=0x68d160 <vlib_global_main>, cm=0x68d3c8 <vlib_global_main+616>, 

input=0x7fffb6747ef0, parent_command_index=0)

at /home/wdec/vpp/build-data/../vlib/vlib/cli.c:462

#6 0x00007ffff74d262e in vlib_cli_input (vm=0x68d160 <vlib_global_main>,

--Type to continue, or q to quit--

input=0x7fffb6747ef0, function=0x7ffff77721e8 <unix_vlib_cli_output>, 

function_arg=0) at /home/wdec/vpp/build-data/../vlib/vlib/cli.c:558

#7 0x00007ffff7776a08 in unix_cli_process_input (

cm=0x7ffff79982e0 <unix_cli_main>, cli_file_index=0)

at /home/wdec/vpp/build-data/../vlib/vlib/unix/cli.c:2033

#8 0x00007ffff777746f in unix_cli_process (vm=0x68d160 <vlib_global_main>,

rt=0x7fffb6737000, f=0x0)

at /home/wdec/vpp/build-data/../vlib/vlib/unix/cli.c:2130

#9 0x00007ffff74f92d2 in vlib_process_bootstrap (_a=140736238566064)

at /home/wdec/vpp/build-data/../vlib/vlib/main.c:1216

#10 0x00007ffff629b3b0 in clib_calljmp ()

at /home/wdec/vpp/build-data/../vppinfra/vppinfra/longjmp.S:110

#11 0x00007fffb581ba80 in ?? ()

#12 0x00007ffff74f93fd in vlib_process_startup (vm=0x1, p=0x0, f=0x0)

at /home/wdec/vpp/build-data/../vlib/vlib/main.c:1238</p>

Assignee

Wojciech Dec

Reporter

Wojciech Dec

Comments

Original issue: https://jira.fd.io/browse/VPP-573

@vvalderrv
Copy link
Contributor Author

Fix is in https://gerrit.fd.io/r/#/c/4503/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant