kito-cheng added a comment.
Got crash for RISC-V on top of trunk:
[kitoc@hsinchu02 build]$ cat x.c
typedef __rvv_uint32m4_t a;
void b() { a c; }
[kitoc@hsinchu02 build]$ bin/clang -target riscv64-elf x.c -O -g
clang-14:
/home/kitoc/llvm-workspace/llvm-project/llvm/lib/IR/DebugInfo.cpp:2162: bool
llvm::AssignmentTrackingPass::runOnFunction(llvm::Function&): Assertion
`llvm::any_of(Markers, [DDI](DbgAssignIntrinsic *DAI) { return
DebugVariableAggregate(DAI) == DebugVariableAggregate(DDI); })' failed.
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: /scratch1/kitoc/llvm-workspace/build/bin/clang-14
-cc1 -triple riscv64-unknown-unknown-elf -emit-obj -disable-free
-clear-ast-before-backend -main-file-name x.c -mrelocation-model static
-mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math
-fno-verbose-asm -mconstructor-aliases -nostdsysteminc -target-cpu generic-rv64
-target-feature +m -target-feature +a -target-feature +c -target-feature -e
-target-feature -f -target-feature -d -target-feature -h -target-feature
-zihintpause -target-feature -zfhmin -target-feature -zfh -target-feature
-zfinx -target-feature -zdinx -target-feature -zhinxmin -target-feature -zhinx
-target-feature -zba -target-feature -zbb -target-feature -zbc -target-feature
-zbs -target-feature -zbkb -target-feature -zbkc -target-feature -zbkx
-target-feature -zknd -target-feature -zkne -target-feature -zknh
-target-feature -zksed -target-feature -zksh -target-feature -zkr
-target-feature -zkn -target-feature -zks -target-feature -zkt -target-feature
-zk -target-feature -zmmul -target-feature -v -target-feature -zvl32b
-target-feature -zvl64b -target-feature -zvl128b -target-feature -zvl256b
-target-feature -zvl512b -target-feature -zvl1024b -target-feature -zvl2048b
-target-feature -zvl4096b -target-feature -zvl8192b -target-feature -zvl16384b
-target-feature -zvl32768b -target-feature -zvl65536b -target-feature -zve32x
-target-feature -zve32f -target-feature -zve64x -target-feature -zve64f
-target-feature -zve64d -target-feature -zicbom -target-feature -zicboz
-target-feature -zicbop -target-feature -zicntr -target-feature -zicsr
-target-feature -zifencei -target-feature -zihpm -target-feature -zawrs
-target-feature -svnapot -target-feature -svpbmt -target-feature -svinval
-target-feature -xsfvcp -target-feature -xtheadba -target-feature -xtheadbb
-target-feature -xtheadbs -target-feature -xtheadcmo -target-feature
-xtheadcondmov -target-feature -xtheadfmemidx -target-feature -xtheadmac
-target-feature -xtheadmemidx -target-feature -xtheadmempair -target-feature
-xtheadsync -target-feature -xtheadvdot -target-feature -xventanacondops
-target-feature -experimental-smaia -target-feature -experimental-ssaia
-target-feature -experimental-zihintntl -target-feature -experimental-zca
-target-feature -experimental-zcb -target-feature -experimental-zcd
-target-feature -experimental-zcf -target-feature -experimental-zcmt
-target-feature -experimental-zfa -target-feature -experimental-zicond
-target-feature -experimental-zvfh -target-feature -experimental-ztso
-target-feature -experimental-zvbb -target-feature -experimental-zvbc
-target-feature -experimental-zvkg -target-feature -experimental-zvkn
-target-feature -experimental-zvkned -target-feature -experimental-zvkng
-target-feature -experimental-zvknha -target-feature -experimental-zvknhb
-target-feature -experimental-zvks -target-feature -experimental-zvksed
-target-feature -experimental-zvksg -target-feature -experimental-zvksh
-target-feature -experimental-zvkt -target-feature +relax -target-feature
-save-restore -target-abi lp64 -msmall-data-limit 8
-debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb
-fcoverage-compilation-dir=/home/kitoc/llvm-workspace/build -resource-dir
/scratch1/kitoc/llvm-workspace/build/lib/clang/17 -internal-isystem
/scratch1/kitoc/llvm-workspace/build/lib/clang/17/include -internal-isystem
/scratch1/kitoc/llvm-workspace/build/bin/../lib/clang-runtimes/riscv64-elf/include
-O1 -fdebug-compilation-dir=/home/kitoc/llvm-workspace/build -ferror-limit 19
-fno-signed-char -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig
-D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/x-2feb04.o -x c x.c
1. <eof> parser at end of file
2. Optimizer
#0 0x00007fe505ca91a2 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
/home/kitoc/llvm-workspace/llvm-project/llvm/lib/Support/Unix/Signals.inc:602:22
#1 0x00007fe505ca9265 PrintStackTraceSignalHandler(void*)
/home/kitoc/llvm-workspace/llvm-project/llvm/lib/Support/Unix/Signals.inc:675:1
#2 0x00007fe505ca6cca llvm::sys::RunSignalHandlers()
/home/kitoc/llvm-workspace/llvm-project/llvm/lib/Support/Signals.cpp:104:20
#3 0x00007fe505ca8b0b SignalHandler(int)
/home/kitoc/llvm-workspace/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
#4 0x00007fe5050fff10 (/lib/x86_64-linux-gnu/libc.so.6+0x3ef10)
#5 0x00007fe5050ffe87 raise
/build/glibc-CVJwZb/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
#6 0x00007fe5051017f1 abort
/build/glibc-CVJwZb/glibc-2.27/stdlib/abort.c:81:0
#7 0x00007fe5050f13fa __assert_fail_base
/build/glibc-CVJwZb/glibc-2.27/assert/assert.c:89:0
#8 0x00007fe5050f1472 (/lib/x86_64-linux-gnu/libc.so.6+0x30472)
#9 0x00007fe506d098b3
llvm::AssignmentTrackingPass::runOnFunction(llvm::Function&)
/home/kitoc/llvm-workspace/llvm-project/llvm/lib/IR/DebugInfo.cpp:2167:27
#10 0x00007fe506d09c40 llvm::AssignmentTrackingPass::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
/home/kitoc/llvm-workspace/llvm-project/llvm/lib/IR/DebugInfo.cpp:2213:13
#11 0x00007fe50d648435 llvm::detail::PassModel<llvm::Module,
llvm::AssignmentTrackingPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
/home/kitoc/llvm-workspace/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:3
#12 0x00007fe506f12aad llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
/home/kitoc/llvm-workspace/llvm-project/llvm/include/llvm/IR/PassManager.h:521:20
#13 0x00007fe50d6063c8 (anonymous
namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream>>&,
std::unique_ptr<llvm::ToolOutputFile,
std::default_delete<llvm::ToolOutputFile>>&)
/home/kitoc/llvm-workspace/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1055:12
#14 0x00007fe50d606969 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream>>)
/home/kitoc/llvm-workspace/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1113:21
#15 0x00007fe50d607aad clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef,
llvm::Module*, clang::BackendAction,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream>>)
/home/kitoc/llvm-workspace/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1274:25
#16 0x00007fe50ddf644d
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/home/kitoc/llvm-workspace/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:384:24
#17 0x00007fe4ff5689ea clang::ParseAST(clang::Sema&, bool, bool)
/home/kitoc/llvm-workspace/llvm-project/clang/lib/Parse/ParseAST.cpp:183:14
#18 0x00007fe50a89da61 clang::ASTFrontendAction::ExecuteAction()
/home/kitoc/llvm-workspace/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1166:11
#19 0x00007fe50ddf11fa clang::CodeGenAction::ExecuteAction()
/home/kitoc/llvm-workspace/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:1174:5
#20 0x00007fe50a89d31c clang::FrontendAction::Execute()
/home/kitoc/llvm-workspace/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1060:38
#21 0x00007fe50a7ad7ac
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/home/kitoc/llvm-workspace/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1049:42
#22 0x00007fe50f2103d7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/home/kitoc/llvm-workspace/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:264:38
#23 0x0000560e31f227a5 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
/home/kitoc/llvm-workspace/llvm-project/clang/tools/driver/cc1_main.cpp:251:40
#24 0x0000560e31f0ed4d ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&,
llvm::ToolContext const&)
/home/kitoc/llvm-workspace/llvm-project/clang/tools/driver/driver.cpp:366:20
#25 0x0000560e31f0f2af clang_main(int, char**, llvm::ToolContext const&)
/home/kitoc/llvm-workspace/llvm-project/clang/tools/driver/driver.cpp:407:26
#26 0x0000560e31f46d79 main
/home/kitoc/llvm-workspace/build/tools/clang/tools/driver/clang-driver.cpp:15:58
#27 0x00007fe5050e2c87 __libc_start_main
/build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:344:0
#28 0x0000560e31f0d1ba _start
(/scratch1/kitoc/llvm-workspace/build/bin/clang-14+0x3b1ba)
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 17.0.0 ([email protected]:llvm/llvm-project.git
e3afe0b89de57662e411f8cc14f6229782ec86ff)
Target: riscv64-unknown-unknown-elf
Thread model: posix
InstalledDir: /home/kitoc/llvm-workspace/build/bin
clang: note: diagnostic msg:
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146987/new/
https://reviews.llvm.org/D146987
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits