<div dir="ltr">Hi,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 20 June 2018 at 18:39, Sverker Eriksson <span dir="ltr"><<a href="mailto:sverker.eriksson@ericsson.com" target="_blank">sverker.eriksson@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I suggest you (and everybody during NIF development) to run on a debug-VM.<br>
It's slower but it catches a lot of faults earlier and produces a nicer core<br>
dump. It will catch enif_* API violations such as building tuples/lists/maps<br>
with terms from different environments.<br></blockquote><div><br></div><div>I finally found the time to look into this matter again. </div><div><br></div><div>Using a debug build of the VM (20.3), the crash consistently happens due to a failed assertion in line 445 of erl_nif.c[1].</div><div>Other conditions are the same as before.<br></div><div><br></div><div>Is this enlightening in anyway? I've got a 2.8 GiB core dump I can look into if you tell me that's the right direction to go.<br></div><div><br></div><div><br></div><div>[1]: <a href="https://github.com/erlang/otp/blob/OTP-20.3.8.4/erts/emulator/beam/erl_nif.c#L445">https://github.com/erlang/otp/blob/OTP-20.3.8.4/erts/emulator/beam/erl_nif.c#L445</a><br></div></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Guilherme<br></div></div></div></div></div></div>
</div></div></div>