[all-commits] [llvm/llvm-project] ef14b7: [sanitizer] Use _thread_db_sizeof_pthread to obtai...

Florian Weimer via All-commits all-commits at lists.llvm.org
Tue Feb 8 12:46:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef14b78d9a144ba81ba02083fe21eb286a88732b
      https://github.com/llvm/llvm-project/commit/ef14b78d9a144ba81ba02083fe21eb286a88732b
  Author: Florian Weimer <fweimer at redhat.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

  Log Message:
  -----------
  [sanitizer] Use _thread_db_sizeof_pthread to obtain struct pthread size

This symbol has been exported (as an internal GLIBC_PRIVATE symbol) from libc.so.6 starting with glibc 2.34. glibc uses it internally for its libthread_db implementation to enable thread debugging on GDB, so it is unlikely to go away for now.

Fixes #52989.

Reviewed By: #sanitizers, MaskRay, vitalybuka

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




More information about the All-commits mailing list