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

Terminate entire wasix process when a worker thread fails or calls exit #5153

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

Arshia001
Copy link
Member

Fixes #5130.

On native platforms, when a thread causes a segfault, panics, calls exit(), or otherwise terminates abnormally, the entire process will exit. This was not the case on WASIX before, but should now be the case with this PR.

lib/wasix/src/state/env.rs Outdated Show resolved Hide resolved
@Arshia001 Arshia001 marked this pull request as draft October 18, 2024 05:52
@Arshia001 Arshia001 force-pushed the fix/wasix-thread-panic branch from 5a09815 to f5a5e65 Compare October 21, 2024 10:49
@Arshia001 Arshia001 marked this pull request as ready for review October 21, 2024 11:54
@Arshia001 Arshia001 enabled auto-merge October 23, 2024 06:40
@syrusakbary syrusakbary disabled auto-merge October 24, 2024 07:54
@syrusakbary syrusakbary merged commit 59b067b into main Oct 24, 2024
67 of 68 checks passed
@syrusakbary syrusakbary deleted the fix/wasix-thread-panic branch October 24, 2024 07:54
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.

Panic in spawned thread causes dead lock (?)
3 participants