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

kernel: Don't load group history when in noshell mode #8746

Conversation

garazdawi
Copy link
Contributor

Loading of group_history synchornizes with kernel_sup in order to use disk_log. Doing that when in the user process can lead to a deadlock if logger (or anything really) tries to write to standard out at the same time. Normally the deadlock will solve itself when the kernel application is started, but if it should fail to start for some reason user is terminated before it can print anything and logger will print the log messages to standard error instead.

Loading of group_history synchornizes with kernel_sup in order
to use disk_log. Doing that when in the user process can lead to
a deadlock if logger (or anything really) tries to write to
standard out at the same time. Normally the deadlock will solve
itself when the kernel application is started, but if it should
fail to start for some reason user is terminated before it can
print anything and logger will print the log messages to standard
error instead.
@garazdawi garazdawi added team:VM Assigned to OTP team VM bug Issue is reported as a bug labels Aug 26, 2024
@garazdawi garazdawi added this to the OTP-26.2.5.3 milestone Aug 26, 2024
@garazdawi garazdawi self-assigned this Aug 26, 2024
Copy link
Contributor

github-actions bot commented Aug 26, 2024

CT Test Results

    2 files     65 suites   1h 1m 19s ⏱️
1 513 tests 1 270 ✅ 243 💤 0 ❌
1 705 runs  1 415 ✅ 290 💤 0 ❌

Results for commit ec91a1f.

♻️ 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 merged commit 2edc283 into erlang:maint-26 Sep 5, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant