klzgrad ae603dccd6 musl: allocator: Avoid deadlock in pthread_atfork
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)};
2026-09-25 09:05:57 +08:00
2026-09-24 08:04:25 +08:00
S
Description
Make a fortune quietly
BSD-3-Clause
699 MiB
Languages
C++ 79.3%
Python 16.2%
C 1.2%
Objective-C++ 1%
Rust 0.7%
Other 1.5%