I was experimenting with erlang:trace and ran into some unexpected behavior. I got a "bus error" and a "failed to lock mutex".<br><br>I have never used trace and I really don't (yet) know how it works, so maybe what I did does not make any sense. But still, it seems that Erlang crashing with a "bus error" or a "failed to lock mutex" is not the appropriate response no matter what I do.<br>
<br>~> erl<br>Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] [async-threads:0] [kernel-poll:false]<br><br>Eshell V5.6.1  (abort with ^G)<br>1> <br>1> <br>1> erlang:trace(all,true,[all]).<br>Bus error<br>
<br>~> erl<br>Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] [async-threads:0] [kernel-poll:false]<br><br>Eshell V5.6.1  (abort with ^G)<br>1> erlang:trace(new,true,[all]).<br>0<br>2> Failed to lock mutex: Invalid argument (22)<br>
Abort trap<br><br>