Closed hubzhangxj closed 9 months ago
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/parseKQLQuery-1e9f72.cpp clang++: note: diagnostic msg: /tmp/parseKQLQuery-1e9f72.sh
Please provide these files to reproduce the crash.
@llvm/issue-subscribers-clang-frontend
Author: Zhang Xinjia (hubzhangxj)
Looks like a duplicate of: https://github.com/llvm/llvm-project/issues/67979
but a minimal reproducer would be nice.
CC @tahonermann
I agree this looks like a duplicate. Assigning to myself. I hope to make some progress on #67979 this week.
[root@node7 build]# ninja -j 1 -v [0/2] /usr/bin/cmake -P /home/sdb/xxx/Clickhouse/ClickHouse/build/CMakeFiles/VerifyGlobs.cmake [1/5476] cd /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/avro-cmake && /usr/bin/cmake -E make_directory /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/avro-cmake/include && /usr/bin/cmake -E create_symlink /home/sdb/xxx/Clickhouse/ClickHouse/contrib/avro/lang/c++/api /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/avro-cmake/include/avro [2/5476] /bin/ccache /usr/local/bin/clang++ --target=aarch64-linux-gnu --sysroot=/home/sdb/xxx/Clickhouse/ClickHouse/cmake/linux/../../contrib/sysroot/linux-aarch64/aarch64-linux-gnu/libc -DAWS_SDK_VERSION_MAJOR=1 -DAWS_SDK_VERSION_MINOR=10 -DAWS_SDK_VERSION_PATCH=36 -DBOOST_ASIO_HAS_STD_INVOKE_RESULT=1 -DBOOST_ASIO_STANDALONE=1 -DBOOST_TIMER_ENABLE_DEPRECATED=1 -DDUMMY_BACKTRACE -DENABLE_MULTITARGET_CODE=1 -DHAVE_BZLIB_H=1 -DHAVE_CONFIG_H -DHAVE_FUTIMESAT=1 -DHAVE_ICONV=1 -DHAVE_LIBLZMA=1 -DHAVE_LIBZSTD=1 -DHAVE_LINUX_FS_H=1 -DHAVE_LINUX_TYPES_H=1 -DHAVE_LZMA_H=1 -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_ZSTD_H=1 -DINCBIN_SILENCE_BITCODE_WARNING -DMAJOR_IN_SYSMACROS=1 -DPOCO_ENABLE_CPP11 -DPOCO_HAVE_FD_EPOLL -DPOCO_OS_FAMILY_UNIX -DSTD_EXCEPTION_HAS_STACK_TRACE=1 -DUNALIGNED_OK -DWITH_COVERAGE=0 -DWITH_GZFILEOP -DX86_64 -DZLIB_COMPAT -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -I/home/sdb/xxx/Clickhouse/ClickHouse/build/includes/configs -I/home/sdb/xxx/Clickhouse/ClickHouse/src -I/home/sdb/xxx/Clickhouse/ClickHouse/build/src -I/home/sdb/xxx/Clickhouse/ClickHouse/build/src/Core/include -I/home/sdb/xxx/Clickhouse/ClickHouse/base/base/.. -I/home/sdb/xxx/Clickhouse/ClickHouse/build/base/base/.. -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/cctz/include -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/re2 -I/home/sdb/xxx/Clickhouse/ClickHouse/base/pcg-random/. -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libfiu/libfiu -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libssh/include -I/home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/libssh/include -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/miniselect/include -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/zstd/lib -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libarchive-cmake -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libarchive/libarchive -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/llvm-project/libcxx/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/llvm-project/libcxxabi/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/libunwind/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/sparsehash-c11 -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/incbin -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/cityhash102/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/boost -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Net/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Foundation/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/NetSSL_OpenSSL/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Crypto/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/boringssl/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Util/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/JSON/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/XML/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/replxx/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/fmtlib-cmake/../fmtlib/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/magic_enum/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/double-conversion -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/dragonbox/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/abseil-cpp -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/zlib-ng -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/zlib-ng-cmake -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/pdqsort -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/xz/src/liblzma/api -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws/src/aws-cpp-sdk-core/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/aws-cmake/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws/generated/src/aws-cpp-sdk-s3/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-auth/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-common/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-io/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-crt-cpp/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-mqtt/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-sdkutils/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/snappy -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/snappy-cmake -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/libbcrypt -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/msgpack-c/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/liburing/src/include-compat -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/liburing/src/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/liburing/src/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/fast_float/include --gcc-toolchain=/home/sdb/xxx/Clickhouse/ClickHouse/cmake/linux/../../contrib/sysroot/linux-aarch64 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -Wno-enum-constexpr-conversion -fsized-deallocation -gdwarf-aranges -pipe -march=armv8.2-a+simd+crypto+dotprod+ssbs+rcpc -fasynchronous-unwind-tables -ffile-prefix-map=/home/sdb/xxx/Clickhouse/ClickHouse=. -falign-functions=32 -fdiagnostics-absolute-paths -fstrict-vtable-pointers -Wall -Wextra -Wframe-larger-than=65536 -Weverything -Wpedantic -Wno-zero-length-array -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-c++20-compat -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-implicit-int-float-conversion -Wno-ctad-maybe-unsupported -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded -Wno-switch-enum -Wno-undefined-func-template -Wno-unused-template -Wno-vla -Wno-weak-template-vtables -Wno-weak-vtables -Wno-thread-safety-negative -Wno-enum-constexpr-conversion -Wno-unsafe-buffer-usage -O2 -g -DNDEBUG -O3 -g -gdwarf-4 -D OS_LINUX -Werror -nostdinc++ -std=c++2b -MD -MT src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o -MF src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o.d -o src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o -c /home/sdb/xxx/Clickhouse/ClickHouse/src/Parsers/Kusto/parseKQLQuery.cpp FAILED: src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o /bin/ccache /usr/local/bin/clang++ --target=aarch64-linux-gnu --sysroot=/home/sdb/xxx/Clickhouse/ClickHouse/cmake/linux/../../contrib/sysroot/linux-aarch64/aarch64-linux-gnu/libc -DAWS_SDK_VERSION_MAJOR=1 -DAWS_SDK_VERSION_MINOR=10 -DAWS_SDK_VERSION_PATCH=36 -DBOOST_ASIO_HAS_STD_INVOKE_RESULT=1 -DBOOST_ASIO_STANDALONE=1 -DBOOST_TIMER_ENABLE_DEPRECATED=1 -DDUMMY_BACKTRACE -DENABLE_MULTITARGET_CODE=1 -DHAVE_BZLIB_H=1 -DHAVE_CONFIG_H -DHAVE_FUTIMESAT=1 -DHAVE_ICONV=1 -DHAVE_LIBLZMA=1 -DHAVE_LIBZSTD=1 -DHAVE_LINUX_FS_H=1 -DHAVE_LINUX_TYPES_H=1 -DHAVE_LZMA_H=1 -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_ZSTD_H=1 -DINCBIN_SILENCE_BITCODE_WARNING -DMAJOR_IN_SYSMACROS=1 -DPOCO_ENABLE_CPP11 -DPOCO_HAVE_FD_EPOLL -DPOCO_OS_FAMILY_UNIX -DSTD_EXCEPTION_HAS_STACK_TRACE=1 -DUNALIGNED_OK -DWITH_COVERAGE=0 -DWITH_GZFILEOP -DX86_64 -DZLIB_COMPAT -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -I/home/sdb/xxx/Clickhouse/ClickHouse/build/includes/configs -I/home/sdb/xxx/Clickhouse/ClickHouse/src -I/home/sdb/xxx/Clickhouse/ClickHouse/build/src -I/home/sdb/xxx/Clickhouse/ClickHouse/build/src/Core/include -I/home/sdb/xxx/Clickhouse/ClickHouse/base/base/.. -I/home/sdb/xxx/Clickhouse/ClickHouse/build/base/base/.. -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/cctz/include -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/re2 -I/home/sdb/xxx/Clickhouse/ClickHouse/base/pcg-random/. -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libfiu/libfiu -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libssh/include -I/home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/libssh/include -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/miniselect/include -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/zstd/lib -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libarchive-cmake -I/home/sdb/xxx/Clickhouse/ClickHouse/contrib/libarchive/libarchive -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/llvm-project/libcxx/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/llvm-project/libcxxabi/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/libunwind/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/sparsehash-c11 -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/incbin -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/cityhash102/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/boost -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Net/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Foundation/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/NetSSL_OpenSSL/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Crypto/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/boringssl/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/Util/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/JSON/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/base/poco/XML/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/replxx/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/fmtlib-cmake/../fmtlib/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/magic_enum/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/double-conversion -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/dragonbox/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/abseil-cpp -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/zlib-ng -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/zlib-ng-cmake -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/pdqsort -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/xz/src/liblzma/api -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws/src/aws-cpp-sdk-core/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/aws-cmake/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws/generated/src/aws-cpp-sdk-s3/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-auth/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-common/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-io/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-crt-cpp/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-mqtt/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/aws-c-sdkutils/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/snappy -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/snappy-cmake -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/libbcrypt -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/msgpack-c/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/liburing/src/include-compat -isystem /home/sdb/xxx/Clickhouse/ClickHouse/build/contrib/liburing/src/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/liburing/src/include -isystem /home/sdb/xxx/Clickhouse/ClickHouse/contrib/fast_float/include --gcc-toolchain=/home/sdb/xxx/Clickhouse/ClickHouse/cmake/linux/../../contrib/sysroot/linux-aarch64 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -Wno-enum-constexpr-conversion -fsized-deallocation -gdwarf-aranges -pipe -march=armv8.2-a+simd+crypto+dotprod+ssbs+rcpc -fasynchronous-unwind-tables -ffile-prefix-map=/home/sdb/xxx/Clickhouse/ClickHouse=. -falign-functions=32 -fdiagnostics-absolute-paths -fstrict-vtable-pointers -Wall -Wextra -Wframe-larger-than=65536 -Weverything -Wpedantic -Wno-zero-length-array -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-c++20-compat -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-implicit-int-float-conversion -Wno-ctad-maybe-unsupported -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded -Wno-switch-enum -Wno-undefined-func-template -Wno-unused-template -Wno-vla -Wno-weak-template-vtables -Wno-weak-vtables -Wno-thread-safety-negative -Wno-enum-constexpr-conversion -Wno-unsafe-buffer-usage -O2 -g -DNDEBUG -O3 -g -gdwarf-4 -D OS_LINUX -Werror -nostdinc++ -std=c++2b -MD -MT src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o -MF src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o.d -o src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o -c /home/sdb/xxx/Clickhouse/ClickHouse/src/Parsers/Kusto/parseKQLQuery.cpp
Backtrace: