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

Shell crashes without Termcap support #7296

Closed
weiss opened this issue May 24, 2023 · 1 comment · Fixed by #7351
Closed

Shell crashes without Termcap support #7296

weiss opened this issue May 24, 2023 · 1 comment · Fixed by #7351
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Milestone

Comments

@weiss
Copy link
Contributor

weiss commented May 24, 2023

Describe the bug
The shell crashes when Erlang/OTP is built without Termcap support:

=ERROR REPORT==== 24-May-2023::18:06:35.217012 ===
** State machine user_drv terminating
** When server state  = {undefined,undefined}
** Reason for termination = error:{badmatch,{error,enotsup}}
** Callback modules = [user_drv]
** Callback mode = state_functions
** Stacktrace =
**  [{prim_tty,init_term,1,[{file,"prim_tty.erl"},{line,237}]},
     {user_drv,init,1,[{file,"user_drv.erl"},{line,167}]},
     {gen_statem,init_it,6,[{file,"gen_statem.erl"},{line,966}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]

=CRASH REPORT==== 24-May-2023::18:06:35.217077 ===
  crasher:
    initial call: user_drv:init/1
    pid: <0.66.0>
    registered_name: []
    exception error: no match of right hand side value {error,enotsup}
      in function  prim_tty:init_term/1 (prim_tty.erl, line 237)
      in call from user_drv:init/1 (user_drv.erl, line 167)
      in call from gen_statem:init_it/6 (gen_statem.erl, line 966)
    ancestors: [<0.65.0>,kernel_sup,<0.47.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 376
    stack_size: 28
    reductions: 382
  neighbours:

To Reproduce

$ ./configure --prefix=/tmp/erlang --without-termcap
$ make
$ make install
$ /tmp/erlang/bin/erl

Expected behavior
The shell behaves like it does when started via TERM=dumb erl.

Affected versions
Erlang/OTP 26.0.

@weiss weiss added the bug Issue is reported as a bug label May 24, 2023
@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label May 26, 2023
garazdawi added a commit to garazdawi/otp that referenced this issue Jun 2, 2023
@garazdawi garazdawi linked a pull request Jun 5, 2023 that will close this issue
@garazdawi
Copy link
Contributor

Fixed in maint to be released in 26.1. Thanks for the report!

garazdawi added a commit to garazdawi/otp that referenced this issue Jun 16, 2023
garazdawi added a commit to garazdawi/otp that referenced this issue Jun 20, 2023
garazdawi added a commit to garazdawi/otp that referenced this issue Jun 20, 2023
@garazdawi garazdawi added this to the OTP-26.0.2 milestone Jun 20, 2023
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 a pull request may close this issue.

3 participants