[llvm] [SPIRV] Add support for pointers to functions with aggregate args/returns as global variables / constant initialisers (PR #169595)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 7 13:53:12 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `llvm` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/13407
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 94420 tests, 64 workers --
Testing: 0.. 10
FAIL: Clang :: Interpreter/global-dtor.cpp (14474 of 94420)
******************** TEST 'Clang :: Interpreter/global-dtor.cpp' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 5
cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/global-dtor.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/global-dtor.cpp
# executed command: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/global-dtor.cpp
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl
# .---command stderr------------
# | JIT session error: In graph incr_module_9-jitted-objectbuffer, section .text.startup: relocation target 0x7cc3fcaffffc (__dso_handle:0x7cc3fcb00000 + 0xfffffffffffffffc) is out of range of Delta32 fixup at address 0x7cc3fcb00000 (<anonymous block> @ 0x78c3fc00d010 + 0x1f)
# | error: Failed to materialize symbols: { (main, { DW.ref.__gxx_personality_v0, __orc_init_func.incr_module_9, _ZN1DD2Ev, __clang_call_terminate, d, $.incr_module_9.__inits.0, _ZN1DC2Ev }) }
# | error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_9 }) }
# | Expected<T> must be checked before access or destruction.
# | Expected<T> value was in success state. (Note: Expected<T> values in success mode must still be checked prior to being destroyed).
# | #0 0x00005e6c6912d4e6 ___interceptor_backtrace /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:4556:13
# | #1 0x00005e6c6e59ee58 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# | #2 0x00005e6c6e59970a llvm::sys::RunSignalHandlers() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/Signals.cpp:0:5
# | #3 0x00005e6c6e5a0c3b SignalHandler(int, siginfo_t*, void*) /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# | #4 0x00007cc3fd0458d0 (/lib/x86_64-linux-gnu/libc.so.6+0x458d0)
# | #5 0x00007cc3fd0a49bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0xa49bc)
# | #6 0x00007cc3fd04579e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4579e)
# | #7 0x00007cc3fd0288cd abort (/lib/x86_64-linux-gnu/libc.so.6+0x288cd)
# | #8 0x00005e6c700ef4f2 operator<< /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Support/raw_ostream.h:234:7
# | #9 0x00005e6c700ef4f2 operator<< /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Support/raw_ostream.h:258:18
# | #10 0x00005e6c700ef4f2 llvm::Expected<llvm::orc::ExecutorAddrRange>::fatalUncheckedExpected() const /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Support/Error.h:716:14
# | #11 0x00005e6c74b8cd92 std::__1::__assoc_state<llvm::MSVCPExpected<llvm::orc::ExecutorAddrRange>>::__on_zero_shared() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/future:606:13
# | #12 0x00005e6c74b8b3d1 ~promise /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/future:1175:1
# | #13 0x00005e6c74b8b3d1 llvm::orc::DebugObject::~DebugObject() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ELFDebugObjectPlugin.cpp:151:3
# | #14 0x00005e6c74b8ad62 llvm::orc::ELFDebugObject::~ELFDebugObject() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ELFDebugObjectPlugin.cpp:206:7
# | #15 0x00005e6c74b9a443 operator() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/unique_ptr.h:0:5
# | #16 0x00005e6c74b9a443 reset /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/unique_ptr.h:288:7
# | #17 0x00005e6c74b9a443 ~unique_ptr /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/unique_ptr.h:254:71
# | #18 0x00005e6c74b9a443 destroy /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/allocator.h:156:87
# | #19 0x00005e6c74b9a443 destroy<std::__1::unique_ptr<llvm::orc::DebugObject, std::__1::default_delete<llvm::orc::DebugObject> >, 0> /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/allocator_traits.h:308:9
# | #20 0x00005e6c74b9a443 __base_destruct_at_end /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__vector/vector.h:761:7
# | #21 0x00005e6c74b9a443 clear /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__vector/vector.h:549:5
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:564: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 94420 tests, 64 workers --
Testing: 0.. 10
FAIL: Clang :: Interpreter/global-dtor.cpp (14474 of 94420)
******************** TEST 'Clang :: Interpreter/global-dtor.cpp' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 5
cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/global-dtor.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/global-dtor.cpp
# executed command: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/global-dtor.cpp
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl
# .---command stderr------------
# | JIT session error: In graph incr_module_9-jitted-objectbuffer, section .text.startup: relocation target 0x7cc3fcaffffc (__dso_handle:0x7cc3fcb00000 + 0xfffffffffffffffc) is out of range of Delta32 fixup at address 0x7cc3fcb00000 (<anonymous block> @ 0x78c3fc00d010 + 0x1f)
# | error: Failed to materialize symbols: { (main, { DW.ref.__gxx_personality_v0, __orc_init_func.incr_module_9, _ZN1DD2Ev, __clang_call_terminate, d, $.incr_module_9.__inits.0, _ZN1DC2Ev }) }
# | error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_9 }) }
# | Expected<T> must be checked before access or destruction.
# | Expected<T> value was in success state. (Note: Expected<T> values in success mode must still be checked prior to being destroyed).
# | #0 0x00005e6c6912d4e6 ___interceptor_backtrace /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:4556:13
# | #1 0x00005e6c6e59ee58 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# | #2 0x00005e6c6e59970a llvm::sys::RunSignalHandlers() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/Signals.cpp:0:5
# | #3 0x00005e6c6e5a0c3b SignalHandler(int, siginfo_t*, void*) /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# | #4 0x00007cc3fd0458d0 (/lib/x86_64-linux-gnu/libc.so.6+0x458d0)
# | #5 0x00007cc3fd0a49bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0xa49bc)
# | #6 0x00007cc3fd04579e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4579e)
# | #7 0x00007cc3fd0288cd abort (/lib/x86_64-linux-gnu/libc.so.6+0x288cd)
# | #8 0x00005e6c700ef4f2 operator<< /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Support/raw_ostream.h:234:7
# | #9 0x00005e6c700ef4f2 operator<< /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Support/raw_ostream.h:258:18
# | #10 0x00005e6c700ef4f2 llvm::Expected<llvm::orc::ExecutorAddrRange>::fatalUncheckedExpected() const /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Support/Error.h:716:14
# | #11 0x00005e6c74b8cd92 std::__1::__assoc_state<llvm::MSVCPExpected<llvm::orc::ExecutorAddrRange>>::__on_zero_shared() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/future:606:13
# | #12 0x00005e6c74b8b3d1 ~promise /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/future:1175:1
# | #13 0x00005e6c74b8b3d1 llvm::orc::DebugObject::~DebugObject() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ELFDebugObjectPlugin.cpp:151:3
# | #14 0x00005e6c74b8ad62 llvm::orc::ELFDebugObject::~ELFDebugObject() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ELFDebugObjectPlugin.cpp:206:7
# | #15 0x00005e6c74b9a443 operator() /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/unique_ptr.h:0:5
# | #16 0x00005e6c74b9a443 reset /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/unique_ptr.h:288:7
# | #17 0x00005e6c74b9a443 ~unique_ptr /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/unique_ptr.h:254:71
# | #18 0x00005e6c74b9a443 destroy /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/allocator.h:156:87
# | #19 0x00005e6c74b9a443 destroy<std::__1::unique_ptr<llvm::orc::DebugObject, std::__1::default_delete<llvm::orc::DebugObject> >, 0> /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__memory/allocator_traits.h:308:9
# | #20 0x00005e6c74b9a443 __base_destruct_at_end /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__vector/vector.h:761:7
# | #21 0x00005e6c74b9a443 clear /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1/__vector/vector.h:549:5
```
</details>
https://github.com/llvm/llvm-project/pull/169595
More information about the llvm-commits
mailing list