[all-commits] [llvm/llvm-project] 1da9d8: [asan] Ignore vDSO on FreeBSD (#76223)

Rainer Orth via All-commits all-commits at lists.llvm.org
Fri Dec 29 12:39:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1da9d8aea01a433ffc0b0339c9b63285cd471980
      https://github.com/llvm/llvm-project/commit/1da9d8aea01a433ffc0b0339c9b63285cd471980
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2023-12-29 (Fri, 29 Dec 2023)

  Changed paths:
    M compiler-rt/lib/asan/asan_linux.cpp

  Log Message:
  -----------
  [asan] Ignore vDSO on FreeBSD (#76223)

Most asan tests `FAIL` on FreeBSD 14.0/amd64 with
```
==17651==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.
```
With `ASAN_OPTIONS=verbosity=2` one sees:
```
==4880==info->dlpi_name = [vdso]	info->dlpi_addr = 0xffffe780
==4880==info->dlpi_name = lib/clang/18/lib/freebsd/libclang_rt.asan-i386.so	info->dlpi_addr = 0x2808a000
```
Ignoring the vDSO as on Linux fixes this.

Tested on `amd64-pc-freebsd14.0`.




More information about the All-commits mailing list