llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.8k stars 11.91k forks source link

compilation report bug with clickhouse #70550

Closed hubzhangxj closed 9 months ago

hubzhangxj commented 1 year ago

[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:

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/local/bin/clang++ --target=aarch64-linux-gnu --sysroot=/home/sdb/xxx/Clickhouse/ClickHouse/cmake/linux/../../contrib/sysroot/linux-aarch64/aarch64-linux-gnu/libc --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 -O3 -g -gdwarf-4 -std=c++2b -Werror -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 -DNDEBUG -D OS_LINUX -nostdinc++ -c -o src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o /home/sdb/xxx/Clickhouse/ClickHouse/src/Parsers/Kusto/parseKQLQuery.cpp
1.      /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:224:18: current parser token ';'
2.      /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:52:1: parsing struct/union/class body 'SipHash'
3.      /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:209:5: parsing function body 'SipHash::get128Reference'
4.      /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:209:5: in compound statement ('{}')
5.      /home/sdb/xxx/Clickhouse/ClickHouse/base/base/../base/wide_integer_impl.h:1165:58: instantiating function definition 'wide::integer<128, unsigned int>::operator|=<unsigned long>'
6.      /home/sdb/xxx/Clickhouse/ClickHouse/base/base/../base/wide_integer_impl.h:1397:51: instantiating function definition 'wide::operator|<wide::integer<128, unsigned int>, unsigned long, void>'
 #0 0x0000000002908520 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/bin/clang+++0x2908520)
 #1 0x0000000002906960 llvm::sys::RunSignalHandlers() (/usr/local/bin/clang+++0x2906960)
 #2 0x0000000002885ba8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
 #3 0x0000ffffb408e93c (linux-vdso.so.1+0x93c)
 #4 0x00000000028b8528 llvm::StringRef::find_last_of(llvm::StringRef, unsigned long) const (/usr/local/bin/clang+++0x28b8528)
 #5 0x0000000004b4aa68 clang::ASTContext::getRawCommentForDeclNoCacheImpl(clang::Decl const*, clang::SourceLocation, std::map<unsigned int, clang::RawComment*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, clang::RawComment*>>> const&) const (/usr/local/bin/clang+++0x4b4aa68)
 #6 0x0000000004b56830 clang::ASTContext::attachCommentsToJustParsedDecls(llvm::ArrayRef<clang::Decl*>, clang::Preprocessor const*) (/usr/local/bin/clang+++0x4b56830)
 #7 0x00000000043719d4 clang::Sema::ActOnStartOfFunctionDef(clang::Scope*, clang::Decl*, clang::Sema::SkipBodyInfo*, clang::Sema::FnBodyKind) (/usr/local/bin/clang+++0x43719d4)
 #8 0x0000000004953440 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/local/bin/clang+++0x4953440)
 #9 0x00000000041ebf70 clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/local/bin/clang+++0x41ebf70)
#10 0x00000000044f6514 clang::Sema::MarkFunctionReferenced(clang::SourceLocation, clang::FunctionDecl*, bool) (/usr/local/bin/clang+++0x44f6514)
#11 0x00000000044f6bec MarkExprReferenced(clang::Sema&, clang::SourceLocation, clang::Decl*, clang::Expr*, bool, llvm::DenseMap<clang::VarDecl const*, int, llvm::DenseMapInfo<clang::VarDecl const*, void>, llvm::detail::DenseMapPair<clang::VarDecl const*, int>>&) SemaExpr.cpp:0:0
#12 0x0000000004765ae0 CreateFunctionRefExpr(clang::Sema&, clang::FunctionDecl*, clang::NamedDecl*, clang::Expr const*, bool, clang::SourceLocation, clang::DeclarationNameLoc const&) SemaOverload.cpp:0:0
#13 0x000000000479a818 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, clang::BinaryOperatorKind, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*, bool, bool, clang::FunctionDecl*) (/usr/local/bin/clang+++0x479a818)
#14 0x00000000048e6f44 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::RebuildCXXOperatorCallExpr(clang::OverloadedOperatorKind, clang::SourceLocation, clang::SourceLocation, bool, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) SemaTemplateInstantiate.cpp:0:0
#15 0x0000000004914cf8 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCXXOperatorCallExpr(clang::CXXOperatorCallExpr*) SemaTemplateInstantiate.cpp:0:0
#16 0x00000000048f9194 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformBinaryOperator(clang::BinaryOperator*) SemaTemplateInstantiate.cpp:0:0
#17 0x000000000491a3d0 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*, clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::StmtDiscardKind) SemaTemplateInstantiate.cpp:0:0
#18 0x000000000491b704 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*, bool) SemaTemplateInstantiate.cpp:0:0
#19 0x000000000491d4e8 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) (/usr/local/bin/clang+++0x491d4e8)
#20 0x00000000049535a4 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/local/bin/clang+++0x49535a4)
#21 0x00000000041ebf70 clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/local/bin/clang+++0x41ebf70)
#22 0x00000000044f6514 clang::Sema::MarkFunctionReferenced(clang::SourceLocation, clang::FunctionDecl*, bool) (/usr/local/bin/clang+++0x44f6514)
#23 0x00000000044f6bec MarkExprReferenced(clang::Sema&, clang::SourceLocation, clang::Decl*, clang::Expr*, bool, llvm::DenseMap<clang::VarDecl const*, int, llvm::DenseMapInfo<clang::VarDecl const*, void>, llvm::detail::DenseMapPair<clang::VarDecl const*, int>>&) SemaExpr.cpp:0:0
#24 0x0000000004765ae0 CreateFunctionRefExpr(clang::Sema&, clang::FunctionDecl*, clang::NamedDecl*, clang::Expr const*, bool, clang::SourceLocation, clang::DeclarationNameLoc const&) SemaOverload.cpp:0:0
#25 0x000000000479a818 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, clang::BinaryOperatorKind, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*, bool, bool, clang::FunctionDecl*) (/usr/local/bin/clang+++0x479a818)
#26 0x00000000044a8c44 BuildOverloadedBinOp(clang::Sema&, clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) SemaExpr.cpp:0:0
#27 0x000000000414183c clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*, true>, clang::prec::Level) (/usr/local/bin/clang+++0x414183c)
#28 0x00000000041432c4 clang::Parser::ParseExpression(clang::Parser::TypeCastState) (/usr/local/bin/clang+++0x41432c4)
#29 0x00000000041a2d4c clang::Parser::ParseExprStatement(clang::Parser::ParsedStmtContext) (/usr/local/bin/clang+++0x41a2d4c)
#30 0x000000000419b7b8 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&) (/usr/local/bin/clang+++0x419b7b8)
#31 0x000000000419bcdc clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/usr/local/bin/clang+++0x419bcdc)
#32 0x000000000419c83c clang::Parser::ParseCompoundStatementBody(bool) (/usr/local/bin/clang+++0x419c83c)
#33 0x000000000419ce98 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/usr/local/bin/clang+++0x419ce98)
#34 0x00000000040fdb20 clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) (/usr/local/bin/clang+++0x40fdb20)
#35 0x00000000040fd800 clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) (/usr/local/bin/clang+++0x40fd800)
#36 0x0000000004135e58 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributes&, unsigned int, clang::Decl*) (/usr/local/bin/clang+++0x4135e58)
#37 0x0000000004137bc0 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::ParsedAttributes&) (/usr/local/bin/clang+++0x4137bc0)
#38 0x0000000004114e40 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*, clang::ImplicitTypenameContext) (/usr/local/bin/clang+++0x4114e40)
#39 0x00000000040f4df4 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/usr/local/bin/clang+++0x40f4df4)
#40 0x00000000040f55a0 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (.part.0) Parser.cpp:0:0
#41 0x00000000040fbb4c clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/usr/local/bin/clang+++0x40fbb4c)
#42 0x00000000040fc7c0 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/usr/local/bin/clang+++0x40fc7c0)
#43 0x00000000040f0430 clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/bin/clang+++0x40f0430)
#44 0x00000000030a6a5c clang::FrontendAction::Execute() (/usr/local/bin/clang+++0x30a6a5c)
#45 0x000000000304b704 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/bin/clang+++0x304b704)
#46 0x0000000003138378 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/bin/clang+++0x3138378)
#47 0x0000000000ab7680 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/local/bin/clang+++0xab7680)
#48 0x0000000000ab1a54 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#49 0x0000000002f13770 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#50 0x0000000002885c84 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/local/bin/clang+++0x2885c84)
#51 0x0000000002f13cac clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#52 0x0000000002ee9100 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/usr/local/bin/clang+++0x2ee9100)
#53 0x0000000002ee97cc clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/usr/local/bin/clang+++0x2ee97cc)
#54 0x0000000002ef4f2c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/usr/local/bin/clang+++0x2ef4f2c)
#55 0x0000000000ab500c clang_main(int, char**, llvm::ToolContext const&) (/usr/local/bin/clang+++0xab500c)
#56 0x0000000000a0289c main (/usr/local/bin/clang+++0xa0289c)
#57 0x0000ffffb3a7affc (/usr/lib64/libc.so.6+0x2affc)
#58 0x0000ffffb3a7b0d4 __libc_start_main (/usr/lib64/libc.so.6+0x2b0d4)
#59 0x0000000000ab0b30 _start (/usr/local/bin/clang+++0xab0b30)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 18.0.0 (https://github.com/llvm/llvm-project.git fde1ecdec878be591479f508d6a373701deb137e)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang++: note: diagnostic msg:
********************

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
clang++: note: diagnostic msg:

********************
ninja: build stopped: subcommand failed.
dtcxzyw commented 1 year 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.

llvmbot commented 1 year ago

@llvm/issue-subscribers-clang-frontend

Author: Zhang Xinjia (hubzhangxj)

[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 PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /usr/local/bin/clang++ --target=aarch64-linux-gnu --sysroot=/home/sdb/xxx/Clickhouse/ClickHouse/cmake/linux/../../contrib/sysroot/linux-aarch64/aarch64-linux-gnu/libc --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 -O3 -g -gdwarf-4 -std=c++2b -Werror -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 -DNDEBUG -D OS_LINUX -nostdinc++ -c -o src/Parsers/CMakeFiles/clickhouse_parsers.dir/Kusto/parseKQLQuery.cpp.o /home/sdb/xxx/Clickhouse/ClickHouse/src/Parsers/Kusto/parseKQLQuery.cpp 1. /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:224:18: current parser token ';' 2. /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:52:1: parsing struct/union/class body 'SipHash' 3. /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:209:5: parsing function body 'SipHash::get128Reference' 4. /home/sdb/xxx/Clickhouse/ClickHouse/src/Common/SipHash.h:209:5: in compound statement ('{}') 5. /home/sdb/xxx/Clickhouse/ClickHouse/base/base/../base/wide_integer_impl.h:1165:58: instantiating function definition 'wide::integer<128, unsigned int>::operator|=<unsigned long>' 6. /home/sdb/xxx/Clickhouse/ClickHouse/base/base/../base/wide_integer_impl.h:1397:51: instantiating function definition 'wide::operator|<wide::integer<128, unsigned int>, unsigned long, void>' #0 0x0000000002908520 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/bin/clang+++0x2908520) #1 0x0000000002906960 llvm::sys::RunSignalHandlers() (/usr/local/bin/clang+++0x2906960) #2 0x0000000002885ba8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0 #3 0x0000ffffb408e93c (linux-vdso.so.1+0x93c) #4 0x00000000028b8528 llvm::StringRef::find_last_of(llvm::StringRef, unsigned long) const (/usr/local/bin/clang+++0x28b8528) #5 0x0000000004b4aa68 clang::ASTContext::getRawCommentForDeclNoCacheImpl(clang::Decl const*, clang::SourceLocation, std::map<unsigned int, clang::RawComment*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, clang::RawComment*>>> const&) const (/usr/local/bin/clang+++0x4b4aa68) #6 0x0000000004b56830 clang::ASTContext::attachCommentsToJustParsedDecls(llvm::ArrayRef<clang::Decl*>, clang::Preprocessor const*) (/usr/local/bin/clang+++0x4b56830) #7 0x00000000043719d4 clang::Sema::ActOnStartOfFunctionDef(clang::Scope*, clang::Decl*, clang::Sema::SkipBodyInfo*, clang::Sema::FnBodyKind) (/usr/local/bin/clang+++0x43719d4) #8 0x0000000004953440 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/local/bin/clang+++0x4953440) #9 0x00000000041ebf70 clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/local/bin/clang+++0x41ebf70) #10 0x00000000044f6514 clang::Sema::MarkFunctionReferenced(clang::SourceLocation, clang::FunctionDecl*, bool) (/usr/local/bin/clang+++0x44f6514) #11 0x00000000044f6bec MarkExprReferenced(clang::Sema&, clang::SourceLocation, clang::Decl*, clang::Expr*, bool, llvm::DenseMap<clang::VarDecl const*, int, llvm::DenseMapInfo<clang::VarDecl const*, void>, llvm::detail::DenseMapPair<clang::VarDecl const*, int>>&) SemaExpr.cpp:0:0 #12 0x0000000004765ae0 CreateFunctionRefExpr(clang::Sema&, clang::FunctionDecl*, clang::NamedDecl*, clang::Expr const*, bool, clang::SourceLocation, clang::DeclarationNameLoc const&) SemaOverload.cpp:0:0 #13 0x000000000479a818 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, clang::BinaryOperatorKind, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*, bool, bool, clang::FunctionDecl*) (/usr/local/bin/clang+++0x479a818) #14 0x00000000048e6f44 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::RebuildCXXOperatorCallExpr(clang::OverloadedOperatorKind, clang::SourceLocation, clang::SourceLocation, bool, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) SemaTemplateInstantiate.cpp:0:0 #15 0x0000000004914cf8 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCXXOperatorCallExpr(clang::CXXOperatorCallExpr*) SemaTemplateInstantiate.cpp:0:0 #16 0x00000000048f9194 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformBinaryOperator(clang::BinaryOperator*) SemaTemplateInstantiate.cpp:0:0 #17 0x000000000491a3d0 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*, clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::StmtDiscardKind) SemaTemplateInstantiate.cpp:0:0 #18 0x000000000491b704 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*, bool) SemaTemplateInstantiate.cpp:0:0 #19 0x000000000491d4e8 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) (/usr/local/bin/clang+++0x491d4e8) #20 0x00000000049535a4 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/local/bin/clang+++0x49535a4) #21 0x00000000041ebf70 clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/local/bin/clang+++0x41ebf70) #22 0x00000000044f6514 clang::Sema::MarkFunctionReferenced(clang::SourceLocation, clang::FunctionDecl*, bool) (/usr/local/bin/clang+++0x44f6514) #23 0x00000000044f6bec MarkExprReferenced(clang::Sema&, clang::SourceLocation, clang::Decl*, clang::Expr*, bool, llvm::DenseMap<clang::VarDecl const*, int, llvm::DenseMapInfo<clang::VarDecl const*, void>, llvm::detail::DenseMapPair<clang::VarDecl const*, int>>&) SemaExpr.cpp:0:0 #24 0x0000000004765ae0 CreateFunctionRefExpr(clang::Sema&, clang::FunctionDecl*, clang::NamedDecl*, clang::Expr const*, bool, clang::SourceLocation, clang::DeclarationNameLoc const&) SemaOverload.cpp:0:0 #25 0x000000000479a818 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, clang::BinaryOperatorKind, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*, bool, bool, clang::FunctionDecl*) (/usr/local/bin/clang+++0x479a818) #26 0x00000000044a8c44 BuildOverloadedBinOp(clang::Sema&, clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) SemaExpr.cpp:0:0 #27 0x000000000414183c clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*, true>, clang::prec::Level) (/usr/local/bin/clang+++0x414183c) #28 0x00000000041432c4 clang::Parser::ParseExpression(clang::Parser::TypeCastState) (/usr/local/bin/clang+++0x41432c4) #29 0x00000000041a2d4c clang::Parser::ParseExprStatement(clang::Parser::ParsedStmtContext) (/usr/local/bin/clang+++0x41a2d4c) #30 0x000000000419b7b8 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&) (/usr/local/bin/clang+++0x419b7b8) #31 0x000000000419bcdc clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/usr/local/bin/clang+++0x419bcdc) #32 0x000000000419c83c clang::Parser::ParseCompoundStatementBody(bool) (/usr/local/bin/clang+++0x419c83c) #33 0x000000000419ce98 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/usr/local/bin/clang+++0x419ce98) #34 0x00000000040fdb20 clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) (/usr/local/bin/clang+++0x40fdb20) #35 0x00000000040fd800 clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) (/usr/local/bin/clang+++0x40fd800) #36 0x0000000004135e58 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributes&, unsigned int, clang::Decl*) (/usr/local/bin/clang+++0x4135e58) #37 0x0000000004137bc0 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::ParsedAttributes&) (/usr/local/bin/clang+++0x4137bc0) #38 0x0000000004114e40 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*, clang::ImplicitTypenameContext) (/usr/local/bin/clang+++0x4114e40) #39 0x00000000040f4df4 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/usr/local/bin/clang+++0x40f4df4) #40 0x00000000040f55a0 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (.part.0) Parser.cpp:0:0 #41 0x00000000040fbb4c clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/usr/local/bin/clang+++0x40fbb4c) #42 0x00000000040fc7c0 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/usr/local/bin/clang+++0x40fc7c0) #43 0x00000000040f0430 clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/bin/clang+++0x40f0430) #44 0x00000000030a6a5c clang::FrontendAction::Execute() (/usr/local/bin/clang+++0x30a6a5c) #45 0x000000000304b704 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/bin/clang+++0x304b704) #46 0x0000000003138378 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/bin/clang+++0x3138378) #47 0x0000000000ab7680 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/local/bin/clang+++0xab7680) #48 0x0000000000ab1a54 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0 #49 0x0000000002f13770 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0 #50 0x0000000002885c84 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/local/bin/clang+++0x2885c84) #51 0x0000000002f13cac clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0 #52 0x0000000002ee9100 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/usr/local/bin/clang+++0x2ee9100) #53 0x0000000002ee97cc clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/usr/local/bin/clang+++0x2ee97cc) #54 0x0000000002ef4f2c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/usr/local/bin/clang+++0x2ef4f2c) #55 0x0000000000ab500c clang_main(int, char**, llvm::ToolContext const&) (/usr/local/bin/clang+++0xab500c) #56 0x0000000000a0289c main (/usr/local/bin/clang+++0xa0289c) #57 0x0000ffffb3a7affc (/usr/lib64/libc.so.6+0x2affc) #58 0x0000ffffb3a7b0d4 __libc_start_main (/usr/lib64/libc.so.6+0x2b0d4) #59 0x0000000000ab0b30 _start (/usr/local/bin/clang+++0xab0b30) clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation) clang version 18.0.0 (https://github.com/llvm/llvm-project.git fde1ecdec878be591479f508d6a373701deb137e) Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/bin clang++: note: diagnostic msg: ******************** 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 clang++: note: diagnostic msg: ******************** ninja: build stopped: subcommand failed. [root@node7 build]#
shafik commented 1 year ago

Looks like a duplicate of: https://github.com/llvm/llvm-project/issues/67979

but a minimal reproducer would be nice.

CC @tahonermann

tahonermann commented 1 year ago

I agree this looks like a duplicate. Assigning to myself. I hope to make some progress on #67979 this week.