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 error in sub pass ssa_opt_private_append #7142

Closed
RobinMorisset opened this issue Apr 21, 2023 · 0 comments · Fixed by #7143
Closed

[erlc] internal error in sub pass ssa_opt_private_append #7142

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

Comments

@RobinMorisset
Copy link
Contributor

Describe the bug
On the following code:

f() ->
    <<<<(((_V1 = _V2) = is_boolean(group_leader())) orelse <<>>)/binary>>/binary>>.

erlc crashes with the following error message:

Sub pass ssa_opt_private_append
/home/rmorisset/minimized/patch_phi.erl: internal error in pass beam_ssa_opt:
exception error: no function clause matching beam_ssa_private_append:patch_literal_term(true,self,15) 
  in function  beam_ssa_private_append:'-patch_phi/3-anonymous-3-'/3 (beam_ssa_private_append.erl, line 545)
  in call from beam_ssa_private_append:patch_phi/3 (beam_ssa_private_append.erl, line 541)
  in call from beam_ssa_private_append:patch_appends_is/5 (beam_ssa_private_append.erl, line 477)
  in call from beam_ssa_private_append:patch_appends_f/5 (beam_ssa_private_append.erl, line 450)
  in call from beam_ssa_private_append:'-patch_appends/3-anonymous-2-'/3 (beam_ssa_private_append.erl, line 419)
  in call from maps:fold_1/4 (maps.erl, line 416)
  in call from beam_ssa_private_append:private_append/3 (beam_ssa_private_append.erl, line 72)

Affected versions
master

@RobinMorisset RobinMorisset added the bug Issue is reported as a bug label Apr 21, 2023
@jhogberg jhogberg self-assigned this Apr 21, 2023
@jhogberg jhogberg added the team:VM Assigned to OTP team VM label Apr 21, 2023
@jhogberg jhogberg linked a pull request Apr 24, 2023 that will close this issue
jhogberg added a commit that referenced this issue Apr 26, 2023
…nd-issue/GH-7142

beam_ssa_private_append: Fix crash on oddly structured code
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