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-1163: Internal consistency check failed: keys_not_unique #4044

Closed
OTP-Maintainer opened this issue Feb 9, 2020 · 2 comments
Closed

ERL-1163: Internal consistency check failed: keys_not_unique #4044

OTP-Maintainer opened this issue Feb 9, 2020 · 2 comments
Assignees
Labels
bug Issue is reported as a bug priority:medium team:VM Assigned to OTP team VM
Milestone

Comments

@OTP-Maintainer
Copy link

Original reporter: wojtekmach
Affected version: Not Specified
Fixed in version: OTP-22.2.7
Component: Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-1163


This code:

{code:erlang}
-module(foo).
-compile(export_all).

dup(Map) ->
  case Map of
      #{'__struct__' := _} ->
          case Map of
              #{'__struct__' := _} ->
                  ok;
              O1 ->
                  O1
          end;
      O2 ->
          O2
  end.
{code}

causes this internal consistency check failure:

{code:erlang}
foo: function dup/1+5:
  Internal consistency check failed - please report this bug.
  Instruction: {test,has_map_fields,
                     {f,3},
                     {x,0},
                     {list,[{atom,'__struct__'},{atom,'__struct__'}]}}
  Error:       keys_not_unique:

foo.erl:2: Warning: export_all flag enabled - all functions will be exported
{code}

I'm on:

{code}
~% erl
Erlang/OTP 22 [erts-10.5.6] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Eshell V10.5.6  (abort with ^G)
{code}

Original issue: [https://github.com/elixir-lang/elixir/issues/9801]
@OTP-Maintainer
Copy link
Author

john said:

Thanks for your report, we'll have a patch out shortly. :)

@OTP-Maintainer
Copy link
Author

john said:

Fixed in {{OTP 22.2.7}}, thanks again for your report!

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

No branches or pull requests

2 participants