Skip to content

handle_exit called with missing starter causes a crash #67

@tomalexhughes

Description

@tomalexhughes

Creating an issue for this problem discussed in the Discord.

It's possible for the handle_exit function in the supervisor module to be called with state that is missing the starter.exec function.

This causes the following error due to this let assert

Runtime terminating during boot ({#{function=><<"handle_exit">>,line=>303,message=><<"Assertion pattern match failed">>,module=><<"gleam/otp/supervisor">>,value=>none,gleam_error=>let_assert},[{'gleam@otp@supervisor',handle_exit,2,[{file,"/[....]/build/dev/erlang/gleam_otp/_gleam_artefacts/gleam@[email protected]"},{line,235}]},{'gleam@otp@actor',loop,1,[{file,"/[....]/build/dev/erlang/gleam_otp/_gleam_artefacts/gleam@[email protected]"},{line,150}]}]})

Unfortunately I do not have a way to reproduce at the moment and I'm unsure as to the exact details that cause the none value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions