[erlang-bugs] A funny bug

Tony Rogvall <>
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.

/Tony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20130801/0100891a/attachment.html>


More information about the erlang-bugs mailing list