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 on bs_get_integer2: "unassigned" #6614

Closed
RobinMorisset opened this issue Jan 2, 2023 · 1 comment
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@RobinMorisset
Copy link
Contributor

On master,

f([X | Y]) ->
    try
        ([ok || _ <- Y] > catch <<ok>>) xor false
    catch
        <<Z:X>> ->
            Z
    end.

crashes erlc with the error message:

bs_get_integer2:1: function f/1+29:
  Internal consistency check failed - please report this bug.
  Instruction: {test,bs_get_integer2,
                   {f,13},
                   4,
                   [{tr,{x,3},{t_bs_context,1}},
                    {y,1},
                    1,
                    {field_flags,
                        [{anno,[13,{file,"minimized/bs_get_integer2.erl"}]},
                         unsigned,big]}],
                   {x,4}}
  Error:       {unassigned,{y,1}}:

This might be a duplicate of #6603, since both show Error: {unassigned, {y, . I am filing it separately because it triggers on a different instruction (bs_get_integer2 vs move), with rather different testcases.

@jhogberg
Copy link
Contributor

jhogberg commented Jan 2, 2023

Thanks for your report, closing this as duplicate of #6603 :)

@jhogberg jhogberg closed this as completed Jan 2, 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

No branches or pull requests

4 participants