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

ERL-660: Internal error in beam_jump #3562

Closed
OTP-Maintainer opened this issue Jun 28, 2018 · 1 comment
Closed

ERL-660: Internal error in beam_jump #3562

OTP-Maintainer opened this issue Jun 28, 2018 · 1 comment
Assignees
Labels
bug Issue is reported as a bug priority:low team:VM Assigned to OTP team VM
Milestone

Comments

@OTP-Maintainer
Copy link

Original reporter: ulfnorell
Affected version: OTP-21.0
Fixed in version: OTP-21.0.2
Component: compiler
Migrated from: https://bugs.erlang.org/browse/ERL-660


Tested with OTP-21.0.1
{code:erlang}
-module(bug).

bad(X, Y) ->
  _ = 0 / (X ! 1),
  _ = case Y of
        X -> ok;
        _ -> error
      end,
  X ! 1.
{code}

Error:
{code}
bug.erl: internal error in beam_jump;
crash reason: {case_clause,{'EXIT',{{case_clause,{fr,1}},
                      [{beam_utils,check_liveness,3,
                                   [{file,"beam_utils.erl"},{line,469}]},
                       {beam_utils,check_liveness_at,3,
                                   [{file,"beam_utils.erl"},{line,652}]},
                       {beam_utils,is_killed,3,
                                   [{file,"beam_utils.erl"},{line,119}]},
                       {beam_jump,opt_useless_block_loads,3,
                                  [{file,"beam_jump.erl"},{line,416}]},
                       {beam_jump,opt_useless_block_loads,3,
                                  [{file,"beam_jump.erl"},{line,424}]},
                       {beam_jump,opt_useless_block_loads,3,
                                  [{file,"beam_jump.erl"},{line,421}]},
                       {beam_jump,opt_useless_block_loads,3,
                                  [{file,"beam_jump.erl"},{line,424}]},
                       {beam_jump,opt_useless_loads,3,
                                  [{file,"beam_jump.erl"},{line,394}]}]}}}

  in function  compile:'-select_passes/2-anonymous-2-'/3 (compile.erl, line 585)
  in call from compile:'-internal_comp/5-anonymous-1-'/3 (compile.erl, line 349)
  in call from compile:fold_comp/4 (compile.erl, line 376)
  in call from compile:internal_comp/5 (compile.erl, line 360)
  in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 177)
  in call from compile:'-do_compile/2-anonymous-1-'/1 (compile.erl, line 190)
{code}
@OTP-Maintainer
Copy link
Author

bjorn said:

https://github.com/erlang/otp/pull/1856

@OTP-Maintainer OTP-Maintainer added bug Issue is reported as a bug team:VM Assigned to OTP team VM priority:low labels Feb 10, 2021
@OTP-Maintainer OTP-Maintainer added this to the OTP-21.0.2 milestone Feb 10, 2021
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 priority:low team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

2 participants