songgaoye commented on PR #3768:
URL: https://github.com/apache/brpc/pull/3768#issuecomment-7077720665
TSAN on master branch with test `reuse_key_during_thread_exit`
```shell
[ RUN ] KeyTest.reuse_key_during_thread_exit
WARNING: ThreadSanitizer: data race
Read of size 8 by thread T2:
bthread::SubKeyTable::clear(unsigned int)
src/bthread/key.cpp:109
bthread::KeyTable::~KeyTable()
bthread::cleanup_pthread(void*)
Previous write of size 8 by main thread:
bthread_key_delete
src/bthread/key.cpp:664
KeyTest_reuse_key_during_thread_exit_Test::TestBody
test/bthread_key_unittest.cpp:294
Location is global 'bthread::s_key_info'
SUMMARY: ThreadSanitizer: data race
src/bthread/key.cpp:109 in bthread::SubKeyTable::clear(unsigned int)
```
--
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]