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-490: Internal consistency check failed (no_bsm_context) during compilation #3289

Closed
OTP-Maintainer opened this issue Sep 28, 2017 · 1 comment
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: josevalim
Affected version: OTP-20.1
Fixed in versions: OTP-20.1.1, OTP-20.2
Component: compiler
Migrated from: https://bugs.erlang.org/browse/ERL-490


This module:

{code:erlang}
-module(gettext).
-export([lgettext/3]).

lgettext(<<"de">>, <<"default">>, <<"Remove">>) ->
    {ok, <<"a">>};

lgettext(<<"de">>, <<"default">>, <<"Remove from list">>) ->
    {ok, <<"a">>};

lgettext(<<"de">>, <<"default">>, <<"Remove from the list">>) ->
    {ok, <<"a">>};

lgettext(<<"de">>, <<"default">>, <<"Results">>) ->
    {ok, <<"Ergebnisse">>};

lgettext(<<"de">>, <<"default">>, <<"Reservatio">>) ->
    {ok, <<"a">>};

lgettext(<<"de">>, <<"navigation">>, <<"Results">>) ->
    {ok, <<"Ergebnisse">>};

lgettext(<<"de">>, <<"navigation">>, <<"Resources">>) ->
    {ok, <<"Ressourcen">>}.
{code}

fails with:

{code}
gettext: function lgettext/3+60:
  Internal consistency check failed - please report this bug.
  Instruction: {test,bs_match_string,{f,14},[{x,5},24,{string,"lts"}]}
  Error:       {no_bsm_context,{x,5}}:
{code}

On Erlang 20.1. iI works fine on Erlang 20.0.
@OTP-Maintainer
Copy link
Author

bjorn said:

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

@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-20.1.1 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