Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@frazze-jobb
Copy link
Contributor

@frazze-jobb frazze-jobb commented Oct 15, 2025

The shell would crash when the io:getopts() call got timeout when fetching state from the io process.
Before io:scan_erl_exprs would have returned {error,terminated} but as of introduction of explicit handling of when to save shell history, the failure is happening earlier.
In this commit I add a check that makes io:getopts() able to return error in the case the driver process is not responding.
A check is also added on the shell side.

@frazze-jobb frazze-jobb requested a review from u3s October 15, 2025 13:06
@frazze-jobb frazze-jobb self-assigned this Oct 15, 2025
@frazze-jobb frazze-jobb added team:VM Assigned to OTP team VM fix labels Oct 15, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2025

CT Test Results

    3 files    158 suites   2h 11m 59s ⏱️
3 760 tests 3 369 ✅ 391 💤 0 ❌
4 424 runs  3 969 ✅ 455 💤 0 ❌

Results for commit db261e8.

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

@frazze-jobb frazze-jobb force-pushed the frazze/kernel/fix_io_getopts_crash/OTP-19812 branch from 1924db1 to a82dd40 Compare October 16, 2025 13:44
Copy link
Contributor

@u3s u3s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some kernel tests failed. is this ok? should we add testing label?

@frazze-jobb frazze-jobb added the testing currently being tested, tag is used by OTP internal CI label Oct 20, 2025
@frazze-jobb frazze-jobb force-pushed the frazze/kernel/fix_io_getopts_crash/OTP-19812 branch from a82dd40 to db261e8 Compare October 24, 2025 13:26
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