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

fix: crash when V8 tries to JIT compilation in the PKU-supported environment #227

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

nyannyacha
Copy link
Contributor

@nyannyacha nyannyacha commented Dec 6, 2023

What kind of change does this PR introduce?

Bug fix

Description

This PR fixes the segfault when occurred the V8 tries to JIT compilation in running environments that supports PKU(Memory Protection Key; PKeys Userspace) feature.

It should only affect the environment that the PKU feature has enabled. You can check whether your environment supports the PKU feature using the below command:

lscpu | grep pku

# output
Flags:                              ... xsaveopt arat pku ospke avx512_vnni...

Fixes #199 and might be
Resolves #200, resolves #204, resolves #207, resolves #226

@laktek
Copy link
Contributor

laktek commented Dec 6, 2023

@nyannyacha Thanks for the PR! will test it and merge in the next couple of days.

Copy link
Contributor

@laktek laktek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the contribution.

@laktek laktek merged commit ad98744 into supabase:main Dec 6, 2023
Copy link

github-actions bot commented Dec 6, 2023

🎉 This PR is included in version 1.29.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment