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: uninitialized_reg #7504

Closed
RobinMorisset opened this issue Jul 19, 2023 · 0 comments · Fixed by #7518
Closed

[erlc] internal consistency check: uninitialized_reg #7504

RobinMorisset opened this issue Jul 19, 2023 · 0 comments · Fixed by #7518
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@RobinMorisset
Copy link
Contributor

Describe the bug
Running erlc on the following:

f([]) ->
    ok;
f(_V0) ->
    ((_V1 = erlang:is_list(_V0)) orelse binary_to_integer(list_to_bitstring([]))) / 0,
    _V1.

fails with

test493867:1: function f/1+16:
  Internal consistency check failed - please report this bug.
  Instruction: {call_ext,1,{extfunc,erlang,list_to_bitstring,1}}
  Error:       {uninitialized_reg,{y,0}}:

Affected versions

Additional context
I could not reproduce this with an old version of OTP 25, so I suspect the bug was introduced in the last year.

@RobinMorisset RobinMorisset added the bug Issue is reported as a bug label Jul 19, 2023
@jhogberg jhogberg added team:VM Assigned to OTP team VM stalled waiting for input by the Erlang/OTP team labels Jul 19, 2023
@bjorng bjorng self-assigned this Jul 31, 2023
bjorng added a commit to bjorng/otp that referenced this issue Jul 31, 2023
@bjorng bjorng linked a pull request Jul 31, 2023 that will close this issue
@bjorng bjorng removed the stalled waiting for input by the Erlang/OTP team label Jul 31, 2023
bjorng added a commit to bjorng/otp that referenced this issue Jul 31, 2023
@bjorng bjorng linked a pull request Jul 31, 2023 that will close this issue
bjorng added a commit that referenced this issue Aug 1, 2023
@bjorng bjorng closed this as completed in f9a3fa9 Aug 1, 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