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

Build succeeds with invalid TAG then runtime assert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • None
    • None
    • None

      If you build a debug image with TAG=debug instead of TAG=vpp_debug then you get a binary but at runtime you hit an assert as seen below.

      Building a debug image:

      make V=0 PLATFORM=vpp TAG=debug install-deb

      then running after the sample plugin is loaded results in this:

      slioch@debian:~/vpp2/build-root$ sudo ./build-debug-native/vpp/vpp -c /etc/vpp/startup.conf
      vlib_plugin_early_init:201: plugin path /usr/lib/vpp_plugins
      load_one_plugin:87: Loaded plugin: /usr/lib/vpp_plugins/sample_plugin.so.0.0.0
      /home/slioch/vpp2/build-data/../vlib/vlib/node_funcs.h:47 (vlib_get_node) assertion ` < vec_len (vm->node_main.nodes)' fails

            dbarach Dave Barach
            tfoggoa Todd Foggoa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified