==3667743==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffc01c66408 at pc 0x7f4f2d716fdd bp 0x7ffc01c657c0 sp 0x7ffc01c657b8
READ of size 8 at 0x7ffc01c66408 thread T0
#0 0x7f4f2d716fdc in aliyun_log_sdk_v6::BodyTransfer::read(char*, unsigned long) (/root/.cache/bazel/_bazel_root/627d8e9262bcbc9cbd7a081bd4207a81/execroot/_main/bazel-out/k8-dbg/bin/tests/unittests/cpp/common/base/../../
../../../_solib_k8/libexternal_Saliyun-log-cpp-sdk~_Slibaliyun-log-cpp-sdk.so+0x7dfdc)
#1 0x7f4f2d71114a in sendBody external/aliyun-log-cpp-sdk~/adapter.cpp:145
#2 0x7f4f2d5ff835 in Curl_fillreadbuffer external/curl~/lib/transfer.c:235
#3 0x7f4f2d603518 in readwrite_upload external/curl~/lib/transfer.c:880
#4 0x7f4f2d604be7 in Curl_readwrite external/curl~/lib/transfer.c:1142
#5 0x7f4f2d5c837b in multi_runsingle external/curl~/lib/multi.c:2443
#6 0x7f4f2d5c9a24 in curl_multi_perform external/curl~/lib/multi.c:2740
#7 0x7f4f2d570c5a in easy_transfer external/curl~/lib/easy.c:679
#8 0x7f4f2d5710c8 in easy_perform external/curl~/lib/easy.c:769
#9 0x7f4f2d571107 in curl_easy_perform external/curl~/lib/easy.c:788
#10 0x7f4f2d713494 in aliyun_log_sdk_v6::LOGAdapter::Send(std::string const&, std::string const&, int, std::string const&, std::string const&, std::map<std::string, std::string, std::lessstd::string, std::allocator<std
::pair<std::string const, std::string> > > const&, std::string const&, int, aliyun_log_sdk_v6::HttpMessage&, long) external/aliyun-log-cpp-sdk~/adapter.cpp:364
#11 0x7f4f2d72a531 in aliyun_log_sdk_v6::LOGClient::SendRequest(std::string const&, std::string const&, std::string const&, std::string const&, std::map<std::string, std::string, std::lessstd::string, std::allocator<st
d::pair<std::string const, std::string> > > const&, std::map<std::string, std::string, std::lessstd::string, std::allocator<std::pair<std::string const, std::string> > >&, aliyun_log_sdk_v6::HttpMessage&) external/aliyun-l
og-cpp-sdk~/client.cpp:398
#12 0x7f4f2d72b958 in aliyun_log_sdk_v6::LOGClient::PostLogStoreLogs(std::string const&, std::string const&, aliyun_log_sdk_v6::pb::LogGroup const&, std::string const&) external/aliyun-log-cpp-sdk~/client.cpp:460
#13 0x7f4f2d72aabf in aliyun_log_sdk_v6::LOGClient::PostLogStoreLogs(std::string const&, std::string const&, std::string const&, std::vector<aliyun_log_sdk_v6::LogItem, std::allocator<aliyun_log_sdk_v6::LogItem> > const&
, std::string const&) external/aliyun-log-cpp-sdk~/client.cpp:411
#14 0x557f59624845 in main tests/unittests/cpp/common/base/logging_test.cpp:477
#15 0x7f4f2cc29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#16 0x7f4f2cc29e3f in __libc_start_main_impl ../csu/libc-start.c:392
#17 0x557f596238e8 (/root/.cache/bazel/_bazel_root/627d8e9262bcbc9cbd7a081bd4207a81/execroot/_main/bazel-out/k8-dbg/bin/tests/unittests/cpp/common/base/logging_test+0xb8e8)
==3667743==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffc01c66408 at pc 0x7f4f2d716fdd bp 0x7ffc01c657c0 sp 0x7ffc01c657b8
READ of size 8 at 0x7ffc01c66408 thread T0
#0 0x7f4f2d716fdc in aliyun_log_sdk_v6::BodyTransfer::read(char*, unsigned long) (/root/.cache/bazel/_bazel_root/627d8e9262bcbc9cbd7a081bd4207a81/execroot/_main/bazel-out/k8-dbg/bin/tests/unittests/cpp/common/base/../../
../../../_solib_k8/libexternal_Saliyun-log-cpp-sdk~_Slibaliyun-log-cpp-sdk.so+0x7dfdc)
#1 0x7f4f2d71114a in sendBody external/aliyun-log-cpp-sdk~/adapter.cpp:145
#2 0x7f4f2d5ff835 in Curl_fillreadbuffer external/curl~/lib/transfer.c:235
#3 0x7f4f2d603518 in readwrite_upload external/curl~/lib/transfer.c:880
#4 0x7f4f2d604be7 in Curl_readwrite external/curl~/lib/transfer.c:1142
#5 0x7f4f2d5c837b in multi_runsingle external/curl~/lib/multi.c:2443
#6 0x7f4f2d5c9a24 in curl_multi_perform external/curl~/lib/multi.c:2740
#7 0x7f4f2d570c5a in easy_transfer external/curl~/lib/easy.c:679
#8 0x7f4f2d5710c8 in easy_perform external/curl~/lib/easy.c:769
#9 0x7f4f2d571107 in curl_easy_perform external/curl~/lib/easy.c:788
#10 0x7f4f2d713494 in aliyun_log_sdk_v6::LOGAdapter::Send(std::string const&, std::string const&, int, std::string const&, std::string const&, std::map<std::string, std::string, std::lessstd::string, std::allocator<std
::pair<std::string const, std::string> > > const&, std::string const&, int, aliyun_log_sdk_v6::HttpMessage&, long) external/aliyun-log-cpp-sdk~/adapter.cpp:364
#11 0x7f4f2d72a531 in aliyun_log_sdk_v6::LOGClient::SendRequest(std::string const&, std::string const&, std::string const&, std::string const&, std::map<std::string, std::string, std::lessstd::string, std::allocator<st
d::pair<std::string const, std::string> > > const&, std::map<std::string, std::string, std::lessstd::string, std::allocator<std::pair<std::string const, std::string> > >&, aliyun_log_sdk_v6::HttpMessage&) external/aliyun-l
og-cpp-sdk~/client.cpp:398
#12 0x7f4f2d72b958 in aliyun_log_sdk_v6::LOGClient::PostLogStoreLogs(std::string const&, std::string const&, aliyun_log_sdk_v6::pb::LogGroup const&, std::string const&) external/aliyun-log-cpp-sdk~/client.cpp:460
#13 0x7f4f2d72aabf in aliyun_log_sdk_v6::LOGClient::PostLogStoreLogs(std::string const&, std::string const&, std::string const&, std::vector<aliyun_log_sdk_v6::LogItem, std::allocator<aliyun_log_sdk_v6::LogItem> > const&
, std::string const&) external/aliyun-log-cpp-sdk~/client.cpp:411
#14 0x557f59624845 in main tests/unittests/cpp/common/base/logging_test.cpp:477
#15 0x7f4f2cc29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#16 0x7f4f2cc29e3f in __libc_start_main_impl ../csu/libc-start.c:392
#17 0x557f596238e8 (/root/.cache/bazel/_bazel_root/627d8e9262bcbc9cbd7a081bd4207a81/execroot/_main/bazel-out/k8-dbg/bin/tests/unittests/cpp/common/base/logging_test+0xb8e8)