<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63035>63035</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Crash from clang-17 on debian-11.7
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Captain-Dirk
</td>
</tr>
</table>
<pre>
********************
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/clang/bin/clang++ -Ofast -ffunction-sections -fdata-sections -pthread -mshstk -mavx2 -mfma -maes -fPIC -fno-semantic-interposition -Wno-unknown-warning-option -Wno-gnu -Wno-dangling-else -Wno-bitwise-op-parentheses -Wno-logical-op-parentheses -Wno-shift-op-parentheses -Wno-invalid-source-encoding -Wno-expansion-to-defined -Wno-undefined-var-template -Wno-pragma-pack -Wlarge-by-value-copy=32 -Wno-deprecated-enum-enum-conversion -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-float-conversion -std=c++20 -fno-operator-names -Winconsistent-missing-override -Wsuggest-override -fno-fast-math -I/home/duz/pnl/extern/imgui/lib -I/home/src/extern/imgui/ -I/home/src/extern/imgui/backends/ -I/home/src/extern/imgui/misc/freetype/ -I/var/obj/extern/duz/Linux-amd64/CL-REL/include -I/var/obj/extern/duz/Linux-amd64/CL-REL/imgui/lib -I/var/obj/extern/duz/Linux-amd64/CL-REL/include -DHAVE_SHCON -D_GNU_SOURCE -D_REENTRANT -Ds3_host_Linux -Ds3_system_Linux -Ds3_system=\"Linux\" -Ds3_system_version_debian11 -Ds3_system_version=debian11 -Ds3_machine_amd64 -Ds3_machine=\"amd64\" -Ds3_build_REL -Ds3_build=\"REL\" -Ds3_branch_c -Ds3_branch=\"c\" -Ds3_version_duz -Ds3_version=\"duz\" -Ds3_linux=\"debian11\" -Dsol3_cdecl= -DNDEBUG -DIMGUI_ENABLE_FREETYPE -c -o /var/obj/extern/duz/Linux-amd64/CL-REL/imgui/lib/imgui.o /home/src/extern/imgui/imgui.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/home/src/extern/imgui/imgui.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN5ImGui17RenderMouseCursorE6ImVec2fijjj'
#0 0x00007fde4d4432d6 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xc432d6)
#1 0x00007fde4d441470 llvm::sys::RunSignalHandlers() (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xc41470)
#2 0x00007fde4d4429a4 llvm::sys::CleanupOnSignal(unsigned long) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xc429a4)
#3 0x00007fde4d393240 (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xb93240)
#4 0x00007fde57a99140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x13140)
#5 0x00007fde4d4befb5 llvm::ConstantDataSequential::getElementAsAPInt(unsigned int) const (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xcbefb5)
#6 0x00007fde4ff9dd91 (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x379dd91)
#7 0x00007fde4fee2f7d (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x36e2f7d)
#8 0x00007fde4ff54ba1 (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x3754ba1)
#9 0x00007fde4dc826bd llvm::TargetLowering::SimplifyDemandedBitsForTargetNode(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int) const (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x14826bd)
#10 0x00007fde4ff65138 (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x3765138)
#11 0x00007fde4dc7540d llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x147540d)
#12 0x00007fde4dc81223 llvm::TargetLowering::SimplifyDemandedVectorElts(llvm::SDValue, llvm::APInt const&, llvm::APInt&, llvm::APInt&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x1481223)
#13 0x00007fde4dc7d643 llvm::TargetLowering::SimplifyDemandedVectorElts(llvm::SDValue, llvm::APInt const&, llvm::APInt&, llvm::APInt&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x147d643)
#14 0x00007fde4ff5cb0b (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x375cb0b)
#15 0x00007fde4dc7e1eb llvm::TargetLowering::SimplifyDemandedVectorElts(llvm::SDValue, llvm::APInt const&, llvm::APInt&, llvm::APInt&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x147e1eb)
#16 0x00007fde4dc8180c llvm::TargetLowering::SimplifyDemandedVectorElts(llvm::SDValue, llvm::APInt const&, llvm::TargetLowering::DAGCombinerInfo&) const (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x148180c)
#17 0x00007fde4ff69dc7 (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x3769dc7)
#18 0x00007fde4da54abe (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x1254abe)
#19 0x00007fde4da532b8 llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AAResults*, llvm::CodeGenOpt::Level) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x12532b8)
#20 0x00007fde4dc55a0b llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x1455a0b)
#21 0x00007fde4dc54d31 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x1454d31)
#22 0x00007fde4dc52ec6 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x1452ec6)
#23 0x00007fde4feb470f (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0x36b470f)
#24 0x00007fde4d7dba4b llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xfdba4b)
#25 0x00007fde4d57af5f llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xd7af5f)
#26 0x00007fde4d580c03 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xd80c03)
#27 0x00007fde4d57b638 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xd7b638)
#28 0x00007fde55765032 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>>) (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x1965032)
#29 0x00007fde55acf35e (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x1ccf35e)
#30 0x00007fde547fcb06 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x9fcb06)
#31 0x00007fde56488075 clang::FrontendAction::Execute() (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x2688075)
#32 0x00007fde56404684 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x2604684)
#33 0x00007fde56500a04 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x2700a04)
#34 0x000055d34b03e5c0 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/clang/bin/clang+++0x135c0)
#35 0x000055d34b03b7f5 (/opt/clang/bin/clang+++0x107f5)
#36 0x00007fde560d6279 (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x22d6279)
#37 0x00007fde4d392fdc llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/lib/llvm-17/bin/../lib/libLLVM-17.so.1+0xb92fdc)
#38 0x00007fde560d59a3 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x22d59a3)
#39 0x00007fde5609d912 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x229d912)
#40 0x00007fde5609db6e clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x229db6e)
#41 0x00007fde560b880d clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/usr/lib/llvm-17/bin/../lib/libclang-cpp.so.17+0x22b880d)
#42 0x000055d34b03af9d clang_main(int, char**, llvm::ToolContext const&) (/opt/clang/bin/clang+++0xff9d)
#43 0x000055d34b0480a2 main (/opt/clang/bin/clang+++0x1d0a2)
#44 0x00007fde4c482d0a __libc_start_main ./csu/../csu/libc-start.c:308:16
#45 0x000055d34b03809a _start (/opt/clang/bin/clang+++0xd09a)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Debian clang version 17.0.0 (++20230529071827+755a73cd6f91-1~exp1~20230529071931.681)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /opt/clang/bin
clang++: note: diagnostic msg:
********************
[clang17-crash-in-imgui.zip](https://github.com/llvm/llvm-project/files/11615621/clang17-crash-in-imgui.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWl9z46qS_zTKCyWXhP5ZD3lQ_CcndzOTVDJn7u6-uBAgmxkJdAE5yXm4n30LJNvCcc4kMz53d6tu1dTEghb949dNd4NASrE1p_TSS668ZH6BOr0R8nKGWo0Y9-dMfr8oBXm59IK5FxQe_IV_doT720XxuACqKxumAQJltwaStkJqoAXYaN0qLyo8uPTgcs30pisnWDQeXNb1dvfHb6X4RrH24JIp1VHlwSVAnADGcd0RCvSGAiyR2oAS4e9aIkw9OAOtpK0UmCpFCVCik32zeRMpJTBDmhIgOw4UlqzVkx7yo0b4OyBd0xpktimYeEF-L8VaogYgue4ayrUBDjy4FK1BhmvE1x5clowfnq48eAX8uwopDfyq6jjWTHBfUftXAb8iSKPRc6s3kiIC_EZtlP4O_AZtnyHwm6pB5oGad-5vZsCvuPAVbRDXDPuMaypboZgZBvh_58Lv-Hcunrj_hCRnfO2L9tC35l3_gyC-rk0vrRXtm0qmn5iivmj9FknK9YYqo9X01WLNMKpP9qkNq_TJHsa3qGbE7y3gU44FYXzdd9LnFnFlSNHCJ7RinJLdBIZHf4ukr2nT1kgPIFuJ1g3yW2Mo_-81kmvqly_-FtUd9bFoX7xoHsFhjrSVFBtT-5R3Tf8fFnxLpdozMhJCXPD3Sdr-qhZIO1JKEy-a4976M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