<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 5, 2014 at 4:04 PM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The following code crashes the VM:<br>
<br>
<br>
-module(crashing).<br>
-compile(export_all).<br>
<br>
crash(Bin) -><br>
crash(Bin, <<>>).<br>
<br>
crash(<<>>, Acc) -><br>
Acc;<br>
crash(<< C, Rest/bits >>, Acc) -><br>
%% There is no crash if we print the variable Rest before using it.<br>
%% Uncomment to see the difference.<br>
% io:format("~p~n", [Rest]),<br>
Rest(<< Acc/binary, C >>).<br>
<br></blockquote><div><br></div><div>Thanks for the bug report. Will fix (in the compiler).</div><div><br></div><div>/Bjorn</div><div><br></div></div>-- <br><div dir="ltr">Björn Gustavsson, Erlang/OTP, Ericsson AB<br></div>
</div></div>