diff options
| author | Lang Hames <lhames@gmail.com> | 2026-01-13 11:32:58 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 11:32:58 +1100 |
| commit | 552a696a711a48d4fea2027322cdd866f03b80cf (patch) | |
| tree | e108a7ece57181f1e5a3d8d5c3c4a5fb7dd166a5 | |
| parent | af4427d5a4296d5a00795b76e3114bee546c8339 (diff) | |
| download | llvm-552a696a711a48d4fea2027322cdd866f03b80cf.tar.gz llvm-552a696a711a48d4fea2027322cdd866f03b80cf.tar.bz2 llvm-552a696a711a48d4fea2027322cdd866f03b80cf.zip | |
[llvm-jitlink] Remove flaky testcase. (#175680)
On some systems, backtraces contain addresses with their high bits set*.
These high bits prevent symbolication using the JIT symbol table. Since
this test is for a best-effort debugging / diagnosis tool it seems best
to remove the test until/unless we can get it passing on all systems, or
find some way to identify systems that will fail.
See discussion in https://github.com/llvm/llvm-project/pull/175537.
* Note that the test does not use PAC or pointer tagging -- the high
bits are coming from somewhere else. Possibly libunwind, but that is
just speculation.
| -rw-r--r-- | llvm/test/ExecutionEngine/JITLink/AArch64/backtrace-symbolication.s | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/llvm/test/ExecutionEngine/JITLink/AArch64/backtrace-symbolication.s b/llvm/test/ExecutionEngine/JITLink/AArch64/backtrace-symbolication.s deleted file mode 100644 index 88a1953508de..000000000000 --- a/llvm/test/ExecutionEngine/JITLink/AArch64/backtrace-symbolication.s +++ /dev/null @@ -1,41 +0,0 @@ -# RUN: rm -rf %t && mkdir -p %t -# RUN: llvm-mc -triple=arm64-apple-darwin -filetype=obj -o %t/crash.o %s -# RUN: not --crash llvm-jitlink -debugger-support=false \ -# RUN: -write-symtab %t/crash.symtab.txt %t/crash.o \ -# RUN: > %t/backtrace.txt 2>&1 -# RUN: llvm-jitlink -symbolicate-with %t/crash.symtab.txt %t/backtrace.txt \ -# RUN: | FileCheck %s - -# Deliberately crash by dereferencing an environment variable that should never -# be defined, then symbolicate the backtrace using the dumped symbol table. - -# REQUIRES: system-darwin && native && target-aarch64 - -# CHECK: this_should_crash {{.*}} ({{.*}}crash.o) - - .section __TEXT,__text,regular,pure_instructions - .globl _this_should_crash - .p2align 2 -_this_should_crash: - stp x29, x30, [sp, #-16]! - adrp x0, l_.str@PAGE - add x0, x0, l_.str@PAGEOFF - bl _getenv - ldrsb w0, [x0] - ldp x29, x30, [sp], #16 - ret - - - .globl _main - .p2align 2 -_main: - stp x29, x30, [sp, #-16]! - bl _this_should_crash - ldp x29, x30, [sp], #16 - ret - - .section __TEXT,__const -l_.str: - .asciz "a thousand curses upon anyone who dares define this" - -.subsections_via_symbols |
