[New LWP 101485] Core was generated by `/usr/obj/usr/home/emaste/src/freebsd/tmp/usr/bin/ld --sysroot=/usr/obj/usr/home/'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000000000222d124 in pthread_setspecific () [Current thread is 1 (LWP 101369)] (gdb) bt #0 0x000000000222d124 in pthread_setspecific () #1 0x0000000000d0ac30 in void* std::__1::__thread_proxy >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}> >(lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}) () #2 0x0000000002236fe5 in thread_start () #3 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x3403000 (gdb) thread apply all bt Thread 8 (LWP 101485): #0 0x0000000002236ea0 in thread_start () Backtrace stopped: Cannot access memory at address 0x3a00ff8 Thread 7 (LWP 101347): #0 0x000000000223945a in _umtx_op_err () #1 0x000000000222d414 in __thr_umutex_lock () #2 0x0000000002230be6 in mutex_lock_common () #3 0x000000000222fbd9 in pthread_mutex_lock () #4 0x000000000227b859 in std::__1::mutex::lock() () #5 0x0000000000d0a9f9 in lld::internal::ThreadPoolExecutor::work() () #6 0x0000000000d0ac39 in void* std::__1::__thread_proxy >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}> >(lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}) () #7 0x0000000002236fe5 in thread_start () #8 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x58c6000 Thread 6 (LWP 100702): #0 0x000000000230cb8a in mmap () #1 0x00000000022c2836 in __je_pages_map () #2 0x00000000022c26c6 in __je_chunk_alloc_mmap () #3 0x00000000022c1adf in __je_chunk_alloc_wrapper () #4 0x00000000022cba6b in arena_chunk_alloc () #5 0x00000000022c8687 in arena_bin_malloc_hard () #6 0x00000000022c8351 in __je_arena_tcache_fill_small () #7 0x00000000022b87e7 in __je_tcache_alloc_small () #8 0x00000000022d82da in ialloc_body () #9 0x00000000022d81a2 in malloc () #10 0x000000000229926a in operator new(unsigned long) () #11 0x0000000000d0ba94 in std::__1::__function::__func)::{lambda()#1}, std::__1::allocator<{lambda()#1}>, void ()>::__clone() const () #12 0x0000000000d0aa6b in lld::internal::ThreadPoolExecutor::work() () #13 0x0000000000d0ac39 in void* std::__1::__thread_proxy >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}> >(lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}) () #14 0x0000000002236fe5 in thread_start () #15 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x48c2000 Thread 5 (LWP 100687): #0 0x000000000223945a in _umtx_op_err () #1 0x000000000222d414 in __thr_umutex_lock () #2 0x0000000002230be6 in mutex_lock_common () #3 0x000000000222fbd9 in pthread_mutex_lock () #4 0x000000000227b859 in std::__1::mutex::lock() () #5 0x0000000000d0a9f9 in lld::internal::ThreadPoolExecutor::work() () #6 0x0000000000d0ac39 in void* std::__1::__thread_proxy >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}> >(lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}) () #7 0x0000000002236fe5 in thread_start () #8 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x3b3b000 Thread 4 (LWP 100643): #0 0x000000000223945a in _umtx_op_err () #1 0x000000000222d414 in __thr_umutex_lock () #2 0x0000000002230be6 in mutex_lock_common () #3 0x000000000222fbd9 in pthread_mutex_lock () #4 0x000000000227b859 in std::__1::mutex::lock() () #5 0x0000000000d0a9f9 in lld::internal::ThreadPoolExecutor::work() () #6 0x0000000000d0ac39 in void* std::__1::__thread_proxy >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}> >(lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}) () #7 0x0000000002236fe5 in thread_start () #8 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x42cc000 Thread 3 (LWP 100621): #0 0x00000000022304a8 in check_and_init_mutex () #1 0x000000000222fbc6 in pthread_mutex_lock () #2 0x00000000022be733 in __je_malloc_mutex_lock () #3 0x00000000022c5429 in __je_arena_malloc_hard () ---Type to continue, or q to quit--- #4 0x00000000022d72a7 in __je_iallocztm () #5 0x00000000022d7c85 in a0ialloc () #6 0x00000000022a93f0 in _rtld_allocate_tls () #7 0x0000000002233c6e in _tcb_ctor () #8 0x0000000002232d73 in _thr_alloc () #9 0x0000000002236714 in pthread_create () #10 0x0000000000d0a968 in lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const () #11 0x0000000000d0a8c9 in void* std::__1::__thread_proxy >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}> >(std::__1::tuple >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}>) () #12 0x0000000002236fe5 in thread_start () #13 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x60d0000 d 2 (LWP 101452): #0 0x000000000223945c in _umtx_op_err () #1 0x000000000222d860 in _thr_umtx_timedwait_uint () #2 0x0000000002237348 in cond_wait_common () #3 0x0000000002289862 in std::__1::condition_variable::wait(std::__1::unique_lock&) () #4 0x0000000000d0d71b in void lld::parallel_for_each >**>, void lld::elf::LinkerDriver::link >(llvm::opt::InputArgList&)::{lambda(lld::elf::InputSectionBase >*)#1}>(std::__1::__wrap_iter >**>, void lld::elf::LinkerDriver::link >(llvm::opt::InputArgList&)::{lambda(lld::elf::InputSectionBase >*)#1}, void lld::elf::LinkerDriver::link >(llvm::opt::InputArgList&)::{lambda(lld::elf::InputSectionBase >*)#1}) () #5 0x0000000000d04f04 in void lld::elf::LinkerDriver::link >(llvm::opt::InputArgList&) () #6 0x0000000000cfee88 in lld::elf::LinkerDriver::main(llvm::ArrayRef, bool) () #7 0x0000000000cfe337 in lld::elf::link(llvm::ArrayRef, bool, llvm::raw_ostream&) () #8 0x0000000000e80807 in main () Thread 1 (LWP 101369): #0 0x000000000222d124 in pthread_setspecific () #1 0x0000000000d0ac30 in void* std::__1::__thread_proxy >, lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}> >(lld::internal::ThreadPoolExecutor::ThreadPoolExecutor(unsigned int)::{lambda()#1}::operator()() const::{lambda()#1}) () #2 0x0000000002236fe5 in thread_start () #3 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x3403000