[vpp-dev] Unable to run VPP with ASAN enabled

2021-06-15 Thread jiangxiaoming
Hi experts, Here is an ASAN error when run vpp with ASAN enabled. > > [root@localhost vpp]# make > VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON build&&make debug > make[1]: Entering directory `/home/dev/code/vpp/build-root' > Arch for platform 'vpp' is native > Finding source

Re: [vpp-dev]: Unable to run VPP with ASAN enabled

2021-05-27 Thread Benoit Ganne (bganne) via lists.fd.io
Hi Rajith, > The problem seems to be due to external libraries that we have linked with > VPP. These external libraries have not been compiled with ASAN. > I could see that when those external libraries were suppressed through the > MyASAN.supp file, VPP started running with ASAN enabled. This is

Re: [vpp-dev]: Unable to run VPP with ASAN enabled

2021-05-27 Thread Rajith PR via lists.fd.io
Hi Ben, The problem seems to be due to external libraries that we have linked with VPP. These external libraries have not been compiled with ASAN. I could see that when those external libraries were suppressed through the MyASAN.supp file, VPP started running with ASAN enabled. Thanks, Rajith On

Re: [vpp-dev]: Unable to run VPP with ASAN enabled

2021-05-26 Thread Benoit Ganne (bganne) via lists.fd.io
Hi Rajith, > I was able to proceed further after setting LD_PRELOAD to the asan > library. After this i get SIGSEGV crash in asan. These dont seem to be > related to our code, as without ASAN they have been perfectly working. I suspect the opposite 😊 - ASan detects errors we do not detect in rele

Re: [vpp-dev]: Unable to run VPP with ASAN enabled

2021-05-25 Thread Rajith PR via lists.fd.io
i.py.in#1 > > > -Original Message- > > From: vpp-dev@lists.fd.io On Behalf Of Rajith PR > via > > lists.fd.io > > Sent: mardi 25 mai 2021 09:51 > > To: vpp-dev > > Subject: [vpp-dev]: Unable to run VPP with ASAN enabled > > > > Hi All, > >

Re: [vpp-dev]: Unable to run VPP with ASAN enabled

2021-05-25 Thread Benoit Ganne (bganne) via lists.fd.io
st 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 On Behalf Of Rajith PR via > lists.fd.io > Sent: mardi 25 mai 2021 09:51 > To: vpp-dev > Subject: [vpp-dev]: Unable to run VPP w

[vpp-dev]: Unable to run VPP with ASAN enabled

2021-05-25 Thread Rajith PR via lists.fd.io
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/loca