[llvm] [llvm-jitlink] Make the -show-addrs option work without -check. (PR #175491)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 11 22:53:33 PST 2026


github-actions[bot] wrote:

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

* 167898 tests passed
* 2989 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.ExecutionEngine/JITLink/Generic/llvm-jitlink-option-show-addrs.test</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -filetype=obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/ExecutionEngine/JITLink/Generic/Output/llvm-jitlink-option-show-addrs.test.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/ExecutionEngine/JITLink/Generic/Inputs/main-ret-0.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -filetype=obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/ExecutionEngine/JITLink/Generic/Output/llvm-jitlink-option-show-addrs.test.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/ExecutionEngine/JITLink/Generic/Inputs/main-ret-0.ll
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-jitlink -noexec -show-addrs /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/ExecutionEngine/JITLink/Generic/Output/llvm-jitlink-option-show-addrs.test.tmp.o | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/ExecutionEngine/JITLink/Generic/llvm-jitlink-option-show-addrs.test
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-jitlink -noexec -show-addrs /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/ExecutionEngine/JITLink/Generic/Output/llvm-jitlink-option-show-addrs.test.tmp.o
# .---command stderr------------
# | llvm-jitlink: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h:99: bool llvm::RuntimeDyldChecker::MemoryRegionInfo::isZeroFill() const: Assertion `Size && "setContent/setZeroFill must be called first"' failed.
# | 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/llvm-jitlink -noexec -show-addrs /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/ExecutionEngine/JITLink/Generic/Output/llvm-jitlink-option-show-addrs.test.tmp.o
# |  #0 0x0000000002d5abf8 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 0x0000000002d581f5 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x0000000002d5b9c1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:429:38
# |  #3 0x00007e621f9a4330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007e621f9fdb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007e621f9a427e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007e621f9878ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x00007e621f98781b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# |  #8 0x00007e621f99a517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# |  #9 0x000000000250c29d getContent /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h:118:7
# | #10 0x000000000250c29d llvm::operator<<(llvm::raw_ostream&, llvm::RuntimeDyldChecker::MemoryRegionInfo const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-jitlink/llvm-jitlink.cpp:0:0
# | #11 0x00000000024f8dc6 operator<< /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/raw_ostream.h:230:37
# | #12 0x00000000024f8dc6 operator<< /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/raw_ostream.h:258:18
# | #13 0x00000000024f8dc6 operator<< /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-jitlink/llvm-jitlink.cpp:432:54
# | #14 0x00000000024f8dc6 llvm::Session::dumpSessionInfo(llvm::raw_ostream&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-jitlink/llvm-jitlink.cpp:1391:35
# | #15 0x00000000024fef9e operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:576:17
# | #16 0x00000000024fef9e main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-jitlink/llvm-jitlink.cpp:2933:8
# | #17 0x00007e621f9891ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #18 0x00007e621f98928b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #19 0x00000000024eb415 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-jitlink+0x24eb415)
# `-----------------------------
# 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/ExecutionEngine/JITLink/Generic/llvm-jitlink-option-show-addrs.test
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/ExecutionEngine/JITLink/Generic/llvm-jitlink-option-show-addrs.test:14:10: error: CHECK: expected string not found in input
# | # CHECK: main{{.*}} target addr = 0x{{[[:xdigit:]]+}}, content:
# |          ^
# | <stdin>:1:1: note: scanning from here
# | Registered addresses:
# | ^
# | <stdin>:3:24: note: possible intended match here
# |  "__jitlink_ELF_SYM_UND_0" target addr = 0x0000000000000000, content: 
# |                        ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/ExecutionEngine/JITLink/Generic/llvm-jitlink-option-show-addrs.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: Registered addresses: 
# | check:14'0     X~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: Symbols: 
# | check:14'0     ~~~~~~~~~
# |             3:  "__jitlink_ELF_SYM_UND_0" target addr = 0x0000000000000000, content: 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:14'1                            ?                                               possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</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/175491


More information about the llvm-commits mailing list