Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[erlc] internal consistency check failed: ambiguous_catch_try_state #7477

@RobinMorisset

Description

@RobinMorisset

Describe the bug
Running erlc on the following:

f() ->
    try
        erlang:monotonic_time()
    after
        catch (<<>> = size(catch (([_ | _V4] = _V4) = ok)))
    end.

results in the following error:

test150083:1: function f/0+30:
  Internal consistency check failed - please report this bug.
  Instruction: {gc_bif,size,{f,0},1,[{x,0}],{x,0}}
  Error:       ambiguous_catch_try_state:

Affected versions

I've not checked other versions, but this suggests that this is not a new bug

Additional context
I suspect that this may be related to #7342, but it has never caused that error message, so I am reporting it in case it is in fact different.

Metadata

Metadata

Assignees

Labels

bugIssue is reported as a bugteam:VMAssigned to OTP team VM

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions