[llvm-branch-commits] [compiler-rt] 38550ff - [sanitizer_common][tests] Skip MemoryMapping::ParseUnixMemoryProfile … (#212114)
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 28 02:51:12 PDT 2026
Author: Rainer Orth
Date: 2026-07-28T11:51:00+02:00
New Revision: 38550ff6aea458f666a731de8c4d1a23567982de
URL: https://github.com/llvm/llvm-project/commit/38550ff6aea458f666a731de8c4d1a23567982de
DIFF: https://github.com/llvm/llvm-project/commit/38550ff6aea458f666a731de8c4d1a23567982de.diff
LOG: [sanitizer_common][tests] Skip MemoryMapping::ParseUnixMemoryProfile … (#212114)
…etc. on NetBSD
The `Sanitizer-x86_64-Test` test doesn't link on NetBSD/amd64 10.1:
```
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x25
SANITIZER_TEST_OBJECTS.sanitizer_procmaps_test.cpp.x86_64.o: in function `__sanitizer::MemoryMapping_ParseUnixMemoryProfile_Test::TestBody()':
sanitizer_procmaps_test.cpp:(.text._ZN11__sanitizer41MemoryMapping_ParseUnixMemoryProfile_Test8TestBodyEv+0x52): undefined reference to `__sanitizer::ParseUnixMemoryProfile(void (*)(unsigned long, unsigned long, bool, unsigned long*), unsigned long*, char*, unsigned long)'
/usr/bin/ld: SANITIZER_TEST_OBJECTS.sanitizer_procmaps_test.cpp.x86_64.o: in function `__sanitizer::MemoryMapping_ParseUnixMemoryProfileTruncated_Test::TestBody()':
sanitizer_procmaps_test.cpp:(.text._ZN11__sanitizer50MemoryMapping_ParseUnixMemoryProfileTruncated_Test8TestBodyEv+0x17a): undefined reference to `__sanitizer::ParseUnixMemoryProfile(void (*)(unsigned long, unsigned long, bool, unsigned long*), unsigned long*, char*, unsigned long)'
```
Fixed by skipping the affected subtest.
Tested on `amd64-pc-netbsd10.1` and `x86_64-pc-linux-gnu`.
(cherry picked from commit 0cc7159125eacd3abdff94eb7e634c1a8f889d1e)
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
index c18e5bd9f3194..5af58365992c5 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
@@ -90,6 +90,8 @@ Size: 12 kB
Rss: 12 kB
)";
+# if !SANITIZER_NETBSD
+// Test fails to link with NetBSD 10.1 /usr/bin/ld.
TEST(MemoryMapping, ParseUnixMemoryProfile) {
struct entry {
uptr p;
@@ -133,6 +135,7 @@ TEST(MemoryMapping, ParseUnixMemoryProfileTruncated) {
UnmapOrDie(mem, 2 * page);
}
# endif
+# endif
} // namespace __sanitizer
#endif // !defined(_WIN32)
More information about the llvm-branch-commits
mailing list