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

[erlc] internal consistency check failed - instruction bs_init_writable #6571

Closed
RobinMorisset opened this issue Dec 17, 2022 · 0 comments · Fixed by #6583
Closed

[erlc] internal consistency check failed - instruction bs_init_writable #6571

RobinMorisset opened this issue Dec 17, 2022 · 0 comments · Fixed by #6583
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@RobinMorisset
Copy link
Contributor

RobinMorisset commented Dec 17, 2022

On master (with or without cherry-picking #6559), the following testcase:

f(<<_>>, _) ->
    ok;
f(X, _) ->
    case 0 + get_keys() of
        X ->
            ok;
        _ ->
            (node() orelse garbage_collect()) =:=
                case <<0 || false>> of
                    #{} ->
                        ok
                end
    end.

causes an erlc error with the following message:

bs_init_writable:1: function f2/2+44:
  Internal consistency check failed - please report this bug.
  Instruction: bs_init_writable
  Error:       {allocated,undecided}:
@RobinMorisset RobinMorisset added the bug Issue is reported as a bug label Dec 17, 2022
@bjorng bjorng added the team:VM Assigned to OTP team VM label Dec 19, 2022
@bjorng bjorng assigned jhogberg and unassigned bjorng Dec 20, 2022
jhogberg added a commit that referenced this issue Dec 22, 2022
…t_writable-undecided/GH-6571

beam_jump: Don't share bs_init_writable if stack size is unknown
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