NIF calls to enif_fprintf causing segfaults on Windows

Brett Hemes brhemes@REDACTED
Mon Jul 26 23:27:13 CEST 2021


I have recently moved from a Linux environment to Windows and my NIFs that call `enif_fprintf` are causing segfaults.

A simple call such as `enif_fprintf(stdout, "Hello, world!\n");` will cause issue.

My build setup is:
* Windows 10
* rebar3
* MSYS2 + MinGW 64-bit + gcc

I have tried in both `erl` and `werl` to the same effect as well as `stdout` and `stderr`...

Does anyone have any insight into what might be the issue?

Thanks,
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210726/76ee528c/attachment.htm>


More information about the erlang-questions mailing list