How are you starting VPP? If this is through 'make test' then chances are the 
culprit is the interaction of asan, clang and python [1].
The easy way to fix is to rebuild with gcc instead of clang, eg.
~# make rebuild VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON CC=gcc-9

Best
ben

[1] 
https://gerrit.fd.io/r/c/vpp/+/27268/3/src/vpp-api/python/vpp_papi/vpp_ffi.py.in#1

> -----Original Message-----
> From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Rajith PR via
> lists.fd.io
> Sent: mardi 25 mai 2021 09:51
> To: vpp-dev <vpp-dev@lists.fd.io>
> Subject: [vpp-dev]: Unable to run VPP with ASAN enabled
> 
> Hi All,
> 
> I am not able to run VPP with ASAN. Though we have been using VPP for
> sometime this is the first time we enabled ASAN in the build.
> I have followed the steps as mentioned in the sanitizer doc, can someone
> please let me know what is missed here.
> 
> Run Time Error(Missing symbol):
> 
> /usr/local/lib/librtbvpp.so:/home/supervisor/libvpp/build-root/install-
> vpp_debug-native/vpp/lib/libvppinfra.so.1.0.1: undefined symbol:
> __asan_option_detect_stack_use_after_return
> 
> 
> VPP Version : 20.09
> 
> 
> Build Command : make rebuild VPP_EXTRA_CMAKE_ARGS=-
> DVPP_ENABLE_SANITIZE_ADDR=ON
> 
> 
> Build Summary :
> 
> VPP version         : 1.0.1-3032~g4b28254fc-dirty
> VPP library version : 1.0.1
> GIT toplevel dir    : /home/supervisor/libvpp
> Build type          : debug
> C flags             : -fsanitize=address -DCLIB_SANITIZE_ADDR -Wno-
> address-of-packed-member -g -fPIC -Werror -Wall -march=corei7 -
> mtune=corei7-avx -O0 -DCLIB_DEBUG -fstack-protector -DFORTIFY_SOURCE=2 -
> fno-common
> Linker flags (apps) : -fsanitize=address
> Linker flags (libs) : -fsanitize=address
> Host processor      : x86_64
> Target processor    : x86_64
> Prefix path         :
> /opt/vpp/external/x86_64;/home/supervisor/libvpp/build-root/install-
> vpp_debug-native/external
> Install prefix      : /home/supervisor/libvpp/build-root/install-
> vpp_debug-native/vpp
> 
> 
> 
> Reference : https://fd.io/docs/vpp/master/troubleshooting/sanitizer.html
> 
> 
> Thanks,
> Rajith
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19452): https://lists.fd.io/g/vpp-dev/message/19452
Mute This Topic: https://lists.fd.io/mt/83071228/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to