[llvm-bugs] [Bug 49701] New: ICE in clang++

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 23 09:05:10 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49701

            Bug ID: 49701
           Summary: ICE in clang++
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zeccav at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

clang++ -S clangerr6.C -w
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: clang++ -S clangerr6.C -w
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
 #0 0x00001485b7984bf6 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/lib64/libLLVM-12.so+0xc07bf6)
 #1 0x00001485b7982ae4 llvm::sys::RunSignalHandlers()
(/usr/lib64/libLLVM-12.so+0xc05ae4)
 #2 0x00001485b78c2008 (/usr/lib64/libLLVM-12.so+0xb45008)
 #3 0x00001485b69cc310 __restore_rt (/usr/lib64/libc.so.6+0x3d310)
 #4 0x00001485bd2a9fe1 (/usr/lib64/libclang-cpp.so.12+0x976fe1)
 #5 0x00001485be41558d (/usr/lib64/libclang-cpp.so.12+0x1ae258d)
 #6 0x00001485be419e6d (/usr/lib64/libclang-cpp.so.12+0x1ae6e6d)
 #7 0x00001485be41a12e (/usr/lib64/libclang-cpp.so.12+0x1ae712e)
 #8 0x00001485be43270a
clang::CodeGen::CodeGenModule::emitMultiVersionFunctions()
(/usr/lib64/libclang-cpp.so.12+0x1aff70a)
 #9 0x00001485be449144 clang::CodeGen::CodeGenModule::Release()
(/usr/lib64/libclang-cpp.so.12+0x1b16144)
#10 0x00001485be4ac16a (/usr/lib64/libclang-cpp.so.12+0x1b7916a)
#11 0x00001485be40334c (/usr/lib64/libclang-cpp.so.12+0x1ad034c)
#12 0x00001485bd341b49 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib64/libclang-cpp.so.12+0xa0eb49)
#13 0x00001485bea869d9 clang::FrontendAction::Execute()
(/usr/lib64/libclang-cpp.so.12+0x21539d9)
#14 0x00001485bea2cd1b
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib64/libclang-cpp.so.12+0x20f9d1b)
#15 0x00001485beaf3e8b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib64/libclang-cpp.so.12+0x21c0e8b)
#16 0x00005627dbdbe7dc cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-12+0x167dc)
#17 0x00005627dbdbb81a (/usr/bin/clang-12+0x1381a)
#18 0x00001485be761ad9 (/usr/lib64/libclang-cpp.so.12+0x1e2ead9)
#19 0x00001485b78c20d7
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/usr/lib64/libLLVM-12.so+0xb450d7)
#20 0x00001485be762816 (/usr/lib64/libclang-cpp.so.12+0x1e2f816)
#21 0x00001485be73882b
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const (/usr/lib64/libclang-cpp.so.12+0x1e0582b)
#22 0x00001485be738fee
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/usr/lib64/libclang-cpp.so.12+0x1e05fee)
#23 0x00001485be742752
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/usr/lib64/libclang-cpp.so.12+0x1e0f752)
#24 0x00005627dbdb9417 main (/usr/bin/clang-12+0x11417)
#25 0x00001485b69b6b75 __libc_start_main (/usr/lib64/libc.so.6+0x27b75)
#26 0x00005627dbdbac2e _start (/usr/bin/clang-12+0x12c2e)
clang-12: error: clang frontend command failed with exit code 139 (use -v to
see invocation)
clang version 12.0.0 (Fedora 12.0.0-0.1.rc1.fc34)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-12: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-12: note: diagnostic msg: /tmp/clangerr6-e032f3.cpp
clang-12: note: diagnostic msg: /tmp/clangerr6-e032f3.sh
clang-12: note: diagnostic msg: 

********************
[vitti cc]$cat /tmp/clangerr6-e032f3.cpp
# 1 "<built-in>"
# 1 "clangerr6.C"
int fum () __attribute__ ((target("default")));

int fum () __attribute__((target("arch=core2")));

int (*p)() = &fum;


[vitti cc]$cat /tmp/clangerr6-e032f3.sh
# Crash reproducer for clang version 12.0.0 (Fedora 12.0.0-0.1.rc1.fc34)
# Driver args: "--driver-mode=g++" "-S" "clangerr6.C" "-w"
# Original command:  "/usr/bin/clang-12" "-cc1" "-triple"
"x86_64-unknown-linux-gnu" "-S" "-disable-free" "-disable-llvm-verifier"
"-discard-value-names" "-main-file-name" "clangerr6.C" "-mrelocation-model"
"static" "-mframe-pointer=all" "-fmath-errno" "-fno-rounding-math"
"-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-tune-cpu"
"generic" "-fno-split-dwarf-inlining" "-debugger-tuning=gdb" "-resource-dir"
"/usr/lib64/clang/12.0.0" "-internal-isystem"
"/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++"
"-internal-isystem"
"/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/x86_64-redhat-linux"
"-internal-isystem"
"/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/backward"
"-internal-isystem" "/usr/local/include" "-internal-isystem"
"/usr/lib64/clang/12.0.0/include" "-internal-externc-isystem" "/include"
"-internal-externc-isystem" "/usr/include" "-w" "-fdeprecated-macro"
"-fdebug-compilation-dir" "/home/vitti/f95/cc" "-ferror-limit" "19"
"-fgnuc-version=4.2.1" "-fcxx-exceptions" "-fexceptions" "-fcolor-diagnostics"
"-faddrsig" "-o" "clangerr6.s" "-x" "c++" "clangerr6.C"
 "/usr/bin/clang-12" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-S"
"-disable-free" "-disable-llvm-verifier" "-discard-value-names"
"-main-file-name" "clangerr6.C" "-mrelocation-model" "static"
"-mframe-pointer=all" "-fmath-errno" "-fno-rounding-math"
"-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-tune-cpu"
"generic" "-fno-split-dwarf-inlining" "-debugger-tuning=gdb" "-w"
"-fdeprecated-macro" "-ferror-limit" "19" "-fgnuc-version=4.2.1"
"-fcxx-exceptions" "-fexceptions" "-fcolor-diagnostics" "-faddrsig" "-x" "c++"
"clangerr6-e032f3.cpp"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210323/5c5be586/attachment.html>


More information about the llvm-bugs mailing list