NIF calls to enif_fprintf causing segfaults on Windows

Brett Hemes <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CH2PR03MB53364DCA52457E0CBB1B7A4CBEE89@CH2PR03MB5336.namprd03.prod.outlook.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.