llvm-project
llvm-project copied to clipboard
crash with llvm 23
as suggested, i am attaching the crash related files
clang: /dataCMC/my-llvm/llvm/include/llvm/ADT/APInt.h:128: llvm::APInt::APInt(unsigned int, uint64_t, bool, bool): Assertion `llvm::isUIntN(BitWidth, val) && "Value is not an N-bit unsigned value"' failed.
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: /opt/llvm-23/bin/clang -DHAVE_RMN=\"20.1.0-b7-180-gf016b54-dirty\" -DLittle_Endian -I/home/software/GITHUB-ECCC/librmn/build/llvm23 -I/home/software/GITHUB-ECCC/librmn/build/llvm23/dep/udunits2 -I/home/software/GITHUB-ECCC/librmn/dep/udunits2/lib/. -march=native -W -O2 -g -DNDEBUG -std=gnu99 -fpic -MD -MT dep/udunits2/lib/CMakeFiles/libudunits2-static.dir/xml.c.o -MF CMakeFiles/libudunits2-static.dir/xml.c.o.d -o CMakeFiles/libudunits2-static.dir/xml.c.o -c /home/software/GITHUB-ECCC/librmn/dep/udunits2/lib/xml.c
1. <eof> parser at end of file
2. Optimizer
3. Running pass "function<eager-inv>(mem2reg,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>)" on module "/home/software/GITHUB-ECCC/librmn/dep/udunits2/lib/xml.c"
4. Running pass "instcombine<max-iterations=1;no-verify-fixpoint>" on function "make_latin1_forms"
#0 0x000055b439260768 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/llvm-23/bin/clang+0x2071768)
#1 0x000055b43925d681 llvm::sys::RunSignalHandlers() (/opt/llvm-23/bin/clang+0x206e681)
#2 0x000055b43925f311 llvm::sys::CleanupOnSignal(unsigned long) (/opt/llvm-23/bin/clang+0x2070311)
#3 0x000055b4391c5dd6 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#4 0x0000151d565ac420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
#5 0x0000151d55fc600b raise /build/glibc-KwvWzc/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
#6 0x0000151d55fa5859 abort /build/glibc-KwvWzc/glibc-2.31/stdlib/abort.c:81:7
#7 0x0000151d55fa5729 get_sysdep_segment_value /build/glibc-KwvWzc/glibc-2.31/intl/loadmsgcat.c:509:8
#8 0x0000151d55fa5729 _nl_load_domain /build/glibc-KwvWzc/glibc-2.31/intl/loadmsgcat.c:970:34
#9 0x0000151d55fb6fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
#10 0x000055b438063d8e llvm::APInt::APInt(unsigned int, unsigned long, bool, bool) (/opt/llvm-23/bin/clang+0xe74d8e)
#11 0x000055b438c26874 llvm::ConstantInt::get(llvm::Type*, unsigned long, bool, bool) (/opt/llvm-23/bin/clang+0x1a37874)
#12 0x000055b4392b56a4 llvm::emitStrChr(llvm::Value*, char, llvm::IRBuilderBase&, llvm::TargetLibraryInfo const*) (/opt/llvm-23/bin/clang+0x20c66a4)
#13 0x000055b4393f1ba5 llvm::LibCallSimplifier::optimizeStrStr(llvm::CallInst*, llvm::IRBuilderBase&) (/opt/llvm-23/bin/clang+0x2202ba5)
#14 0x000055b4393fd482 llvm::LibCallSimplifier::optimizeStringMemoryLibCall(llvm::CallInst*, llvm::IRBuilderBase&) (/opt/llvm-23/bin/clang+0x220e482)
#15 0x000055b4393fde22 llvm::LibCallSimplifier::optimizeCall(llvm::CallInst*, llvm::IRBuilderBase&) (/opt/llvm-23/bin/clang+0x220ee22)
#16 0x000055b438e833dd llvm::InstCombinerImpl::tryOptimizeCall(llvm::CallInst*) (/opt/llvm-23/bin/clang+0x1c943dd)
#17 0x000055b438e7aa36 llvm::InstCombinerImpl::visitCallBase(llvm::CallBase&) (/opt/llvm-23/bin/clang+0x1c8ba36)
#18 0x000055b438e71737 llvm::InstCombinerImpl::visitCallInst(llvm::CallInst&) (/opt/llvm-23/bin/clang+0x1c82737)
#19 0x000055b438e1c35c llvm::InstCombinerImpl::run() (/opt/llvm-23/bin/clang+0x1c2d35c)
#20 0x000055b438e1fcc9 combineInstructionsOverFunction(llvm::Function&, llvm::InstructionWorklist&, llvm::AAResults*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::OptimizationRemarkEmitter&, llvm::BlockFrequencyInfo*, llvm::BranchProbabilityInfo*, llvm::ProfileSummaryInfo*, llvm::InstCombineOptions const&) InstructionCombining.cpp:0:0
#21 0x000055b438e1ef96 llvm::InstCombinePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/opt/llvm-23/bin/clang+0x1c2ff96)
#22 0x000055b438d7bac7 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/opt/llvm-23/bin/clang+0x1b8cac7)
#23 0x000055b438d7fa9d llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/llvm-23/bin/clang+0x1b90a9d)
#24 0x000055b438d7ab77 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/llvm-23/bin/clang+0x1b8bb77)
#25 0x000055b43948b6c6 (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>>&, clang::BackendConsumer*) BackendUtil.cpp:0:0
#26 0x000055b43948180d clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, 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>>, clang::BackendConsumer*) (/opt/llvm-23/bin/clang+0x229280d)
#27 0x000055b439a2a734 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/llvm-23/bin/clang+0x283b734)
#28 0x000055b43b36aa49 clang::ParseAST(clang::Sema&, bool, bool) (/opt/llvm-23/bin/clang+0x417ba49)
#29 0x000055b439ced9a6 clang::FrontendAction::Execute() (/opt/llvm-23/bin/clang+0x2afe9a6)
#30 0x000055b439c5440a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/llvm-23/bin/clang+0x2a6540a)
#31 0x000055b439dd5e3c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/llvm-23/bin/clang+0x2be6e3c)
#32 0x000055b437ee631d cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/llvm-23/bin/clang+0xcf731d)
#33 0x000055b437ee2405 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) driver.cpp:0:0
#34 0x000055b437ee476d int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::$_0>(long, llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#35 0x000055b439a8f989 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::$_0>(long) Job.cpp:0:0
#36 0x000055b4391c5aee llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/llvm-23/bin/clang+0x1fd6aee)
#37 0x000055b439a8f0fc clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (/opt/llvm-23/bin/clang+0x28a00fc)
#38 0x000055b439a4e25c clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/opt/llvm-23/bin/clang+0x285f25c)
#39 0x000055b439a4e477 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/opt/llvm-23/bin/clang+0x285f477)
#40 0x000055b439a6b4d8 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/opt/llvm-23/bin/clang+0x287c4d8)
#41 0x000055b437ee1c4d clang_main(int, char**, llvm::ToolContext const&) (/opt/llvm-23/bin/clang+0xcf2c4d)
#42 0x000055b437ef1aed main (/opt/llvm-23/bin/clang+0xd02aed)
#43 0x0000151d55fa7083 __libc_start_main /build/glibc-KwvWzc/glibc-2.31/csu/../csu/libc-start.c:342:3
#44 0x000055b437edfc4e _start (/opt/llvm-23/bin/clang+0xcf0c4e)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 23.0.0git (https://github.com/llvm/llvm-project.git 36990d81d48ecb41af84a7e0eaa0b20efe0615cf)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /LLVM/llvm-23/bin
Build config: +assertions
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/software/xml-6e2378.c
clang: note: diagnostic msg: /tmp/software/xml-6e2378.sh
clang: note: diagnostic msg:
********************
Aborted (core dumped)
@mfvalin @AaronBallman Hi, can I be assigned with this issue?
No need for an assignment, you can just start working on it if you're ready. :-)
Alright, will do : )