Skip to content

Only run memset when stack checks are enabled #3553

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

dkalinichenko-js
Copy link
Contributor

@dkalinichenko-js dkalinichenko-js commented Feb 6, 2025

When stack checks are disabled, memset tries to access the guarded page of the stack, causing a segfault.

This issue was introduced in #3384 and only shows ups when running effects with debug runtime.

@stedolan stedolan merged commit aba6871 into main Feb 10, 2025
24 checks passed
@stedolan stedolan deleted the dkalinichenko/fix-stack-segfault-with-debug branch February 10, 2025 16:23
Dreian pushed a commit to Dreian/flambda-backend that referenced this pull request Feb 19, 2025
Co-authored-by: Diana Kalinichenko <dkalinichenko@janestreet.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants