-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i#5383: Fix macOS arm64 test build/run #7171
Open
ndrewh
wants to merge
6
commits into
DynamoRIO:master
Choose a base branch
from
ndrewh:i5383-macos-aarch64-tests1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9e81c16
i5383: Fix macOS arm64 test build/run
ndrewh 9d52c65
clang-format
ndrewh 7d1af39
fix copy/paste error
ndrewh daaeb2e
Fix uc_mcontext field initialization on macOS
ndrewh 28dc822
fix
ndrewh 5b3fcaa
cleanup + comments
ndrewh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1242,6 +1242,13 @@ if (CMAKE_CROSSCOMPILING AND DEFINED CMAKE_FIND_ROOT_PATH) | |
set(dr_test_ops -xarch_root ${CMAKE_FIND_ROOT_PATH} ${dr_test_ops}) | ||
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 () | ||
|
||
function(runtest_cmd outcmd outops key native standalone_dr dr_ops_aux separate_script) | ||
# assumes tools have been built: enforced at top level | ||
set(dr_ops ${dr_test_ops} ${dr_ops_aux} ${TEST_OPTIONS}) | ||
|
@@ -6040,7 +6047,9 @@ if (NOT ARM) # FIXME i#1551: fix bugs on ARM | |
endif () | ||
endif (NOT ARM) | ||
|
||
if (X86 OR 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change i#xxx with i#5383 (this falls within that issue). |
||
if (X86 OR AARCH64 AND NOT (APPLE AND AARCH64)) | ||
tobuild(security-common.selfmod2 security-common/selfmod2.c) | ||
tochcon(security-common.selfmod2 textrel_shlib_t) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems weird.
frame
is zeroed-out anyway, isn't this just changingsc
to be a "different" NULL?Also, shouldn't
sc
being NULL break more than MACOS?