llvm / llvm-project

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

[Clang] Clang-18.1 crash #82090

Open JinHai-CN opened 9 months ago

JinHai-CN commented 9 months ago

Stack dump:

  1. Program arguments: /usr/bin/clang++-18 -DHAVE_EFFICIENT_UNALIGNED_ACCESS -DHWY_STATIC_DEFINE -I/home/jinhai/Documents/development/infinity/third_party/highway -O0 -g -DNDEBUG -fsanitize=address -fno-stack-protector -fno-omit-frame-pointer -fno-var-tracking -fprofile-instr-generate -fcoverage-mapping -Wall -Wno-deprecated-declarations -Wextra -Wno-unused-parameter -Wno-unused-private-field -pthread -fcolor-diagnostics -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fcolor-diagnostics -mevex512 -D INFINITY_DEBUG -Wno-everything -Wno-builtin-macro-redefined -DDATE=\"redacted\" -DTIMESTAMP=\"redacted\" -DTIME=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wgnu-redeclared-enum -Winfinite-recursion -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety-analysis -Wundefined-func-template -fno-cxx-exceptions -fno-slp-vectorize -fno-vectorize -fdiagnostics-show-option -fcolor-diagnostics -Wc++2a-extensions -fmath-errno -fno-exceptions -DTOOLCHAIN_MISS_ASM_HWCAP_H -MD -MT third_party/highway/CMakeFiles/hwy.dir/hwy/per_target.cc.o -MF third_party/highway/CMakeFiles/hwy.dir/hwy/per_target.cc.o.d -o third_party/highway/CMakeFiles/hwy.dir/hwy/per_target.cc.o -c /home/jinhai/Documents/development/infinity/third_party/highway/hwy/per_target.cc
  2. parser at end of file
  3. Per-file LLVM IR generation
  4. /home/jinhai/Documents/development/infinity/third_party/highway/hwy/highway.h:280:18: Generating code for declaration 'hwy::FunctionCache::ChooseAndCall' Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var LLVM_SYMBOLIZER_PATH to point to it): 0 libLLVM-18.so.1 0x00007f342df85b16 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 54 1 libLLVM-18.so.1 0x00007f342df83ad0 llvm::sys::RunSignalHandlers() + 80 2 libLLVM-18.so.1 0x00007f342ded5730 3 libc.so.6 0x00007f342ca42520 4 libclang-cpp.so.18 0x00007f34369e4d17 5 libclang-cpp.so.18 0x00007f34369ea3f2 6 libclang-cpp.so.18 0x00007f34369ea3f2 7 libclang-cpp.so.18 0x00007f34369ea3f2 8 libclang-cpp.so.18 0x00007f34369ea3f2 9 libclang-cpp.so.18 0x00007f34369ea3f2 10 libclang-cpp.so.18 0x00007f34369ea3f2 11 libclang-cpp.so.18 0x00007f34369e5ff0 12 libclang-cpp.so.18 0x00007f34369e6735 13 libclang-cpp.so.18 0x00007f34369ea3f2 14 libclang-cpp.so.18 0x00007f34369e4b53 15 libclang-cpp.so.18 0x00007f34369e32b1 clang::CodeGen::CoverageMappingGen::emitCounterMapping(clang::Decl const, llvm::raw_ostream&) + 817 16 libclang-cpp.so.18 0x00007f34369b3e05 clang::CodeGen::CodeGenPGO::emitCounterRegionMapping(clang::Decl const) + 325 17 libclang-cpp.so.18 0x00007f34369b3982 clang::CodeGen::CodeGenPGO::assignRegionCounters(clang::GlobalDecl, llvm::Function) + 402 18 libclang-cpp.so.18 0x00007f343695d95d clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function, clang::CodeGen::CGFunctionInfo const&) + 989 19 libclang-cpp.so.18 0x00007f343697e835 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue) + 405 20 libclang-cpp.so.18 0x00007f34369781b0 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue) + 576 21 libclang-cpp.so.18 0x00007f343696b523 clang::CodeGen::CodeGenModule::EmitDeferred() + 291 22 libclang-cpp.so.18 0x00007f343696b53f clang::CodeGen::CodeGenModule::EmitDeferred() + 319 23 libclang-cpp.so.18 0x00007f34369691bb clang::CodeGen::CodeGenModule::Release() + 91 24 libclang-cpp.so.18 0x00007f3436a15728 25 libclang-cpp.so.18 0x00007f343694e1d0 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 176 26 libclang-cpp.so.18 0x00007f343557f466 clang::ParseAST(clang::Sema&, bool, bool) + 614 27 libclang-cpp.so.18 0x00007f34373aed25 clang::FrontendAction::Execute() + 85 28 libclang-cpp.so.18 0x00007f3437328424 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 708 29 libclang-cpp.so.18 0x00007f34374293ce clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 750 30 clang++-18 0x000055ca8f342d65 cc1_main(llvm::ArrayRef<char const>, char const, void) + 4069 31 clang++-18 0x000055ca8f340165 32 libclang-cpp.so.18 0x00007f3436fe1619 33 libLLVM-18.so.1 0x00007f342ded54cc llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 140 34 libclang-cpp.so.18 0x00007f3436fe0fae clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional>, std::__cxx11::basic_string<char, std::char_traits, std::allocator>, bool) const + 366 35 libclang-cpp.so.18 0x00007f3436fa9541 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const&, bool) const + 897 36 libclang-cpp.so.18 0x00007f3436fa978e clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const>>&, bool) const + 142 37 libclang-cpp.so.18 0x00007f3436fc5d6d clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) + 333 38 clang++-18 0x000055ca8f33fad4 clang_main(int, char**, llvm::ToolContext const&) + 11172 39 clang++-18 0x000055ca8f34cbf6 main + 102 40 libc.so.6 0x00007f342ca29d90 41 libc.so.6 0x00007f342ca29e40 __libc_start_main + 128 42 clang++-18 0x000055ca8f33cbd5 _start + 37 clang++-18: error: clang frontend command failed with exit code 139 (use -v to see invocation) Ubuntu clang version 18.1.0 (++20240203081317+140ad18e1ea2-1~exp1~20240203201335.24) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin clang++-18: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++-18: note: diagnostic msg: /tmp/per_target-48c422.cpp clang++-18: note: diagnostic msg: /tmp/per_target-48c422.sh clang++-18: note: diagnostic msg:


OS: Ubuntu 22.04 per_target-48c422.zip

llvmbot commented 9 months ago

@llvm/issue-subscribers-clang-codegen

Author: Jin Hai (JinHai-CN)

Stack dump: 0. Program arguments: /usr/bin/clang++-18 -DHAVE_EFFICIENT_UNALIGNED_ACCESS -DHWY_STATIC_DEFINE -I/home/jinhai/Documents/development/infinity/third_party/highway -O0 -g -DNDEBUG -fsanitize=address -fno-stack-protector -fno-omit-frame-pointer -fno-var-tracking -fprofile-instr-generate -fcoverage-mapping -Wall -Wno-deprecated-declarations -Wextra -Wno-unused-parameter -Wno-unused-private-field -pthread -fcolor-diagnostics -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fcolor-diagnostics -mevex512 -D INFINITY_DEBUG -Wno-everything -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wgnu-redeclared-enum -Winfinite-recursion -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety-analysis -Wundefined-func-template -fno-cxx-exceptions -fno-slp-vectorize -fno-vectorize -fdiagnostics-show-option -fcolor-diagnostics -Wc++2a-extensions -fmath-errno -fno-exceptions -DTOOLCHAIN_MISS_ASM_HWCAP_H -MD -MT third_party/highway/CMakeFiles/hwy.dir/hwy/per_target.cc.o -MF third_party/highway/CMakeFiles/hwy.dir/hwy/per_target.cc.o.d -o third_party/highway/CMakeFiles/hwy.dir/hwy/per_target.cc.o -c /home/jinhai/Documents/development/infinity/third_party/highway/hwy/per_target.cc 1. <eof> parser at end of file 2. Per-file LLVM IR generation 3. /home/jinhai/Documents/development/infinity/third_party/highway/hwy/highway.h:280:18: Generating code for declaration 'hwy::FunctionCache<unsigned long>::ChooseAndCall' Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): 0 libLLVM-18.so.1 0x00007f342df85b16 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 54 1 libLLVM-18.so.1 0x00007f342df83ad0 llvm::sys::RunSignalHandlers() + 80 2 libLLVM-18.so.1 0x00007f342ded5730 3 libc.so.6 0x00007f342ca42520 4 libclang-cpp.so.18 0x00007f34369e4d17 5 libclang-cpp.so.18 0x00007f34369ea3f2 6 libclang-cpp.so.18 0x00007f34369ea3f2 7 libclang-cpp.so.18 0x00007f34369ea3f2 8 libclang-cpp.so.18 0x00007f34369ea3f2 9 libclang-cpp.so.18 0x00007f34369ea3f2 10 libclang-cpp.so.18 0x00007f34369ea3f2 11 libclang-cpp.so.18 0x00007f34369e5ff0 12 libclang-cpp.so.18 0x00007f34369e6735 13 libclang-cpp.so.18 0x00007f34369ea3f2 14 libclang-cpp.so.18 0x00007f34369e4b53 15 libclang-cpp.so.18 0x00007f34369e32b1 clang::CodeGen::CoverageMappingGen::emitCounterMapping(clang::Decl const*, llvm::raw_ostream&) + 817 16 libclang-cpp.so.18 0x00007f34369b3e05 clang::CodeGen::CodeGenPGO::emitCounterRegionMapping(clang::Decl const*) + 325 17 libclang-cpp.so.18 0x00007f34369b3982 clang::CodeGen::CodeGenPGO::assignRegionCounters(clang::GlobalDecl, llvm::Function*) + 402 18 libclang-cpp.so.18 0x00007f343695d95d clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 989 19 libclang-cpp.so.18 0x00007f343697e835 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 405 20 libclang-cpp.so.18 0x00007f34369781b0 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 576 21 libclang-cpp.so.18 0x00007f343696b523 clang::CodeGen::CodeGenModule::EmitDeferred() + 291 22 libclang-cpp.so.18 0x00007f343696b53f clang::CodeGen::CodeGenModule::EmitDeferred() + 319 23 libclang-cpp.so.18 0x00007f34369691bb clang::CodeGen::CodeGenModule::Release() + 91 24 libclang-cpp.so.18 0x00007f3436a15728 25 libclang-cpp.so.18 0x00007f343694e1d0 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 176 26 libclang-cpp.so.18 0x00007f343557f466 clang::ParseAST(clang::Sema&, bool, bool) + 614 27 libclang-cpp.so.18 0x00007f34373aed25 clang::FrontendAction::Execute() + 85 28 libclang-cpp.so.18 0x00007f3437328424 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 708 29 libclang-cpp.so.18 0x00007f34374293ce clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 750 30 clang++-18 0x000055ca8f342d65 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 4069 31 clang++-18 0x000055ca8f340165 32 libclang-cpp.so.18 0x00007f3436fe1619 33 libLLVM-18.so.1 0x00007f342ded54cc llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 140 34 libclang-cpp.so.18 0x00007f3436fe0fae clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const + 366 35 libclang-cpp.so.18 0x00007f3436fa9541 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const + 897 36 libclang-cpp.so.18 0x00007f3436fa978e clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const + 142 37 libclang-cpp.so.18 0x00007f3436fc5d6d clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) + 333 38 clang++-18 0x000055ca8f33fad4 clang_main(int, char**, llvm::ToolContext const&) + 11172 39 clang++-18 0x000055ca8f34cbf6 main + 102 40 libc.so.6 0x00007f342ca29d90 41 libc.so.6 0x00007f342ca29e40 __libc_start_main + 128 42 clang++-18 0x000055ca8f33cbd5 _start + 37 clang++-18: error: clang frontend command failed with exit code 139 (use -v to see invocation) Ubuntu clang version 18.1.0 (++20240203081317+140ad18e1ea2-1~exp1~20240203201335.24) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin clang++-18: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++-18: note: diagnostic msg: /tmp/per_target-48c422.cpp clang++-18: note: diagnostic msg: /tmp/per_target-48c422.sh clang++-18: note: diagnostic msg: ******************** OS: Ubuntu 22.04 [per_target-48c422.zip](https://github.com/llvm/llvm-project/files/14317562/per_target-48c422.zip)