[clang] Revert "[clang-repl] Fix crashing on unusable top-level declarations" (PR #230734)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 10 00:00:25 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/27376

<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-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
-- Testing: 106333 tests, 64 workers --
Testing:  0.
FAIL: Clang :: Interpreter/value-print-temporaries.cpp (201 of 106333)
******************** TEST 'Clang :: Interpreter/value-print-temporaries.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
cat /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang-repl | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# executed command: cat /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang-repl
# .---command stderr------------
# | JIT session error: In graph incr_module_31-jitted-objectbuffer, section .eh_frame: relocation target 0x7ac6685ae000 (DW.ref.__gxx_personality_v0) is out of range of Delta32 fixup at address 0x7ac6685ae000 (<anonymous block> @ 0x76c667001060 + 0x13)
# | error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_31, $.incr_module_31.__inits.0 }) }
# | error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_31 }) }
# `-----------------------------
# executed command: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# .---command stderr------------
# | /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp:32:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: (T) @0x{{[0-9a-f]+}}
# |                ^
# | <stdin>:4:8: note: scanning from here
# | (int) 3
# |        ^
# | <stdin>:5:1: note: possible intended match here
# | (int) 3
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: (int) 42 
# |            2: (int) 1 
# |            3: (int) 7 
# |            4: (int) 3 
Step 10 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:572: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
-- Testing: 106333 tests, 64 workers --
Testing:  0.
FAIL: Clang :: Interpreter/value-print-temporaries.cpp (201 of 106333)
******************** TEST 'Clang :: Interpreter/value-print-temporaries.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
cat /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang-repl | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# executed command: cat /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang-repl
# .---command stderr------------
# | JIT session error: In graph incr_module_31-jitted-objectbuffer, section .eh_frame: relocation target 0x7ac6685ae000 (DW.ref.__gxx_personality_v0) is out of range of Delta32 fixup at address 0x7ac6685ae000 (<anonymous block> @ 0x76c667001060 + 0x13)
# | error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_31, $.incr_module_31.__inits.0 }) }
# | error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_31 }) }
# `-----------------------------
# executed command: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# .---command stderr------------
# | /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp:32:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: (T) @0x{{[0-9a-f]+}}
# |                ^
# | <stdin>:4:8: note: scanning from here
# | (int) 3
# |        ^
# | <stdin>:5:1: note: possible intended match here
# | (int) 3
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/Interpreter/value-print-temporaries.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: (int) 42 
# |            2: (int) 1 
# |            3: (int) 7 
# |            4: (int) 3 

```

</details>

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


More information about the cfe-commits mailing list