brpc
brpc copied to clipboard
tcmalloc deadlock
Thread 29 (Thread 0x7ee14ea5d700 (LWP 57194)):
#0 0x000055cee64a4250 in sys_futex ()
#1 0x000055cee64a4401 in base::internal::SpinLockDelay(int volatile*, int, int) ()
#2 0x000055cee64a40c0 in SpinLock::SlowLock() ()
#3 0x000055cee648cce4 in SpinLock::Lock() ()
#4 0x000055cee648cd8c in SpinLockHolder::SpinLockHolder(SpinLock*) ()
#5 0x000055cee6490ea2 in tcmalloc::CentralFreeList::ReleaseToSpans(void*) ()
#6 0x000055cee6490c82 in tcmalloc::CentralFreeList::ReleaseListToSpans(void*) ()
#7 0x000055cee649142e in tcmalloc::CentralFreeList::InsertRange(void*, void*, int) ()
#8 0x000055cee64a28a1 in tcmalloc::ThreadCache::ReleaseToCentralCache(tcmalloc::ThreadCache::FreeList*, unsigned int, int) ()
#9 0x000055cee64a2649 in tcmalloc::ThreadCache::ListTooLong(tcmalloc::ThreadCache::FreeList*, unsigned int) ()
#10 0x000055cee67c0505 in tc_free ()
#11 0x000055cee6119453 in bvar::detail::SamplerCollector::run (this=
Thread 19 (Thread 0x7e81d6db1700 (LWP 57459)):
#0 0x000055cee64a4250 in sys_futex ()
#1 0x000055cee64a4401 in base::internal::SpinLockDelay(int volatile*, int, int) ()
#2 0x000055cee64a40c0 in SpinLock::SlowLock() ()
#3 0x000055cee648cce4 in SpinLock::Lock() ()
#4 0x000055cee648cd8c in SpinLockHolder::SpinLockHolder(SpinLock*) ()
#5 0x000055cee64a2a57 in tcmalloc::ThreadCache::IncreaseCacheLimit() ()
#6 0x000055cee64a2a09 in tcmalloc::ThreadCache::Scavenge() ()
#7 0x000055cee67c055d in tc_free ()
#8 0x000055cee612b19b in butil::ObjectPoolbthread::Butex::LocalPool::delete_local_pool (arg=0x7ee219489a80) at incubator-brpc-0.9.7/src/butil/object_pool_inl.h:141
#9 0x000055cee610fe3a in ~ThreadExitHelper (this=0x7ee2195ce860, __in_chrg=
锁死不动了,多线程使用tcmalloc分配内存,插入数据。
遇到了同样的问题
跟这个问题有点像https://zhuanlan.zhihu.com/p/81683409
才看到,感谢,我后来通过替换成jemalloc解决的
wangjin @.***> 于2022年8月5日周五 18:41写道:
跟这个问题有点像https://zhuanlan.zhihu.com/p/81683409
— Reply to this email directly, view it on GitHub https://github.com/apache/incubator-brpc/issues/1488#issuecomment-1206305333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWYLHLRWNX7J53F53MNBQBDVXTVVNANCNFSM5APWEGJQ . You are receiving this because you commented.Message ID: @.***>