[Lldb-commits] [lldb] [lldb] Skip minidump reload test on unsupported architectures (PR #227634)

Yao Qi via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 30 02:58:53 PDT 2026


https://github.com/qiyao created https://github.com/llvm/llvm-project/pull/227634

`TestMinidumpReloadCrash.py` runs `process save-core
--plugin-name=minidump` on any architecture, so it fails on 32-bit arm:

```
error: failed to save core file for process to '.../process.core':
architecture arm not supported.
```

`ArchThreadContexts::prepareRegisterContext` in `MinidumpFileBuilder.cpp`
builds a thread context for x86_64 and aarch64 only, so `AddThreadList`
rejects any other architecture.  Gate the test like the other minidump
save-core tests.


>From 3a7c96eb1922e18829ef34ef4dbe00b9fcaf1d68 Mon Sep 17 00:00:00 2001
From: Yao Qi <yao_qi at apple.com>
Date: Wed, 30 Sep 2026 09:59:24 +0100
Subject: [PATCH] [lldb] Skip minidump reload test on unsupported architectures

`TestMinidumpReloadCrash.py` runs `process save-core
--plugin-name=minidump` on any architecture, so it fails on 32-bit arm:

```
error: failed to save core file for process to '.../process.core':
architecture arm not supported.
```

`ArchThreadContexts::prepareRegisterContext` in `MinidumpFileBuilder.cpp`
builds a thread context for x86_64 and aarch64 only, so `AddThreadList`
rejects any other architecture.  Gate the test like the other minidump
save-core tests.
---
 .../TestMinidumpReloadCrash.py                                  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lldb/test/API/functionalities/process_save_core_minidump_reload_crash/TestMinidumpReloadCrash.py b/lldb/test/API/functionalities/process_save_core_minidump_reload_crash/TestMinidumpReloadCrash.py
index 45c8143578f61..4f5e191186637 100644
--- a/lldb/test/API/functionalities/process_save_core_minidump_reload_crash/TestMinidumpReloadCrash.py
+++ b/lldb/test/API/functionalities/process_save_core_minidump_reload_crash/TestMinidumpReloadCrash.py
@@ -9,6 +9,8 @@
 
 
 class MinidumpReloadCrashTestCase(TestBase):
+    # The minidump writer only emits a thread context for x86_64 and arm64.
+    @skipIf(archs=no_match(["x86_64", "arm64", "arm64e", "aarch64"]))
     def test_reload_minidump_does_not_crash(self):
         self.build()
         target, process, thread, bkpt = lldbutil.run_to_name_breakpoint(self, "main")



More information about the lldb-commits mailing list