[erlang-bugs] A funny bug
Thu Aug 1 20:06:12 CEST 2013
I was inspecting the new, and long awaited for, fix of 'receive' in erl_eval.
I could not help myself to wonder what would happened if:
5> self() ! x, prim_eval:'receive'(fun(X) -> receive Y -> Y end end, 1000).
Bus error: 10
I know you should not use prim_eval in this manner, but I tend to ignore recommendations.
But this construct should probably not crash the VM.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-bugs