Skip to content

Default group leader crashes on unknown requests #9237

Closed
@jonatanklosko

Description

@jonatanklosko

Describe the bug

whereis(user) ! {io_request, self(), make_ref(), foo}.

fails with

=ERROR REPORT==== 23-Dec-2024::20:03:27.110621 ===
Error in process <0.69.0> with exit value:
{badarg,[{erlang,element,[1,foo],[{error_info,#{module => erl_erts_errors}}]},
         {group,type,1,[{file,"group.erl"},{line,1281}]},
         {group,log_io_request,3,[{file,"group.erl"},{line,1271}]},
         {group,io_request,6,[{file,"group.erl"},{line,227}]},
         {group,server_loop,3,[{file,"group.erl"},{line,153}]}]}

Expected behavior

According to the I/O protocol, the process should send IO reply with {error, request} (ref).

Affected versions

This regression first appears in 27.2.

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