mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
efb6433a39
ASAN report: ================================================================= ==7686==ERROR: AddressSanitizer: container-overflow on address 0x6200000bf080 at pc 0x00002a787e79 bp 0x7fffffffa2f0 sp 0x7fffffffa2e8 READ of size 4 at 0x6200000bf080 thread T0 0 0x2a787e78 in replxx::calculate_displayed_length(char32_t const*, int) obj-x86_64-linux-gnu/../contrib/replxx/src/util.cxx:66:15 1 0x2a75786c in replxx::Replxx::ReplxxImpl::dynamicRefresh(replxx::Prompt&, char32_t*, int, int) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:2201:3 2 0x2a7453f0 in replxx::Replxx::ReplxxImpl::incremental_history_search(char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:2008:3 3 0x2a73eecc in replxx::Replxx::ReplxxImpl::action(unsigned long long, replxx::Replxx::ACTION_RESULT (replxx::Replxx::ReplxxImpl::* const&)(char32_t), char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1246:29 4 0x2a73eecc in replxx::Replxx::ReplxxImpl::invoke(replxx::Replxx::ACTION, char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:318:70 5 0x2a74ed29 in std::__1::__function::__policy_func<replxx::Replxx::ACTION_RESULT (char32_t)>::operator()(char32_t&&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2221:16 6 0x2a74ed29 in std::__1::function<replxx::Replxx::ACTION_RESULT (char32_t)>::operator()(char32_t) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12 7 0x2a74ed29 in replxx::Replxx::ReplxxImpl::get_input_line() obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx🔢11 8 0x2a74dd3c in replxx::Replxx::ReplxxImpl::input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:580:8 9 0x2a2a4075 in ReplxxLineReader::readOneLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/ReplxxLineReader.cpp:112:29 10 0x2a29b499 in LineReader::readLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/LineReader.cpp:81:26 11 0xb580f02 in DB::Client::mainImpl() obj-x86_64-linux-gnu/../programs/client/Client.cpp:665:33 12 0xb575825 in DB::Client::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:300:20 13 0x2a3aff25 in Poco::Util::Application::run() obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8 14 0xb54c810 in mainEntryClickHouseClient(int, char**) obj-x86_64-linux-gnu/../programs/client/Client.cpp:2702:23 15 0xb326d8a in main obj-x86_64-linux-gnu/../programs/main.cpp:360:12 16 0x7ffff7dcbb24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24) 17 0xb2794ad in _start (/src/ch/tmp/upstream/clickhouse-asan+0xb2794ad) 0x6200000bf080 is located 0 bytes inside of 3672-byte region [0x6200000bf080,0x6200000bfed8) allocated by thread T0 here: 0 0xb3231dd in operator new(unsigned long) (/src/ch/tmp/upstream/clickhouse-asan+0xb3231dd) 1 0x2a75fb15 in void* std::__1::__libcpp_operator_new<unsigned long>(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:235:10 2 0x2a75fb15 in std::__1::__libcpp_allocate(unsigned long, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:261:10 3 0x2a75fb15 in std::__1::allocator<char32_t>::allocate(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:840:38 4 0x2a75fb15 in std::__1::allocator_traits<std::__1::allocator<char32_t> >::allocate(std::__1::allocator<char32_t>&, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:468:21 5 0x2a75fb15 in std::__1::vector<char32_t, std::__1::allocator<char32_t> >::__vallocate(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:993:37 6 0x2a75fb15 in std::__1::enable_if<(__is_cpp17_forward_iterator<char32_t*>::value) && (is_constructible<char32_t, std::__1::iterator_traits<char32_t*>::reference>::value), void>::type std::__1::vector<char32_t, std::__1::allocator<char32_t> >::assign<char32_t*>(char32_t*, char32_t*) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:1460:9 7 0x2a745242 in std::__1::vector<char32_t, std::__1::allocator<char32_t> >::operator=(std::__1::vector<char32_t, std::__1::allocator<char32_t> > const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:1405:9 8 0x2a745242 in replxx::UnicodeString::assign(replxx::UnicodeString const&) obj-x86_64-linux-gnu/../contrib/replxx/src/unicodestring.hxx:83:9 9 0x2a745242 in replxx::Replxx::ReplxxImpl::incremental_history_search(char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1993:24 10 0x2a73eecc in replxx::Replxx::ReplxxImpl::action(unsigned long long, replxx::Replxx::ACTION_RESULT (replxx::Replxx::ReplxxImpl::* const&)(char32_t), char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1246:29 11 0x2a73eecc in replxx::Replxx::ReplxxImpl::invoke(replxx::Replxx::ACTION, char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:318:70 12 0x2a74ed29 in std::__1::__function::__policy_func<replxx::Replxx::ACTION_RESULT (char32_t)>::operator()(char32_t&&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2221:16 13 0x2a74ed29 in std::__1::function<replxx::Replxx::ACTION_RESULT (char32_t)>::operator()(char32_t) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12 14 0x2a74ed29 in replxx::Replxx::ReplxxImpl::get_input_line() obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx🔢11 15 0x2a74dd3c in replxx::Replxx::ReplxxImpl::input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:580:8 16 0x2a2a4075 in ReplxxLineReader::readOneLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/ReplxxLineReader.cpp:112:29 17 0x2a29b499 in LineReader::readLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/LineReader.cpp:81:26 18 0xb580f02 in DB::Client::mainImpl() obj-x86_64-linux-gnu/../programs/client/Client.cpp:665:33 19 0xb575825 in DB::Client::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:300:20 20 0x2a3aff25 in Poco::Util::Application::run() obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8 21 0xb54c810 in mainEntryClickHouseClient(int, char**) obj-x86_64-linux-gnu/../programs/client/Client.cpp:2702:23 22 0xb326d8a in main obj-x86_64-linux-gnu/../programs/main.cpp:360:12 23 0x7ffff7dcbb24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24) HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_container_overflow=0. If you suspect a false positive see also: https://github.com/google/sanitizers/wiki/AddressSanitizerContainerOverflow. SUMMARY: AddressSanitizer: container-overflow obj-x86_64-linux-gnu/../contrib/replxx/src/util.cxx:66:15 in replxx::calculate_displayed_length(char32_t const*, int) Shadow bytes around the buggy address: 0x0c408000fdc0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c408000fdd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c408000fde0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c408000fdf0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c408000fe00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c408000fe10:[fc]fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x0c408000fe20: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x0c408000fe30: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x0c408000fe40: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x0c408000fe50: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x0c408000fe60: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==7686==ABORTING Refs: https://github.com/ClickHouse-Extras/replxx/pull/16 v2: fix test, do not use /dev/null since it client will lock it |
||
---|---|---|
.. | ||
abseil-cpp@4f3b686f86 | ||
abseil-cpp-cmake | ||
AMQP-CPP@03781aaff0 | ||
amqpcpp-cmake | ||
antlr4-runtime@672643e9a4 | ||
antlr4-runtime-cmake | ||
arrow@616b3dc76a | ||
arrow-cmake | ||
avro@e43c46e87f | ||
avro-cmake | ||
aws@7d48b2c819 | ||
aws-c-common@736a82d169 | ||
aws-c-event-stream@3bc33662f9 | ||
aws-checksums@519d6d9093 | ||
aws-s3-cmake | ||
base64@af9b331f2b | ||
base64-cmake | ||
boost@1ccbb5a522 | ||
boost-cmake | ||
boringssl@a6a2e2ab3e | ||
boringssl-cmake | ||
brotli@63be8a9940 | ||
brotli-cmake | ||
capnproto@a00ccd91b3 | ||
capnproto-cmake | ||
cassandra@eb9b68dadb | ||
cctz@c0f1bcb97f | ||
cctz-cmake | ||
cityhash102 | ||
consistent-hashing | ||
cppkafka@5a119f689f | ||
cppkafka-cmake | ||
croaring@2c867e9f9c | ||
croaring-cmake | ||
curl@3b8bbbbd16 | ||
curl-cmake | ||
cyrus-sasl@e6466edfd6 | ||
cyrus-sasl-cmake | ||
datasketches-cpp@7d73d7610d | ||
double-conversion@cf2f0f3d54 | ||
double-conversion-cmake | ||
dragonbox@923705af6f | ||
dragonbox-cmake | ||
fast_float@7eae925b51 | ||
fastops@88752a5e03 | ||
fastops-cmake | ||
flatbuffers@eb3f827948 | ||
fmtlib@c108ee1d59 | ||
fmtlib-cmake | ||
gcem@8d4f1b5d76 | ||
googletest@e7e591764b | ||
grpc@60c986e15c | ||
grpc-cmake | ||
h3@e209086ae1 | ||
h3-cmake | ||
hyperscan@e9f08df021 | ||
hyperscan-cmake | ||
icu@faa2f9f9e1 | ||
icu-cmake | ||
icudata@f020820388 | ||
jemalloc@e6891d9746 | ||
jemalloc-cmake | ||
krb5@5149dea4e2 | ||
krb5-cmake | ||
libc-headers@a720b7105a | ||
libcpuid@8db3b8d2d3 | ||
libcpuid-cmake | ||
libcxx@2fa892f69a | ||
libcxx-cmake | ||
libcxxabi@df8f1e727d | ||
libcxxabi-cmake | ||
libdivide | ||
libfarmhash | ||
libgsasl@383ee28e82 | ||
libhdfs3@095b9d48b4 | ||
libhdfs3-cmake | ||
libmetrohash | ||
libpq@c7624588dd | ||
libpq-cmake | ||
libpqxx@357608d11b | ||
libpqxx-cmake | ||
librdkafka@43491d33ca | ||
librdkafka-cmake | ||
libunwind@a491c27b33 | ||
libunwind-cmake | ||
libuv@e2e9b7e9f9 | ||
libxml2@18890f471c | ||
libxml2-cmake | ||
llvm@e575145941 | ||
lz4@f39b79fb02 | ||
lz4-cmake | ||
mariadb-connector-c@5f4034a3a6 | ||
miniselect@be0af6bd0b | ||
msgpack-c@46684265d5 | ||
murmurhash | ||
nanodbc@9fc4596755 | ||
nanodbc-cmake | ||
NuRaft@2a1bf7d87b | ||
nuraft-cmake | ||
openldap@0208811b60 | ||
openldap-cmake | ||
orc@5981208e39 | ||
pdqsort | ||
poco@5994506908 | ||
poco-cmake | ||
protobuf@73b1281420 | ||
protobuf-cmake | ||
rapidjson@c4ef90ccdb | ||
re2@13ebb377c6 | ||
re2_st | ||
replxx@c81be6c68b | ||
replxx-cmake | ||
rocksdb@07c77549a2 | ||
rocksdb-cmake | ||
sentry-native@94644e92f0 | ||
simdjson@8df32cea33 | ||
simdjson-cmake | ||
snappy@3f194acb57 | ||
sparsehash-c11@cf0bffaa45 | ||
stats@b6dd459c10 | ||
stats-cmake | ||
thrift@010ccf0a0c | ||
unixodbc@b0ad30f7f6 | ||
unixodbc-cmake | ||
xz@869b9d1b4e | ||
yaml-cpp@0c86adac6d | ||
yaml-cpp-cmake | ||
zlib-ng@db232d30b4 | ||
zstd@a488ba114e | ||
zstd-cmake | ||
CMakeLists.txt |