Skip to content

[erlc] crash with "binary_alloc: Cannot allocate 103079215152 bytes of memory" #6643

Closed
@RobinMorisset

Description

@RobinMorisset

The following code is invalid Erlang code (since the documentation says "For a segment of type float the size must be either 64, 32, or 16"), but I would have expected either a runtime exception or the program being rejected.

f(#{(<<0:8589934596/float-unit:96>>) := _}) ->
    ok.

Instead it causes erlc to crash with

binary_alloc: Cannot allocate 103079215152 bytes of memory (of type "binary").

This happens on master.

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