Benoit Daloze
Benoit Daloze
Thanks for the report. A minimal repro based on that is: ```ruby require 'delegate' Desc = Class.new(SimpleDelegator) obj = Desc.new([:first, :second]) [obj].each { |first, second| p first, second } puts...
Fixed in https://github.com/oracle/truffleruby/commit/c00d9f452e03384285fece0f6ee74974f0afbe80
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...
This seems a segfault of ~clang-14~ dsymutil: (copying from the end of the gist) ``` ... warning: Unsupported attribute form DW_FORM_loclistx in cloneAttribute. Dropping. note: while processing /var/folders/x7/dn5x_jdx13q969_jl0bjm_zxmxpmqn/T/cc-259a82.o warning: Unsupported...
Correction, it's a segfault of dsymutil provided by XCode. That's also explains why it's only on macOS. Maybe updating XCode/CLI tools helps.
FWIW similar-looking issue which was fixed in 22.2: https://github.com/oracle/truffleruby/issues/2710#issuecomment-1225731390 But this is different since it's on a build more recent than 22.2.
> Maybe updating XCode/CLI tools helps. @lewurm tried and it still repros with latest (Xcode14rc1), so need to try that.
FWIW there is another issue when installing the gem on Linux, that's an upstream issue: https://github.com/sparklemotion/sqlite3-ruby/issues/354
This is fixed now, in https://github.com/oracle/graal/commit/0e6baa5566db37c7741474ea1a65f7c737e34d8b.
@flavorjones Right, that's expected because that version doesn't have https://github.com/oracle/graal/commit/0e6baa5566db37c7741474ea1a65f7c737e34d8b. The [latest build](https://github.com/ruby/truffleruby-dev-builder/releases/tag/v20221011.080609) has it, truffleruby commit: https://github.com/oracle/truffleruby/commit/72aa843b5f34f2607c9a0392b11185f52e4ad2bb, which includes the [graal update](https://github.com/oracle/truffleruby/commit/a02c9a3c00c20946eee986afffbd6da46d704653). Could you rerun the CI job? (https://github.com/sparklemotion/sqlite3-ruby/pull/347)