Possible memory corruption: fcntl in modules/access/file.c
enabling assertions + safe_heap when building vlc.js, will cause many segfaults.
I created two tickets on the emscripten repository to get help and track the issues.
https://github.com/emscripten-core/emscripten/issues/14020
related to #21 (closed)