]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin: add macOS 10.14 support
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 9 Dec 2025 13:06:06 +0000 (14:06 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 9 Dec 2025 13:08:22 +0000 (14:08 +0100)
== 714 tests, 77 stderr failures, 5 stdout failures, 0 stderrB failures, 0 stdoutB failures, 33 post failures ==

x86 tests are all failing due to unsupported instructions
I need to go through the Massif tests to filter out all of the new macOS leaks.

Otherwise fairly similar to trhe results on macOS 10.13

Makefile.all.am
NEWS
configure.ac
coregrind/m_syswrap/syswrap-x86-darwin.c
darwin-drd.supp
darwin-helgrind.supp
darwin.supp

index d4f6b3fb798581ac80d107f52a950d1d55a86edc..df78960167744859e9667b78e1789d84613ce799 100644 (file)
@@ -257,7 +257,8 @@ AM_CCASFLAGS_ARM64_FREEBSD = @FLAG_M64@ -g
 
 AM_FLAG_M3264_X86_DARWIN = -arch i386
 AM_CFLAGS_X86_DARWIN     = $(WERROR) -arch i386 $(AM_CFLAGS_BASE) \
-                               -mmacosx-version-min=10.6 \
+        -I@SDK_INC_DIR@ \
+        @CLANG_OS_MIN_VERS_ARG@ \
                                -fno-pic -fno-PIC
 
 AM_CFLAGS_PSO_X86_DARWIN = $(AM_CFLAGS_X86_DARWIN) $(AM_CFLAGS_PSO_BASE)
@@ -265,7 +266,8 @@ AM_CCASFLAGS_X86_DARWIN  = -arch i386 -g
 
 AM_FLAG_M3264_AMD64_DARWIN = -arch x86_64
 AM_CFLAGS_AMD64_DARWIN     = $(WERROR) -arch x86_64 $(AM_CFLAGS_BASE) \
-                           -mmacosx-version-min=10.6
+        -I@SDK_INC_DIR@ \
+        @CLANG_OS_MIN_VERS_ARG@
 AM_CFLAGS_PSO_AMD64_DARWIN = $(AM_CFLAGS_AMD64_DARWIN) $(AM_CFLAGS_PSO_BASE)
 AM_CCASFLAGS_AMD64_DARWIN  = -arch x86_64 -g
 
diff --git a/NEWS b/NEWS
index 723b716b5e6ccda8289019589b245444dd097d5b..51ba3e940a4214951071ba616e6b413a3b2bfb1b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,7 +6,7 @@ PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
 MIPS64/Linux, RISCV64/Linux, ARM/Android, ARM64/Android, MIPS32/Android,
 X86/Android, X86/Solaris, AMD64/Solaris, X86/macOS, AMD64/macOS. 
 X86/FreeBSD, AMD64/FreeBSD and ARM64/FreeBSD. There is preliminary support
-for nanoMIPS/Linux. macOS is supported up to version 10.13 High Sierra.
+for nanoMIPS/Linux. macOS is supported up to version 10.14 Mojave.
 
 * ==================== CORE CHANGES ===================
 
@@ -14,6 +14,8 @@ for nanoMIPS/Linux. macOS is supported up to version 10.13 High Sierra.
 
 s390x: Machine models older than z196 are no longer supported.
 
+Initial support for macOS 10.14 Mojave has been added.
+
 * ==================== TOOL CHANGES ===================
 
 
index e251d795dbe327165bc6cf96cf682e0fb6b93c80..40330fdc312111486831a0adc113677457676958 100644 (file)
@@ -542,6 +542,10 @@ case "${host_os}" in
                  AC_MSG_RESULT([Darwin 17.x (${kernel}) / macOS 10.13 High Sierra])
                  DARWIN_VERS=$DARWIN_10_13
                  ;;
+            18.*)
+                 AC_MSG_RESULT([Darwin 18.x (${kernel}) / macOS 10.14 Mojave])
+                 DARWIN_VERS=$DARWIN_10_14
+                 ;;
             *)
                  AC_MSG_RESULT([unsupported (${darwin_platform} ${kernel})])
                  AC_MSG_ERROR([Valgrind works on Darwin 10.x-25.x (Mac OS X 10.8-10.11, macOS 10.12-10.13)])
