Hi Christian,

you need https://gerrit.fd.io/r/c/vpp/+/27268 or you can recompile with gcc 
instead.
There are a couple of crashes still, here are some fixes you might want to 
apply first:
 - https://gerrit.fd.io/r/c/vpp/+/27962
 - https://gerrit.fd.io/r/c/vpp/+/27963
 - https://gerrit.fd.io/r/c/vpp/+/27959

Best
ben

> -----Original Message-----
> From: [email protected] <[email protected]> On Behalf Of Christian
> Hopps
> Sent: samedi 1 août 2020 00:54
> To: vpp-dev <[email protected]>
> Cc: Christian Hopps <[email protected]>
> Subject: [vpp-dev] address sanitizer and unit tests not working
> 
> Hi,
> 
> I'm trying to run the unit test with address sanitizer enabled but it's
> failing to run on the latest master for me. This is building on ubuntu
> 18.04 with clang-9 installed, the build used the same sanitizer make
> option too.
> 
> Any suggestions?
> 
> Thanks,
> Chris.
> 
> [18:51:50 dak:/var/build/vpp]$ make test-debug VPP_EXTRA_CMAKE_ARGS=-
> DVPP_ENABLE_SANITIZE_ADDR=ON
> make -C /var/build/vpp/build-root PLATFORM=vpp TAG=vpp_debug vpp-install
> make[1]: Entering directory '/var/build/vpp/build-root'
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for external @@@@
> @@@@ Makefile fragment found in /var/build/vpp/build-
> data/packages/external.mk @@@@
> @@@@ Source found in /var/build/vpp/build @@@@
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for vpp @@@@
> @@@@ Makefile fragment found in /var/build/vpp/build-data/packages/vpp.mk
> @@@@
> @@@@ Source found in /var/build/vpp/src @@@@
> @@@@ Configuring external: nothing to do @@@@
> @@@@ Building external: nothing to do @@@@
> @@@@ Installing external: nothing to do @@@@
> @@@@ Configuring vpp: nothing to do @@@@
> @@@@ Building vpp in /var/build/vpp/build-root/build-vpp_debug-native/vpp
> @@@@
> ninja: no work to do.
> @@@@ Installing vpp: nothing to do @@@@
> make[1]: Leaving directory '/var/build/vpp/build-root'
> make -C test VPP_BUILD_DIR=/var/build/vpp/build-root/build-vpp_debug-
> native VPP_BIN=/var/build/vpp/build-root/install-vpp_debug-
> native/vpp/bin/vpp VPP_PLUGIN_PATH=/var/build/vpp/build-root/install-
> vpp_debug-native/vpp/lib/vpp_plugins:/var/build/vpp/build-root/install-
> vpp_debug-native/vpp/lib64/vpp_plugins
> VPP_TEST_PLUGIN_PATH=/var/build/vpp/build-root/install-vpp_debug-
> native/vpp/lib/vpp_api_test_plugins:/var/build/vpp/build-root/install-
> vpp_debug-native/vpp/lib64/vpp_api_test_plugins
> VPP_INSTALL_PATH=/var/build/vpp/build-root/install-vpp_debug-native/
> LD_LIBRARY_PATH=/var/build/vpp/build-root/install-vpp_debug-
> native/vpp/lib/:/var/build/vpp/build-root/install-vpp_debug-
> native/vpp/lib64/ EXTENDED_TESTS= PYTHON= OS_ID=ubuntu
> RND_SEED=1596235925.011464 CACHE_OUTPUT= test
> make[1]: Entering directory '/var/build/vpp/test'
> ls: cannot access '/var/build/vpp/src/plugins/sctp/test/*.py': No such
> file or directory
> make -C ext test-apps
> make[2]: Entering directory '/var/build/vpp/test/ext'
> cc -o /var/build/vpp/build-root/build-test/vapi_test/vapi_c_test -
> std=gnu99 -g -Wall -lstdc++ -pthread -I/var/build/vpp/src -
> I/var/build/vpp/build-root/install-vpp_debug-native//vpp/include -
> I/var/build/vpp/build-root/build-test/vapi_test
> /var/build/vpp/test/ext/vapi_c_test.c -L/var/build/vpp/build-root/install-
> vpp_debug-native//vpp/lib -lvppinfra -lvlibmemoryclient -lsvm -lpthread -
> lcheck -lrt -lm -lvapiclient -lsubunit
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_store_n'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_load8'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_load2'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_load4'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_set_shadow_f8'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_stack_malloc_2'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_unregister_globals'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_stack_malloc_4'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_stack_free_5'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_register_globals'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_set_shadow_00'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_stack_malloc_0'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_store2'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_store4'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_store8'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_handle_no_return'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_allocas_unpoison'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_poison_memory_region'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_load1'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_region_is_poisoned'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_unpoison_memory_region'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_set_shadow_f5'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_stack_malloc_5'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_stack_malloc_3'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_alloca_poison'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_load_n'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to `__asan_init'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_stack_malloc_1'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_report_store1'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_version_mismatch_check_v8'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to `__asan_memcpy'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to `__asan_memmove'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to
> `__asan_option_detect_stack_use_after_return'
> /var/build/vpp/build-root/install-vpp_debug-
> native//vpp/lib/libvppinfra.so: undefined reference to `__asan_memset'
> collect2: error: ld returned 1 exit status
> Makefile:31: recipe for target '/var/build/vpp/build-root/build-
> test/vapi_test/vapi_c_test' failed
> make[2]: *** [/var/build/vpp/build-root/build-test/vapi_test/vapi_c_test]
> Error 1
> make[2]: Leaving directory '/var/build/vpp/test/ext'
> Makefile:218: recipe for target 'ext-test-apps' failed
> make[1]: *** [ext-test-apps] Error 2
> make[1]: Leaving directory '/var/build/vpp/test'
> Makefile:455: recipe for target 'test-debug' failed
> make: *** [test-debug] Error 2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#17124): https://lists.fd.io/g/vpp-dev/message/17124
Mute This Topic: https://lists.fd.io/mt/75917538/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to