Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-573

Crash on creating vhost-user interface when socket path is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • 17.01
    • Devices
    • None

      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 <return> to continue, or q <return> 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

            wojdec Wojciech Dec
            wojdec Wojciech Dec
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: