[erlang-questions] enif_free and free in a NIF

Max Lapshin max.lapshin@REDACTED
Fri Jul 4 06:08:42 CEST 2014


On Fri, Jul 4, 2014 at 4:16 AM, Matthew Evans <mattevans123@REDACTED>
wrote:

>
> I actually just found the cause of the crash. We had gen_server "A" that
> loaded the NIF, but we also had another gen_server directly calling a nif
> function owned by gen_server "A" instead of doing a gen_server:call to "A".
>

It is not a problem, because process doesn't own a function.

Looks like your data structure doesn't survive thread migration.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140704/6bb221cf/attachment.htm>


More information about the erlang-questions mailing list