index 76416b06d9a0acc12e30ca8a4e28d9e7cf090693..a0bc1a1e7a13bb732c0fe7d47a6f9a5052273f35 100644 (file)
@@ -430,7 +430,8 @@ void wqthread_hijack(Addr self, Addr kport, Addr stackaddr, Addr workitem,
            || DARWIN_VERS == DARWIN_10_10 \
            || DARWIN_VERS == DARWIN_10_11 \
            || DARWIN_VERS == DARWIN_10_12 \
-           || DARWIN_VERS == DARWIN_10_13
+           || DARWIN_VERS == DARWIN_10_13 \
+           || DARWIN_VERS == DARWIN_10_14
       UWord magic_delta = 0xB0;
 #     else
 #       error "magic_delta: to be computed on new OS version"
index e8cccdaab16a69d6f4d2895b7b40e98b601b602b..76bdd86368af843a1af4488341a6a0279cd0a461 100644 (file)
    fun:gomp_barrier_wait
    fun:child
 }
+
+# DRD suppressions for Darwin 18 / macOS 10.14 Mohave
+
+{
+   macOS1014:pthread_mutex_destroy
+   drd:MutexErr
+   fun:pthread_mutex_destroy
+}
+
+{
+   macOS1014:_xpc_dictionary_look_up_table
+   drd:ConflictingAccess
+   ...
+   fun:_xpc_dictionary_look_up_table
+}
+
+{
+   macOS1014:objc_msgSendSuper2
+   drd:ConflictingAccess
+   fun:objc_msgSendSuper2
+}
+
+{
+   mac1014:nw_path_copy_interface_with_generation
+   drd:ConflictingAccess
+   ...
+   fun:nw_path_copy_interface_with_generation
+}
+
+{
+   mac1014:__setenv_locked
+   drd:ConflictingAccess
+   fun:__setenv_locked
+}
+
+{
+   mac1014:dlopen_internal
+   drd:ConflictingAccess
+   ...
+   fun:dlopen_internal
+}
+
+{
+   mac1014:getpwuid_r
+   drd:ConflictingAccess
+   fun:si_search
+   fun:getpwuid_r
+}
+
+{
+   mac1014:_pthread_tsd_cleanup
+   drd:ConflictingAccess
+   ...
+   fun:_pthread_tsd_cleanup
+}
+
+{
+   macOS1014:dyld::findMappedRange(unsigned long)
+   drd:ConflictingAccess
+   fun:_ZN4dyld15findMappedRangeEm
+}
+
+{
+   macOS1014:dyld::addImage(ImageLoader*)
+   drd:ConflictingAccess
+   ...
+   fun:_ZN4dyldL8addImageEP11ImageLoader
+}
index 7588c1d06ffd5dccf6d99311397b9b1a484c6a5b..db923303ac689eaf2a8a868c9104cac11d6c3e37 100644 (file)
    fun:_ZNSt3__119__thread_local_dataEv
 }
 
+# Helgrind Suppressions for Darwin 18.x / macOS 10.14 Mojave
+
+{
+   macOS1014:_xpc_dictionary_look_up_tab
+   Helgrind:Race
+   fun:_platform_strcmp
+   fun:_xpc_dictionary_look_up_table
+}
+
+{
+   macOS1014:_pthread_tsd_cleanup
+   Helgrind:Race
+   ...
+   fun:_pthread_tsd_cleanup
+}
+
+{
+   macOS1014:nw_path_copy_interface_with_generation
+   Helgrind:Race
+   ...
+   fun:nw_path_copy_interface_with_generation
+}
+
+{
+   macOS1014:__setenv_locked
+   Helgrind:Race
+   fun:__setenv_locked
+}
+
+{
+   macOS1014:_pthread_once_handler
+   Helgrind:Race
+   ...
+   fun:__pthread_once_handler
+}
+
+{
+   macOS1014:getpwuid_r
+   Helgrind:Race
+   fun:si_search
+   fun:getpwuid_r
+}
+
index af2c3ee6989a254f20f6a5a10cffe597bbeb85ee..1fd1948115e6d96eb54bfdad23d3bec6a2456299 100644 (file)
    Memcheck:Cond
    fun:ccaes_vng_ctr_crypt
 }
+
+# Suppressions for Darwin 18.x / macOS 10.14 Mojave
+
+{
+   macOS1014:_dyld_start
+   Memcheck:Cond
+   ...
+   fun:_dyld_start
+}
+
+{
+   macOS1014:libSystem_initializer
+   Memcheck:Addr16
+   ...
+   fun:libSystem_initializer
+}
+
+{
+   macOS1014:_NXHashRehashToCapacity
+   Memcheck:Leak
+   match-leak-kinds: reachable
+   fun:malloc_zone_calloc
+   fun:_NXHashRehashToCapacity
+}