Skip to content

[erlc] hang forever on tiny input #6474

Closed
@RobinMorisset

Description

@RobinMorisset

Describe the bug
erlc hangs (or at least takes more than 1mn, I did not wait longer) on the following code:

-module(timeout).
-compile([export_all]).

f1(X) ->
    [0 || _ <- <<>>, _ <- X].

f2() ->
    f1(<<0 || {}>>).

Expected behavior
I expect erlc to either compile or reject any input, but not hang forever on 5 small lines of input.

Affected versions
I tried the following:

The bug reproduces on both builds.

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