Open deepj opened 4 years ago
Thanks for the report.
I think this is the same source issue as in https://github.com/oracle/truffleruby/issues/1827#issuecomment-670532854 that is, Truffle NFI does not support passing struct-by-value yet (internal issue: GR-13304). And so our FFI implementation which uses Truffle NFI cannot yet either.
The usage of struct-by-value is in: https://github.com/jtoy/cld/blob/bd4e4a19691c642c52fba8589dada50e3f1365e7/lib/cld.rb#L20
I'm also running into this - I'm developing a new gem based on FFI and wanted to ensure compatibility with Truffle Ruby, but all of my CI tests started failing when using Struct.by_value
.
To reproduce:
Error: