Description
Hello,
I found a bug in VPP version 25.02 and all RC versions.
When I try activating Prometheus using the "prom enable" command, the VPP crashes.
Apr 02 16:43:32 core01 vpp[1796364]: received signal SIGSEGV, PC 0x0, faulting address 0x0
Apr 02 16:43:32 core01 vpp[1796364]: PC contains invalid memory address
Apr 02 16:43:32 core01 vpp[1796364]: #0 0x0000000000000000
Apr 02 16:43:32 core01 vpp[1796364]: #1 0x00007f7728a35e7a
Apr 02 16:43:32 core01 vpp[1796364]: from /usr/lib/x86_64-linux-gnu/vpp_plugins/prom_plugin.so
Apr 02 16:43:32 core01 vpp[1796364]: #2 0x00007f7728a3679f
Apr 02 16:43:32 core01 vpp[1796364]: from /usr/lib/x86_64-linux-gnu/vpp_plugins/prom_plugin.so
Apr 02 16:43:32 core01 vpp[1796364]: #3 0x00007f77274d0561 vlib_cli_output + 0x1181
Apr 02 16:43:32 core01 vpp[1796364]: from /lib/x86_64-linux-gnu/libvlib.so.25.02
Apr 02 16:43:32 core01 vpp[1796364]: #4 0x00007f77274d10c6 vlib_cli_input + 0x86
Apr 02 16:43:32 core01 vpp[1796364]: from /lib/x86_64-linux-gnu/libvlib.so.25.02
Apr 02 16:43:32 core01 vpp[1796364]: #5 0x00007f772753ccbb vlib_set_trace_filter_function + 0x109ab
Apr 02 16:43:32 core01 vpp[1796364]: from /lib/x86_64-linux-gnu/libvlib.so.25.02
Apr 02 16:43:32 core01 vpp[1796364]: #6 0x00007f77274e16a6 vlib_log_init + 0xa06
Apr 02 16:43:32 core01 vpp[1796364]: from /lib/x86_64-linux-gnu/libvlib.so.25.02
Apr 02 16:43:32 core01 vpp[1796364]: #7 0x00007f772749b5bc clib_calljmp + 0x18
Apr 02 16:43:32 core01 vpp[1796364]: from /lib/x86_64-linux-gnu/libvppinfra.so.25.02
Apr 02 16:43:34 core01 systemd[1]: vpp.service: Main process exited, code=killed, status=6/ABRT
I also tried to install it on another server, and I had the same issue.
My startup.conf is:
unix {
log /var/log/vpp/vpp.log
cli-listen /run/vpp/cli.sock
full-coredump
exec /root/vpp/build-root/build-vpp-native/config/bootstrap.vpp
}
cpu {
main-core 0
corelist-workers 1-3
skip-cores 0
}dpdk {
dev 0000:05:00.0 {
}
uio-driver vfio-pci
no-multi-seg
socket-mem 4096,0
log-level debug
}
buffers {
buffers-per-numa 128000
default data-size 2048
page-size default-hugepage
}plugins {
plugin default { disable }
plugin dpdk_plugin.so { enable }
plugin linux_cp_plugin.so { enable }
plugin linux_nl_plugin.so { enable }
plugin mss_clamp_plugin.so { enable }
plugin gre_plugin.so { enable }
plugin prom_plugin.so { enable }
}memory {
main-heap-size 4G
main-heap-page-size default-hugepage
default-hugepage-size 2M
}
linux-cp {
default netns dataplane
lcp-sync
lcp-auto-subint
}
With the command "vpp show plugins" I can see prom_plugin.so enabled. But if I use "prom enable" VPP crashes.
The file "/root/vpp/build-root/build-vpp-native/config/bootstrap.vpp" is empty for now.
I used debian-12.10.0-amd64-netinst.iso.