Skip to content

havoc crashes on OTP26 with (UndefinedFunctionError) function :group.interfaces/1 is undefined or private #19

@jvf

Description

@jvf

Starting havoc on OTP26 crashes with (UndefinedFunctionError) function :group.interfaces/1 is undefined or private:

$ iex -S mix
Erlang/OTP 26 [erts-14.1.1] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Interactive Elixir (1.15.6) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :havoc.on()
:ok

10:56:05.006 [error] GenServer :havoc terminating
** (UndefinedFunctionError) function :group.interfaces/1 is undefined or private
    (kernel 9.1) :group.interfaces(#PID<0.323.0>)
    (havoc 0.2.3) /Users/jvf/repos/sonnen/vpp-future/deps/havoc/src/havoc.erl:331: :havoc.is_shell/1
    (havoc 0.2.3) /Users/jvf/repos/sonnen/vpp-future/deps/havoc/src/havoc.erl:258: :havoc.is_killable/2
    (havoc 0.2.3) /Users/jvf/repos/sonnen/vpp-future/deps/havoc/src/havoc.erl:208: :havoc.kill_one/2
    (havoc 0.2.3) /Users/jvf/repos/sonnen/vpp-future/deps/havoc/src/havoc.erl:142: :havoc.handle_info/2
    (stdlib 5.1.1) gen_server.erl:1077: :gen_server.try_handle_info/3
    (stdlib 5.1.1) gen_server.erl:1165: :gen_server.handle_msg/6
    (stdlib 5.1.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
Last message: :kill_something

10:56:05.016 [notice] Application havoc exited: shutdown

Comparing OTP-25.3.2.7/lib/kernel/src/group.erl and OTP-26.1.2/lib/kernel/src/group.erl we see that the function is indeed no longer there in OTP26.

I found this blog post, giving some context on the removal of group:interfaces/1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions