mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2026-10-24 14:03:22 +03:00
ae603dccd68512bb9760da654283fd3b26dc7961
Musl 1.2.3 and before call malloc() in pthread_atfork(),
which may result in a deadlock:
PartitionRoot::EnableThreadCacheIfSupported()
::partition_alloc::internal::ScopedGuard guard{lock_};
ThreadCache::Create(this);
ThreadCache::ThreadCache()
PlatformThread::CurrentId()
InitAtFork::InitAtFork()
pthread_atfork()
malloc()
ShimMalloc()
PartitionAllocFunctionsInternal::Malloc()
PartitionRoot::AllocInternal()
PartitionRoot::AllocInternalNoHooks()
PartitionRoot::RawAlloc()
::partition_alloc::internal::ScopedGuard guard{internal::PartitionRootLock(this)};
Languages
C++
79.3%
Python
16.2%
C
1.2%
Objective-C++
1%
Rust
0.7%
Other
1.5%