[llvm-branch-commits] [llvm] release/22.x: [SafeStack] Fix crashing with scalable TypeSizes (#180547) (PR #203306)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jun 11 08:54:55 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 168071 tests passed
* 2993 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.CodeGen/AArch64/safestack_scalar.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=aarch64-linux-gnu -stop-after=safe-stack < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/safestack_scalar.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/safestack_scalar.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=aarch64-linux-gnu -stop-after=safe-stack
# .---command stderr------------
# | LLVM ERROR: Cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=aarch64-linux-gnu -stop-after=safe-stack
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'Safe Stack instrumentation pass' on function '@test_sve'
# |  #0 0x0000000008009f38 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:842:13
# |  #1 0x0000000008007685 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x000000000800acc1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:429:38
# |  #3 0x00007989ec4e5330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007989ec53eb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007989ec4e527e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007989ec4c88ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x0000000007f6c175 llvm::report_fatal_error(llvm::Twine const&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/ErrorHandling.cpp:137:5
# |  #8 0x0000000007f6bfb6 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x7f6bfb6)
# |  #9 0x0000000007f6c25b (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x7f6c25b)
# | #10 0x00000000072b66ee dyn_cast<llvm::ConstantInt, const llvm::Value> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:656:3
# | #11 0x00000000072b66ee (anonymous namespace)::SafeStack::getStaticAllocaAllocationSize(llvm::AllocaInst const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/SafeStack.cpp:203:14
# | #12 0x00000000072b29a7 findInsts /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/SafeStack.cpp:392:11
# | #13 0x00000000072b29a7 (anonymous namespace)::SafeStack::run() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/SafeStack.cpp:793:3
# | #14 0x00000000072b900d (anonymous namespace)::SafeStackLegacyPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/SafeStack.cpp:951:10
# | #15 0x000000000757b328 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #16 0x0000000007582dd2 llvm::FPPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1444:13
# | #17 0x000000000757bd9b runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1513:27
# | #18 0x000000000757bd9b llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:531:44
# | #19 0x0000000004e8c19b compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:874:17
# | #20 0x0000000004e89463 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:462:13
# | #21 0x00007989ec4ca1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #22 0x00007989ec4ca28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #23 0x0000000004e84f65 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x4e84f65)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/safestack_scalar.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/safestack_scalar.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/203306


More information about the llvm-branch-commits mailing list