[erlang-questions] enif_send() and overrun heap

Guilherme Andrade g@REDACTED
Tue Aug 7 10:38:09 CEST 2018


Hi,

On 20 June 2018 at 18:39, Sverker Eriksson <sverker.eriksson@REDACTED>
wrote:

> I suggest you (and everybody during NIF development) to run on a debug-VM.
> It's slower but it catches a lot of faults earlier and produces a nicer
> core
> dump. It will catch enif_* API violations such as building
> tuples/lists/maps
> with terms from different environments.
>

I finally found the time to look into this matter again.

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].
Other conditions are the same as before.

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.


[1]:
https://github.com/erlang/otp/blob/OTP-20.3.8.4/erts/emulator/beam/erl_nif.c#L445

-- 
Guilherme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180807/bcd33468/attachment.htm>


More information about the erlang-questions mailing list