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-1340: Internal consistency check failed for binary matches with generator #4376

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

Comments

@OTP-Maintainer
Copy link

Original reporter: josevalim
Affected version: OTP-23.0
Component: compiler
Migrated from: https://bugs.erlang.org/browse/ERL-1340


Here is a minimal Erlang program that reproduces the error:
{code:java}
-module(foo).
-compile(export_all).
encode_bin(<<Bin/binary>> = Bin) ->
  [Chunk || <<Chunk:5/binary>> <= Bin].
{code}
I can reproduce the error on 23.0.1 (and master as of one week ago). The issue does not exist on 22.3.

Originally reported here: [https://github.com/elixir-lang/elixir/issues/10309]

Thank you!

 
@OTP-Maintainer
Copy link
Author

john said:

Thanks for your report, I've fixed it in the following PR:

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

@OTP-Maintainer
Copy link
Author

john said:

We'll release the fix in {{23.1}}. 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
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