Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jvf opened this issue Dec 6, 2023 · 0 comments

Comments

@jvf
Copy link

jvf commented Dec 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant