Running l2_xconnect_dump (even before configuring anything on VPP) causes VPP (>=21.01) to crash.
To reproduce one may use the VAT utility.
$ make run-vat
vat# l2_xconnect_dump
rx_sw_if_index tx_sw_if_index
l2_xconnect_dump error: Misc
With VPP running in a separate terminal:
$ make run WARNING: STARTUP_CONF not defined or file doesn't exist. Running with minimal startup config: unix { interactive cli-listen /run/vpp/cli.sock gid 1000 } dpdk { no-pci } _______ _ _ _____ ___ __/ __/ _ \ (_)__ | | / / _ \/ _ \ _/ _// // / / / _ \ | |/ / ___/ ___/ /_/ /____(_)_/\___/ |___/_/ /_/ DBGvpp# /home/mlenco/dev/vpp/src/vnet/l2/l2_api.c:114 (vl_api_l2_xconnect_dump_t_handler) assertion `(swif->sw_if_index) < vec_len (l2im->configs)' fails Aborted Makefile:519: recipe for target 'run' failed make: *** [run] Error 134