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

Try fix race in erlang:halt #8640

Open
wants to merge 2 commits into
base: maint
Choose a base branch
from

Conversation

sverker
Copy link
Contributor

@sverker sverker commented Jul 3, 2024

Fix #8634

If two or more processes calls halt it seems the yielded dummy call halt(undefined,undefined) can actually happen.

Suspend the calling process to make sure it does not get scheduled again.

@sverker sverker added team:VM Assigned to OTP team VM fix labels Jul 3, 2024
@sverker sverker self-assigned this Jul 3, 2024
Copy link
Contributor

github-actions bot commented Jul 3, 2024

CT Test Results

    3 files    143 suites   48m 36s ⏱️
1 599 tests 1 550 ✅ 49 💤 0 ❌
2 343 runs  2 269 ✅ 74 💤 0 ❌

Results for commit 12c312f.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@sverker
Copy link
Contributor Author

sverker commented Jul 11, 2024

@jhogberg Could it be this simple or am I missing something?

@sverker sverker changed the base branch from maint-26 to maint February 12, 2025 18:42
@sverker sverker added the testing currently being tested, tag is used by OTP internal CI label Feb 12, 2025
If two or more processes calls halt it seems the yielded
dummy call halt(undefined,undefined) can actually happen.

Suspend the calling process to make sure it does get scheduled again.
into sverker/27/erts/halt-race-fix/OTP-19490
@sverker sverker force-pushed the sverker/erts/halt-race-fix branch from a3201e7 to 12c312f Compare February 13, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants