Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bvar泄漏 #1418

Closed
qq1033731787 opened this issue May 31, 2021 · 1 comment
Closed

bvar泄漏 #1418

qq1033731787 opened this issue May 31, 2021 · 1 comment

Comments

@qq1033731787
Copy link

Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7f3abaafb4e0 in operator new(unsigned long, std::nothrow_t const&) ../../.././libsanitizer/asan/asan_new_delete.cc:96
#1 0x7f3aba3de0bc in bvar::detail::AgentGroup<bvar::detail::AgentCombiner<long, long, bvar::detail::AddTo >::Agent>::get_or_create_tls_agent(int) external/brpc/src/bvar/detail/agent_group.h:134
#2 0x7f3aba3db7ee in bvar::detail::AgentCombiner<long, long, bvar::detail::AddTo >::get_or_create_tls_agent() external/brpc/src/bvar/detail/combiner.h:295
#3 0x7f3aba3da439 in bvar::Reducer<long, bvar::detail::AddTo, bvar::detail::MinusFrom >::operator<<(long) external/brpc/src/bvar/reducer.h:193
#4 0x7f3ab365de54 in bthread::TaskControl::worker_thread(void*) (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0x11ae54)
#5 0x7f3ab1170dd4 in start_thread (/usr/lib64/libpthread.so.0+0x7dd4)

Indirect leak of 2112 byte(s) in 1 object(s) allocated from:
#0 0x7f3abaafb4e0 in operator new(unsigned long, std::nothrow_t const&) ../../.././libsanitizer/asan/asan_new_delete.cc:96
#1 0x7f3ab368f959 in butil::ResourcePoolbthread::TaskMeta::get_or_new_local_pool() external/brpc/src/butil/resource_pool_inl.h:440
#2 0x7f3ab368f635 in butil::ResourcePoolbthread::TaskMeta::get_resource(butil::ResourceIdbthread::TaskMeta) external/brpc/src/butil/resource_pool_inl.h:278
#3 0x7f3ab368e29b in bthread::TaskMeta
butil::get_resourcebthread::TaskMeta(butil::ResourceIdbthread::TaskMeta) external/brpc/src/butil/resource_pool.h:94
#4 0x7f3ab368413f in bthread::TaskGroup::init(unsigned long) external/brpc/src/bthread/task_group.cpp:225
#5 0x7f3ab365e7ea in bthread::TaskControl::create_group() (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0x11b7ea)
#6 0x7f3ab365da2b in bthread::TaskControl::worker_thread(void
) (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0x11aa2b)
#7 0x7f3ab1170dd4 in start_thread (/usr/lib64/libpthread.so.0+0x7dd4)

Indirect leak of 1088 byte(s) in 1 object(s) allocated from:
#0 0x7f3abaafb4e0 in operator new(unsigned long, std::nothrow_t const&) ../../.././libsanitizer/asan/asan_new_delete.cc:96
#1 0x7f3ab35f9ec4 in butil::ObjectPoolbthread::Butex::get_or_new_local_pool() (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0xb6ec4)
#2 0x7f3ab35f93f3 in butil::ObjectPoolbthread::Butex::get_object() (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0xb63f3)
#3 0x7f3ab35f848d in bthread::Butex* butil::get_objectbthread::Butex() external/brpc/src/butil/object_pool.h:72
#4 0x7f3ab35f505e in bthread::butex_create() (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0xb205e)
#5 0x7f3ab3633fd6 in unsigned int* bthread::butex_create_checked() external/brpc/src/bthread/butex.h:38
#6 0x7f3ab368137e in bthread::TaskMeta::TaskMeta() external/brpc/src/bthread/task_meta.h:99
#7 0x7f3ab369038f in butil::ResourcePoolbthread::TaskMeta::LocalPool::get(butil::ResourceIdbthread::TaskMeta) external/brpc/src/butil/resource_pool_inl.h:207
#8 0x7f3ab368f65c in butil::ResourcePoolbthread::TaskMeta::get_resource(butil::ResourceIdbthread::TaskMeta
) external/brpc/src/butil/resource_pool_inl.h:280
#9 0x7f3ab368e29b in bthread::TaskMeta* butil::get_resourcebthread::TaskMeta(butil::ResourceIdbthread::TaskMeta) external/brpc/src/butil/resource_pool.h:94
#10 0x7f3ab368413f in bthread::TaskGroup::init(unsigned long) external/brpc/src/bthread/task_group.cpp:225
#11 0x7f3ab365e7ea in bthread::TaskControl::create_group() (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0x11b7ea)
#12 0x7f3ab365da2b in bthread::TaskControl::worker_thread(void
) (/data0/zongyu/.cache/_bazel_zongyu/cb34bc82162cb9cb26e56ee7e1f716b2/execroot/data_server/bazel-out/k8-dbg/bin/data_server/test/../../_solib_k8/libexternal_Sbrpc_Slibbthread.so+0x11aa2b)
#13 0x7f3ab1170dd4 in start_thread (/usr/lib64/libpthread.so.0+0x7dd4)

@wwbmmm
Copy link
Contributor

wwbmmm commented May 4, 2023

We close this issue because it is irreproducible and inactive for a long time.
If you can reproduce this issue with the latest version of bRPC, please reopen this issue and tell us how to reproduce.

@wwbmmm wwbmmm closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants