[all-commits] [llvm/llvm-project] 42fc99: asan_memory_profile: Fix for deadlock in memory pr...
Sanjeet Karan Singh via All-commits
all-commits at lists.llvm.org
Tue Apr 4 16:42:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 42fc9929ab591fe0aefdbaad529fe5087293c641
https://github.com/llvm/llvm-project/commit/42fc9929ab591fe0aefdbaad529fe5087293c641
Author: Sanjeet Karan Singh <ssingh6 at ciena.com>
Date: 2023-04-04 (Tue, 04 Apr 2023)
Changed paths:
M compiler-rt/lib/asan/asan_memory_profile.cpp
Log Message:
-----------
asan_memory_profile: Fix for deadlock in memory profiler code.
Calling symbolization directly from stopTheWorld was causing deadlock.
For libc dep systems, symbolization uses dl_iterate_phdr, which acquire a
dl write lock. It could deadlock if the lock is already acquired by one of
suspended.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D146990
More information about the All-commits
mailing list