Hi, I have found a couple more issues on commit c50fe06, though some may be due to misuse on my part.
1. PolyML.SaveState.loadModuleBasic and getModuleInfo sometimes raise SysErr ENOENT despite the actual file existing and being a valid module. It seems to happen when the given path is absolute, though not always. Bisecting points to 6b4d491.
2. Compiling code that depends on values from an exported module sometimes fails and raises `InternalError: BICEval address not code raised`.
3. Exporting may segfault: `exporter.cpp:1036: unsigned int Exporter::findArea(void*): Assertion `0' failed.` Gdb stacktrace:
Exporter::findArea exporter.cpp:1036 ELFExport::createRelocation elfexport.cpp:340 Exporter::createRelocation exporter.cpp:1023 Exporter::relocateValue exporter.cpp:1017 Exporter::relocateObject exporter.cpp:1072 ELFExport::exportStore elfexport.cpp:750 Exporter::RunExport exporter.cpp:821 ExportRequest::Perform exporter.cpp:728 Processes::BeginRootThread processes.cpp:1416 polymain mpoly.cpp:440 main polystub.c:42
I unfortunately did not manage to find a simple reproducer for #2 and #3, but those happened while compiling the various programs I use as tests: smlfmt for the internal error, apltail and aplc for the segfault.