Skip to content

Commit

Permalink
cleanup + comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrewh committed Dec 27, 2024
1 parent 28dc822 commit 5b3fcaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions core/unix/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -7711,6 +7711,9 @@ os_forge_exception(app_pc target_pc, dr_exception_type_t type)

kernel_ucontext_t *uc = get_ucontext_from_rt_frame(frame);
#if defined(MACOS)
/* Since SIGCXT_FROM_UCXT just accesses the uc->uc_mcontext ptr field on
* macOS, sc will be NULL below if we do not initialize uc_mcontext first
*/
uc->IF_X64_ELSE(uc_mcontext64, uc_mcontext) = (void *)&frame->mc;
#endif
sigcontext_t *sc = SIGCXT_FROM_UCXT(uc);
Expand Down
9 changes: 7 additions & 2 deletions suite/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,9 @@ if (CMAKE_CROSSCOMPILING AND DEFINED CMAKE_FIND_ROOT_PATH)
endif ()

if (APPLE AND AARCH64)
# On macOS + arm64 tests will randomly fail depending on
# whether mmap returns a region satisfying 32-bit reachability constraints.
# Reducing the vm_size appears to eliminate this issue.
set(dr_test_ops -vm_size 500M ${dr_test_ops})
endif ()

Expand Down Expand Up @@ -6044,7 +6047,9 @@ if (NOT ARM) # FIXME i#1551: fix bugs on ARM
endif ()
endif (NOT ARM)

if (X86 OR AARCH64 AND NOT (APPLE AND AARCH64)) # FIXME i#1551: port asm to ARM
# FIXME i#1551: port asm to ARM
# FIXME i#xxx: selfmod tests fail to build on macOS + ARM64
if (X86 OR AARCH64 AND NOT (APPLE AND AARCH64))
tobuild(security-common.selfmod2 security-common/selfmod2.c)
tochcon(security-common.selfmod2 textrel_shlib_t)

Expand All @@ -6063,7 +6068,7 @@ if (X86) # FIXME i#1551, i#1569: port asm to ARM and AArch64
endif ()
endif (X86)

if (X64 AND NOT AARCH64 AND NOT RISCV64 AND NOT (APPLE AND AARCH64)) # FIXME i#1569: get working on AArch64
if (X64 AND NOT AARCH64 AND NOT RISCV64) # FIXME i#1569: get working on AArch64
# Reachability tests

# Floating DR lib. We'd have to build a 2nd dynamorio.dll on Windows so
Expand Down

0 comments on commit 5b3fcaa

Please sign in to comment.