Skip to content

crashdump caused by unexpected halt(undefined, undefined) #8634

Closed
@zzydxm

Description

Describe the bug
Sometimes during node shutdown we see such Slogan:

⁠ Slogan: System process <0.0.0> terminated: {badarg,[{erlang,halt,[undefined,undefined],[{error_info,#{cause=>badopt,module=>erl_erts_errors}}]},{erlang,halt,0,[]}]}

It seems that when init.erl calls halt() as the last step of shutdown, somehow it results in a halt(undefined, undefined)

We think it is caused by this line https://github.com/erlang/otp/blob/OTP-26.2.3/erts/emulator/beam/bif.c?fbclid=IwZXh0bgNhZW0CMTEAAR3G8wFBshuPgBzFHroABMARgLPYBKZZpU42C_f6CAwxYnTxsRIAT_a__l4_aem_sExFv1tZJSqb_KTxH1r0LQ#L4307

but not sure in which situation the line will (should) be called

To Reproduce
We haven't a way to reproduce it yet, just wonder what can be the cause so we can dive deeper, thanks!

Expected behavior
The node should be shut down gracefully

Affected versions
26.2.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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