Skip to content

Only run memset when stack checks are enabled #3553

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

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

dkalinichenko-js
Copy link
Collaborator

@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/oxcaml that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants