[all-commits] [llvm/llvm-project] 60dd90: [lldb][test] Remove home dir paths from core files...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Mon Jun 8 02:41:49 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 60dd90f3047bc1e0d727696b802da8fabd349dfc
https://github.com/llvm/llvm-project/commit/60dd90f3047bc1e0d727696b802da8fabd349dfc
Author: Raphael Isemann <rise at apple.com>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
M lldb/test/API/functionalities/postmortem/elf-core/altmain.core
M lldb/test/API/functionalities/postmortem/elf-core/altmain.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-neon.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-fpsimd.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-full.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_i386.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_x86_64.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-i386.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-i386.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-loongarch64.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64le.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_fpr.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core
M lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-s390x.out
M lldb/test/API/functionalities/postmortem/elf-core/linux-x86_64.out
M lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64
M lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core
M lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64
M lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core
M lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64
M lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core
Log Message:
-----------
[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/.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list