Not yet, I have a data challenge this week so i am a little bit busy...

Also, I have troubles with compiling xrootd with ASAN:

Here is my cmake command I run to compile with asan:

cmake3 -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address" -DCMAKE_MAKE_PROGRAM=/bin/make -DCMAKE_C_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++ -DCMAKE_INSTALL_PREFIX=/opt/xrootd  -Wno-dev ..

After compilation, I get this error:

[root@xrootd-ccaffy-dev01 cmake-build-build-xrootd]# xrootd
==16886==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.

I also tried this:

cmake3 -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address -static-libasan" -DCMAKE_MAKE_PROGRAM=/bin/make -DCMAKE_C_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++ -DCMAKE_INSTALL_PREFIX=/opt/xrootd  -Wno-dev ..

But after compilation, I get now another error:

[root@xrootd-ccaffy-dev01 cmake-build-build-xrootd]# xrootd
xrootd: symbol lookup error: /opt/xrootd/lib64/libXrdUtils.so.3: undefined symbol: __asan_option_detect_stack_use_after_return

I tried to add the libasan.so's directory to the LD_LIBRARY_PATH variable but this does not help.

I surely do something wrong, but I do not get what :/

Do you have any idea on what is wrong ?

Thanks in advance :)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1531#issuecomment-943097766", "url": "https://github.com/xrootd/xrootd/issues/1531#issuecomment-943097766", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1