[all-commits] [llvm/llvm-project] a3e843: On FreeBSD, add -pthread to ASan dynamic compile f...

Dimitry Andric via All-commits all-commits at lists.llvm.org
Tue Aug 18 03:41:38 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: a3e8436475242e4d4b8669840f3bf954a538f23f
      https://github.com/llvm/llvm-project/commit/a3e8436475242e4d4b8669840f3bf954a538f23f
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    M compiler-rt/test/asan/lit.cfg.py

  Log Message:
  -----------
  On FreeBSD, add -pthread to ASan dynamic compile flags for tests

Otherwise, lots of these tests fail with a CHECK error similar to:

==12345==AddressSanitizer CHECK failed: compiler-rt/lib/asan/asan_posix.cpp:120 "((0)) == ((pthread_key_create(&tsd_key, destructor)))" (0x0, 0x4e)

This is because the default pthread stubs in FreeBSD's libc always
return failures (such as ENOSYS for pthread_key_create) in case the
pthread library is not linked in.

Reviewed By: arichardson

Differential Revision: https://reviews.llvm.org/D85082

(cherry picked from commit 3aecf4bdf3f87e674724ad58d94c4b728feecb2e)




More information about the All-commits mailing list