YjyJeff opened a new issue, #3165:
URL: https://github.com/apache/brpc/issues/3165
**Describe the bug**
使用ASAN profile 偶发 logging 有
heap-use-after-free,请问和brpc使用方式相关吗?如果是的话什么情况下会发生呢?
**To Reproduce**
**Expected behavior**
**Versions**
OS:
Compiler:
brpc:
protobuf:
**Additional context/screenshots**
```
==78097==ERROR: AddressSanitizer: heap-use-after-free on address
0x5120024a0fc8 at pc 0x5bc7889e7a5a bp 0x7521e65ffb40 sp 0x7521e65ffb38
READ of size 8 at 0x5120024a0fc8 thread T841 (brpc_wkr:0-24)
#0 0x5bc7889e7a59 in bthread::KeyTable::get_data(bthread_key_t) const
/home/yjy/WorkSpace/xxx/contrib/brpc/src/bthread/key.cpp:187:41
#1 0x5bc7889e7a59 in bthread_getspecific
/home/yjy/WorkSpace/xxx/contrib/brpc/src/bthread/key.cpp:653:20
#2 0x5bc78885b391 in brpc::logging::get_tls_stream_array()
/home/yjy/WorkSpace/xxx/contrib/brpc/src/butil/logging.cc:1204:29
#3 0x5bc78885b391 in brpc::logging::get_or_new_tls_stream_array()
/home/yjy/WorkSpace/xxx/contrib/brpc/src/butil/logging.cc:1211:21
#4 0x5bc78885b391 in brpc::logging::CreateLogStream(char const*, int,
char const*, int)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/butil/logging.cc:1233:32
#5 0x5bc788855578 in brpc::logging::LogMessage::LogMessage(char const*,
int, char const*, int)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/butil/logging.cc:1440:15
#6 0x5bc788e1bf85 in brpc::SocketUser::AfterRevived(brpc::Socket*)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/brpc/socket.cpp:2651:5
#7 0x5bc788e0d258 in brpc::Socket::AfterRevived()
/home/yjy/WorkSpace/xxx/contrib/brpc/src/brpc/socket.cpp:951:16
#8 0x5bc788e33e17 in
std::__1::enable_if<decltype(Test<brpc::Socket>(0))::value, void>::type
brpc::VersionedRefWithId<brpc::Socket>::AfterRevivedWrapper::Call<>(brpc::Socket*)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/brpc/versioned_ref_with_id.h:322:5
#9 0x5bc788e33e17 in brpc::VersionedRefWithId<brpc::Socket>::Revive(int)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/brpc/versioned_ref_with_id.h:610:13
#10 0x5bc788e3337c in brpc::HealthCheckTask::OnTriggeringTask(timespec*)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/brpc/details/health_check.cpp:214:14
#11 0x5bc788e34cd6 in brpc::PeriodicTaskThread(void*)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/brpc/periodic_task.cpp:31:16
#12 0x5bc788985ad5 in bthread::TaskGroup::task_runner(long)
/home/yjy/WorkSpace/xxx/contrib/brpc/src/bthread/task_group.cpp:305:29
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]