Skip to content

Unmap MAP_SHARED stacks on fork() #5088

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
May 21, 2025
Merged

Unmap MAP_SHARED stacks on fork() #5088

merged 1 commit into from
May 21, 2025

Conversation

ripatel-fd
Copy link
Contributor

@ripatel-fd ripatel-fd commented May 12, 2025

Firedancer threads don't support fork(). If a user calls fork() regardless, wild memory corruption ensues, crashing both parent and child. This PR keeps the parent alive and crashes the child reliably.

  • Test regular fddev
  • Test fddev --no-sandbox
  • Test fddev --no-sandbox --no-clone
  • Test fd_tile APIs

two-heart
two-heart previously approved these changes May 12, 2025
@ripatel-fd ripatel-fd added this pull request to the merge queue May 21, 2025
@ripatel-fd
Copy link
Contributor Author

Fyi @mmcgee-jump merging this

Merged via the queue into main with commit 995ad2a May 21, 2025
9 checks passed
@ripatel-fd ripatel-fd deleted the ripatel/map-dontfork branch May 21, 2025 17:22
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.

3 participants