undefined symbol: __asan_option_detect_stack_use_after_return
Jeffrey Walton
noloader@gmail.com
Sat Mar 9 08:53:00 GMT 2019
I'm building libunistring on Fedora 29 with GCC 8.3.
-fsanitize=address was added to CFLAGS and LDFLAGS. Link is drive
through GCC, and I see the flag is present:
/bin/sh ../libtool --tag=CC --mode=link gcc -g2 -O2
-fsanitize=address -march=native -fPIC -no-undefined -version-info
3:0:1 ... -o libunistring.la ... -ldl -lpthread
The library's self tests fail at runtime:
gmake: symbol lookup error: lib/.libs/libunistring.so.2: undefined symbol:
__asan_option_detect_stack_use_after_return
libasan is installed:
$ sudo dnf install libasan
Package libasan-8.3.1-2.fc29.x86_64 is already installed.
UBsan is handled properly by GCC.
Any ideas why GCC is not linking Asan libraries?
Thanks in advance.
More information about the Gcc-help
mailing list