Skip to content

Instantly share code, notes, and snippets.

@lpgauth
Created November 1, 2017 20:21
Show Gist options
  • Save lpgauth/4be755552a4cb0933d64a006fbd87cae to your computer and use it in GitHub Desktop.
Save lpgauth/4be755552a4cb0933d64a006fbd87cae to your computer and use it in GitHub Desktop.
Erlang/OTP 20 [erts-9.1.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Eshell V9.1.3 (abort with ^G)
1> Tid = fun() ->
1> Tid = ets:new(test, []),
1> Forms = [{attribute, 0, module, load_binary_segfault}, {attribute, 0, export, [{test, 0}]}, {function, 0, test, 0, [{clause, 0, [], [], [{integer, 0, Tid}]}]}],
1> {ok, Module, Bin} = compile:forms(Forms, [debug_info]),
1> code:load_binary(Module, "load_binary_segfault.erl", Bin)
1> end.
#Fun<erl_eval.20.99386804>
2> Tid().
{module,load_binary_segfault}
3> Tid().
{module,load_binary_segfault}
4> Tid().
{module,load_binary_segfault}
5> Segmentation fault: 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment