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

Fix potential deadlock during system shutdown #8422

Conversation

garazdawi
Copy link
Contributor

If a process in an application calls any blocking application API call with infinite timeout and is trapping exits, there is a risk that it will deadlock the shutdown of the node. So we update application_controller to respond to calls while terminating so that the caller will crash and the system can be shutdown as it should.

@garazdawi garazdawi added team:VM Assigned to OTP team VM fix labels Apr 25, 2024
@garazdawi garazdawi self-assigned this Apr 25, 2024
Copy link
Contributor

github-actions bot commented Apr 25, 2024

CT Test Results

    3 files     72 suites   1h 5m 49s ⏱️
1 618 tests 1 369 ✅ 249 💤 0 ❌
1 826 runs  1 529 ✅ 297 💤 0 ❌

Results for commit 172a15c.

♻️ 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

@garazdawi garazdawi force-pushed the lukas/kernel/fix-application-shutdown-deadlock/OTP-19078 branch from 88d77ed to 6d77192 Compare April 25, 2024 10:52
There used to be a bug where the AC would block and set_env
would crash. This caused the shell to be unuseable as it crashed
all the time. So we add some safe guards to make sure that does
not happen again.
@garazdawi garazdawi force-pushed the lukas/kernel/fix-application-shutdown-deadlock/OTP-19078 branch from 81d757b to 172a15c Compare May 2, 2024 07:26
@garazdawi garazdawi merged commit 4806adf into erlang:maint-26 May 2, 2024
17 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant