Skip to content
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

Add arch to cache directory #45

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Add arch to cache directory #45

merged 2 commits into from
Aug 14, 2023

Conversation

yungsters
Copy link
Collaborator

@yungsters yungsters commented Jul 19, 2023

We're seeing issues on Apple Silicon device where the following would segmentation fault:

$ node script-using-v8-compile-cache.js
$ arch -x86_64 node script-using-v8-compile-cache.js

This change fixes the problem.

Test Plan:

Verify tests pass.

$ yarn test

Verify the architecture test fails on Apple Silicon without the arch fix:

$ ./test/arch/run.sh 
./test/arch/run.sh: line 15: 85082 Segmentation fault: 11  /usr/bin/arch -x86_64 "$NODE_BIN" "$THIS_DIR/yarn.js" config get init.author.name > /dev/null

Verify the architecture test succeeds with the arch fix:

$ ./test/arch/run.sh 
Success!

@yungsters yungsters force-pushed the arch branch 2 times, most recently from 972c039 to f57ba31 Compare July 19, 2023 18:01
@yungsters
Copy link
Collaborator Author

@zertosh mentioned he'll take a look tonight.

@yungsters yungsters force-pushed the arch branch 2 times, most recently from 6f341e0 to 5fcf5ff Compare July 19, 2023 19:22
@yungsters
Copy link
Collaborator Author

@zertosh, let me know if there's any changes you'd like me to make to this pull request. Thanks!

@yungsters yungsters merged commit 790fa07 into zertosh:master Aug 14, 2023
@yungsters yungsters deleted the arch branch August 14, 2023 21:30
yungsters added a commit to yungsters/react-native that referenced this pull request Aug 14, 2023
Summary:
Upgrades many of our projects to `v8-compile-cache@^2.4.0`, which includes [zertosh/v8-compile-cache#45](zertosh/v8-compile-cache#45). This fixes a very opaque segmentation fault when `v8-compile-cache` is used on Apple Silicon with mixed architecture modes.

This also upgrades our projects to `eslint@^2.3.1`, which no longer has the dependency on an outdated version of `v8-compile-cache`.

Changelog:
[Internal]

Reviewed By: NickGerleman

Differential Revision: D48336030

fbshipit-source-id: 0c54a95a485bbdb418681fa494427d0b3b8a84b7
yungsters added a commit to yungsters/react-native that referenced this pull request Aug 14, 2023
Summary:
Pull Request resolved: facebook#39012

Upgrades many of our projects to `v8-compile-cache@^2.4.0`, which includes [zertosh/v8-compile-cache#45](zertosh/v8-compile-cache#45). This fixes a very opaque segmentation fault when `v8-compile-cache` is used on Apple Silicon with mixed architecture modes.

This also upgrades our projects to `eslint@^2.3.1`, which no longer has the dependency on an outdated version of `v8-compile-cache`.

Changelog:
[Internal]

Reviewed By: NickGerleman

Differential Revision: D48336030

fbshipit-source-id: 5cf68aea0abed1a4081d0182f5fb9ef5b16511c5
yungsters added a commit to yungsters/react-native that referenced this pull request Aug 15, 2023
Summary:
Pull Request resolved: facebook#39012

Upgrades many of our projects to `v8-compile-cache@^2.4.0`, which includes [zertosh/v8-compile-cache#45](zertosh/v8-compile-cache#45). This fixes a very opaque segmentation fault when `v8-compile-cache` is used on Apple Silicon with mixed architecture modes.

This also upgrades our projects to `eslint@^2.3.1`, which no longer has the dependency on an outdated version of `v8-compile-cache`.

Changelog:
[Internal]

Reviewed By: zertosh, NickGerleman

Differential Revision: D48336030

fbshipit-source-id: 59e772d777e0775a9bd7c31218025cc2f34a1979
facebook-github-bot pushed a commit to facebook/metro that referenced this pull request Aug 15, 2023
Summary:
X-link: facebook/react-native#39012

Upgrades many of our projects to `v8-compile-cache@^2.4.0`, which includes [zertosh/v8-compile-cache#45](zertosh/v8-compile-cache#45). This fixes a very opaque segmentation fault when `v8-compile-cache` is used on Apple Silicon with mixed architecture modes.

This also upgrades our projects to `eslint@^2.3.1`, which no longer has the dependency on an outdated version of `v8-compile-cache`.

Changelog:
[Internal]

Reviewed By: zertosh, NickGerleman

Differential Revision: D48336030

fbshipit-source-id: afa73d1f00bff826a8b76fa09949b9d35a97905b
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Aug 15, 2023
Summary:
Pull Request resolved: #39012

Upgrades many of our projects to `v8-compile-cache@^2.4.0`, which includes [zertosh/v8-compile-cache#45](zertosh/v8-compile-cache#45). This fixes a very opaque segmentation fault when `v8-compile-cache` is used on Apple Silicon with mixed architecture modes.

This also upgrades our projects to `eslint@^2.3.1`, which no longer has the dependency on an outdated version of `v8-compile-cache`.

Changelog:
[Internal]

Reviewed By: zertosh, NickGerleman

Differential Revision: D48336030

fbshipit-source-id: afa73d1f00bff826a8b76fa09949b9d35a97905b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant