Hashlink seg fault MacOS (Apple Silicon)

I’ve tried both brew and built from source and both have identical results

Running with no input is fine

 % hl
HL/JIT 1.14.0 (c)2015-2023 Haxe Foundation
  Usage : hl [--debug <port>] [--debug-wait] <file>

Running with bytecode seg faults

% haxe --hl hello.hl --main Main
% hl hello.hl 
zsh: segmentation fault  hl hello.hl

The code is the simple Hello World example on the hashlink website.
Edit - posting the code for posterity:

/**
    Multi-line comments for documentation.
**/
class Main {
    static public function main():Void {
        // Single line comment
        trace("Hello World");
    }
}
1 Like

More a comment than an answer, I do not know apple and not an expert in low level, but in my cases I was able to guess and identify hashlink segfaults by running the program under gdb
like gdb hl
then at the 2nd prompt you type run hello.hl
wait for the segfault, you will get some kind of stacktrace.