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

Dimitry Andric via All-commits all-commits at lists.llvm.org
Sat Aug 15 04:05:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3aecf4bdf3f87e674724ad58d94c4b728feecb2e
      https://github.com/llvm/llvm-project/commit/3aecf4bdf3f87e674724ad58d94c4b728feecb2e
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2020-08-15 (Sat, 15 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




More information about the All-commits mailing list