[Lldb-commits] [lldb] 60dd90f - [lldb][test] Remove home dir paths from core files used in tests (#201630)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 8 02:41:31 PDT 2026
Author: Raphael Isemann
Date: 2026-06-08T10:41:26+01:00
New Revision: 60dd90f3047bc1e0d727696b802da8fabd349dfc
URL: https://github.com/llvm/llvm-project/commit/60dd90f3047bc1e0d727696b802da8fabd349dfc
DIFF: https://github.com/llvm/llvm-project/commit/60dd90f3047bc1e0d727696b802da8fabd349dfc.diff
LOG: [lldb][test] Remove home dir paths from core files used in tests (#201630)
Most of our core files contain paths to the source files that were used
to generate the core file. LLDB probes the existence of these source
files when it sees them in the core file, which on its own is not
problematic as that's usually quite cheap.
Unfortunately, the paths used in most core file tests are in the form of
/home/XYZ/test.c which does not exist on macOS. On some macOS machines
with network drives, these file accesses cause the kernel to perform
some kind of network request which is extremely slow.
The result is that the tests that inspect these core files run extremely
slow on macOS. For example, the TestNetBSDCore.py and TestLinuxCore.py
tests spend 95% of their runtime just probing these network paths. In
the case of TestLinuxCore.py, this causes the test to run for about 1
minute where only 3.7s are actual test logic.
This patch removes all /home/* paths from our core files and replaces
them with /tmp/* variations. To keep the actual binary diff minimal, I
padded the paths with zeroes, so this patch effectively just sets some
of the bits of the core fiiles to 0 and replaces /home/ with /tmp/.
Added:
Modified:
lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
lldb/test/API/functionalities/postmortem/elf-core/altmain.core
lldb/test/API/functionalities/postmortem/elf-core/altmain.out
lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-neon.core
lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core
lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.out
lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-fpsimd.core
lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-full.core
lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.core
lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.out
lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_i386.core
lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_x86_64.core
lldb/test/API/functionalities/postmortem/elf-core/linux-i386.core
lldb/test/API/functionalities/postmortem/elf-core/linux-i386.out
lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.core
lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.out
lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64le.out
lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.core
lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.out
lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core
lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.out
lldb/test/API/functionalities/postmortem/elf-core/linux-s390x.out
lldb/test/API/functionalities/postmortem/elf-core/linux-x86_64.out
lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64
lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core
lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64
lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core
lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64
lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py b/lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
index 329346b61b31c..2fe56516d8727 100644
--- a/lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
+++ b/lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
@@ -350,11 +350,9 @@ def test_object_map(self):
lldbutil.mkdir_p(os.path.dirname(executable))
shutil.copyfile("linux-i386.out", executable)
- # Replace the original module path at /home/labath/test and load the core
+ # Replace the original module path at /tmp/core and load the core
self.runCmd(
- "settings set target.object-map /home/labath/test {}".format(
- tmp_object_map_root
- )
+ "settings set target.object-map /tmp/core {}".format(tmp_object_map_root)
)
target = self.dbg.CreateTarget(None)
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/altmain.core b/lldb/test/API/functionalities/postmortem/elf-core/altmain.core
index 423413070c7a3..65bb911b8efb4 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/altmain.core and b/lldb/test/API/functionalities/postmortem/elf-core/altmain.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/altmain.out b/lldb/test/API/functionalities/postmortem/elf-core/altmain.out
index 2fddf3e8f8037..1a230ef2a0e28 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/altmain.out and b/lldb/test/API/functionalities/postmortem/elf-core/altmain.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-neon.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-neon.core
index 19364be3b70a2..6c90c6f19b7c4 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-neon.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-neon.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core
index 3e89a36ec830e..fc6efeca0f11f 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.out
index 6df8e1c9e3025..b439161a94e18 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-fpsimd.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-fpsimd.core
index c58c8fa97795b..3a7dcd5d426a6 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-fpsimd.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-fpsimd.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-full.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-full.core
index 6f408e4fea01a..f1e48495cd77b 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-full.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-full.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.core
index f9211cab27789..2e25ae48b45c7 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.out
index 78304a97a826f..4fc20aec658d5 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_i386.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_i386.core
index b0fdaf67ca4f5..deddab1a36b2b 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_i386.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_i386.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_x86_64.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_x86_64.core
index 5fb39ee115b2a..053ea0a5acea3 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_x86_64.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_x86_64.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.core
index f8deff474d1fa..256c9b5452911 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.out
index 3cdd4eeca1030..688b5fdf99dbb 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.core
index 8738950b8e08d..cec81075588c0 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.out
index ea3c61ac5bae7..ddfb2878df792 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64le.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64le.out
index 05c69fd291b74..0c55882862c6b 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64le.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64le.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.core
index 7187b4000c56d..8071207b1a369 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.out
index 0e4e06dfe6de0..8d80b62e6c16c 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core
index 63265a5db123d..9f7efd23b854c 100644
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core and b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.out
index 908d61bb54caa..f9fe4c2c417f7 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-s390x.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-s390x.out
index 640fbdc257d9c..493b848d69fb7 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-s390x.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-s390x.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/elf-core/linux-x86_64.out b/lldb/test/API/functionalities/postmortem/elf-core/linux-x86_64.out
index 842402fd519d2..c78a43cb99b22 100755
Binary files a/lldb/test/API/functionalities/postmortem/elf-core/linux-x86_64.out and b/lldb/test/API/functionalities/postmortem/elf-core/linux-x86_64.out
diff er
diff --git a/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64 b/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64
index 56fa077bd6a9d..ed0d515a8e87d 100755
Binary files a/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64 and b/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64
diff er
diff --git a/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core b/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core
index d2d405004555a..65c67719ffc66 100644
Binary files a/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core and b/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64 b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64
index 32a49852215a7..aa4c028981938 100755
Binary files a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64 and b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64
diff er
diff --git a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core
index 2dbb299bbfb0a..e69906ab24dd9 100644
Binary files a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core and b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core
diff er
diff --git a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64 b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64
index d304de160f054..2f92b9fb6844c 100755
Binary files a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64 and b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64
diff er
diff --git a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core
index 5f68687c56e5d..707cea15018cb 100644
Binary files a/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core and b/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core
diff er
More information about the lldb-commits
mailing list