https://bugs.kde.org/show_bug.cgi?id=354883

--- Comment #9 from phirestal...@gmail.com ---
ok I can confirm the patch works here too.

For others using homebrew that find this page here are the steps to add the
patch.

brew edit valgrind
find the "stable do" section and before the "end" put "patch :DATA"

then paste this at the end of the file (NOTE: if there is already an __END__
DON"T put in another one!!)

__END__
diff --git a/coregrind/m_syswrap/syswrap-amd64-darwin.c
b/coregrind/m_syswrap/syswrap-amd64-darwin.c
index 8f13e71..7fb8b2c 100644
--- a/coregrind/m_syswrap/syswrap-amd64-darwin.c
+++ b/coregrind/m_syswrap/syswrap-amd64-darwin.c
@@ -479,10 +479,8 @@ void wqthread_hijack(Addr self, Addr kport, Addr
stackaddr, Addr workitem,
        UWord magic_delta = 0;
 #      elif DARWIN_VERS == DARWIN_10_7 || DARWIN_VERS == DARWIN_10_8
        UWord magic_delta = 0x60;
-#      elif DARWIN_VERS == DARWIN_10_9 || DARWIN_VERS == DARWIN_10_10
+#      elif DARWIN_VERS == DARWIN_10_9 || DARWIN_VERS == DARWIN_10_10 ||
DARWIN_VERS == DARWIN_10_11
        UWord magic_delta = 0xE0;
-#      elif DARWIN_VERS == DARWIN_10_11
-       UWord magic_delta = 0x100;
 #      else
 #        error "magic_delta: to be computed on new OS version"
          // magic_delta = tst->os_state.pthread - self

save and close then to force brew to compile instead of install binaries from
"bottle"
brew install --build-from-source valgrind

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to