Skip to content

Conversation

frazze-jobb
Copy link
Contributor

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() return {error,terminated} in the case the driver process is down.
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
Copy link
Contributor

github-actions bot commented Oct 15, 2025

CT Test Results

    3 files    158 suites   2h 20m 57s ⏱️
3 758 tests 3 367 ✅ 390 💤 1 ❌
4 422 runs  3 967 ✅ 454 💤 1 ❌

For more details on these failures, see this check.

Results for commit a82dd40.

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

1 participant