[erlang-bugs] A funny bug

Anthony Ramine <>
Fri Aug 2 15:55:05 CEST 2013


The fact that it is an interpreted call is irrelevant, the same snippet of code compiled triggers a segfault. If you want to fix it, I don't see any other way than making the loop_rec instruction itself fail if there is already a receive loop in progress.

The function is not documented not because of laziness (I always document things that should be documented) but because it just shouldn't be used outside of erl_eval. Anyone interested in the details of prim_eval should just look at the commit message I wrote when I introduced it.

-- 
Anthony Ramine

Le 2 août 2013 à 15:39, Tony Rogvall a écrit :

> Well, a recursive interpreted call could be fixed without slowing down "any receive code"



More information about the erlang-bugs mailing list