undefined symbol: __asan_option_detect_stack_use_after_return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux