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

Florian Weimer via All-commits all-commits at lists.llvm.org
Tue Feb 8 14:03:56 PST 2022

  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cfe202a679a0c3cd5aa71ec2497885ef596ea7b
  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

(cherry picked from commit ef14b78d9a144ba81ba02083fe21eb286a88732b)

More information about the All-commits mailing list