Skip to content

ffi_backend: convert numeric function args to pointers #567

ffi_backend: convert numeric function args to pointers

ffi_backend: convert numeric function args to pointers #567

Triggered via pull request December 4, 2024 22:09
Status Failure
Total duration 4m 44s
Artifacts

ci.yml

on: pull_request
Matrix: docker
Matrix: host
Fit to window
Zoom out
Zoom in

Annotations

38 errors and 11 warnings
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"helloU">("ASCII-8BIT"). diff: - hello + helloU ? +
ubuntu-latest 3.0
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"helloV">("ASCII-8BIT"). diff: - hello + helloV ? +
ubuntu-latest 3.2
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"hello\x7F">("ASCII-8BIT"). diff: - hello + hello� ? +
ubuntu-latest 3.1
Process completed with exit code 1.
Error: test/fiddle/test_function.rb#L105
ArgumentError: 105553140861856 (Integer) is not a pointer /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:209:in `get_pointer_value' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:155:in `convert_ruby_to_native' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:82:in `block in call' <internal:core> core/enumerable.rb:376:in `each_with_index' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:81:in `call' /Users/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /Users/runner/work/fiddle/fiddle/test/fiddle/test_function.rb:105:in `test_integer_pointer_conversion' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/fiddle/test_import.rb#L466
TypeError: failed to convert Fiddle::LIBC::Timeval to Truffle::FFI::Pointer: Fiddle::LIBC::Timeval#to_ptr returned Fiddle::CStructEntity <internal:core> core/type.rb:109:in `coerce_to_type_error' <internal:core> core/type.rb:99:in `execute_coerce_to' <internal:core> core/type.rb:85:in `coerce_to' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:207:in `get_pointer_value' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:155:in `convert_ruby_to_native' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:82:in `block in call' <internal:core> core/enumerable.rb:376:in `each_with_index' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:81:in `call' /Users/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:24:in `gettimeofday' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:466:in `block (2 levels) in test_gettimeofday' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:260:in `block (3 levels) in create' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:310:in `malloc' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:259:in `malloc' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:465:in `block in test_gettimeofday' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:260:in `block (3 levels) in create' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:310:in `malloc' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:259:in `malloc' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:464:in `test_gettimeofday' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
macos-14 truffleruby
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"hello\x7F">("ASCII-8BIT"). diff: - hello + hello� ? +
ubuntu-latest debug
Process completed with exit code 1.
Failure: tmp/test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"helloU">("ASCII-8BIT"). diff: - hello + helloU ? +
Error: test/fiddle/test_function.rb#L105
ArgumentError: cannot convert parameter to native pointer /Users/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /Users/runner/work/fiddle/fiddle/test/fiddle/test_function.rb:105:in `test_integer_pointer_conversion' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch'
ubuntu-latest 3.3
Process completed with exit code 1.
macos-14 jruby
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"hello\x7F">("ASCII-8BIT"). diff: - hello + hello� ? +
ubuntu-latest 2.5
Process completed with exit code 1.
Error: test/fiddle/test_function.rb#L105
ArgumentError: cannot convert parameter to native pointer /home/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /home/runner/work/fiddle/fiddle/test/fiddle/test_function.rb:105:in `test_integer_pointer_conversion' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch'
ubuntu-latest jruby
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"helloV">("ASCII-8BIT"). diff: - hello + helloV ? +
ubuntu-latest 2.7
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"hello\x7F">("ASCII-8BIT"). diff: - hello + hello� ? +
ubuntu-latest 2.6
Process completed with exit code 1.
Error: test/fiddle/test_function.rb#L105
ArgumentError: 94204175601824 (Integer) is not a pointer /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:209:in `get_pointer_value' /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:155:in `convert_ruby_to_native' /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:82:in `block in call' <internal:core> core/enumerable.rb:376:in `each_with_index' /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:81:in `call' /home/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /home/runner/work/fiddle/fiddle/test/fiddle/test_function.rb:105:in `test_integer_pointer_conversion' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/fiddle/test_import.rb#L466
TypeError: failed to convert Fiddle::LIBC::Timeval to Truffle::FFI::Pointer: Fiddle::LIBC::Timeval#to_ptr returned Fiddle::CStructEntity <internal:core> core/type.rb:109:in `coerce_to_type_error' <internal:core> core/type.rb:99:in `execute_coerce_to' <internal:core> core/type.rb:85:in `coerce_to' /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:207:in `get_pointer_value' /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:155:in `convert_ruby_to_native' /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:82:in `block in call' <internal:core> core/enumerable.rb:376:in `each_with_index' /home/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:81:in `call' /home/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /home/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:24:in `gettimeofday' /home/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:466:in `block (2 levels) in test_gettimeofday' /home/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:260:in `block (3 levels) in create' /home/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:310:in `malloc' /home/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:259:in `malloc' /home/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:465:in `block in test_gettimeofday' /home/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:260:in `block (3 levels) in create' /home/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:310:in `malloc' /home/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:259:in `malloc' /home/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:464:in `test_gettimeofday' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
ubuntu-latest truffleruby
Process completed with exit code 1.
Error: test/fiddle/test_function.rb#L105
ArgumentError: 105553146991184 (Integer) is not a pointer /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:209:in `get_pointer_value' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:155:in `convert_ruby_to_native' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:82:in `block in call' <internal:core> core/enumerable.rb:376:in `each_with_index' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:81:in `call' /Users/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /Users/runner/work/fiddle/fiddle/test/fiddle/test_function.rb:105:in `test_integer_pointer_conversion' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/fiddle/test_import.rb#L466
TypeError: failed to convert Fiddle::LIBC::Timeval to Truffle::FFI::Pointer: Fiddle::LIBC::Timeval#to_ptr returned Fiddle::CStructEntity <internal:core> core/type.rb:109:in `coerce_to_type_error' <internal:core> core/type.rb:99:in `execute_coerce_to' <internal:core> core/type.rb:85:in `coerce_to' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:207:in `get_pointer_value' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:155:in `convert_ruby_to_native' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:82:in `block in call' <internal:core> core/enumerable.rb:376:in `each_with_index' /Users/runner/.rubies/truffleruby-24.1.1/lib/truffle/truffle/ffi_backend/function.rb:81:in `call' /Users/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:24:in `gettimeofday' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:466:in `block (2 levels) in test_gettimeofday' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:260:in `block (3 levels) in create' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:310:in `malloc' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:259:in `malloc' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:465:in `block in test_gettimeofday' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:260:in `block (3 levels) in create' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:310:in `malloc' /Users/runner/work/fiddle/fiddle/lib/fiddle/struct.rb:259:in `malloc' /Users/runner/work/fiddle/fiddle/test/fiddle/test_import.rb:464:in `test_gettimeofday' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
macos-13 truffleruby
Process completed with exit code 1.
fedora-latest
Process completed with exit code 1.
Error: test/fiddle/test_function.rb#L105
ArgumentError: cannot convert parameter to native pointer /Users/runner/work/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' /Users/runner/work/fiddle/fiddle/test/fiddle/test_function.rb:105:in `test_integer_pointer_conversion' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch'
macos-13 jruby
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"helloe::\xD7\xC7\xE6\xEC">("ASCII-8BIT").
windows-latest mingw
Process completed with exit code 1.
Failure: test/fiddle/test_function.rb#L106
<"hello">("UTF-8") expected but was <"helloe::_\xA2mz\x02N\x01\x80">("ASCII-8BIT").
windows-latest mswin
Process completed with exit code 1.
Error: test/fiddle/test_function.rb#L105
ArgumentError: cannot convert parameter to native pointer D:/a/fiddle/fiddle/lib/fiddle/ffi_backend.rb:175:in `call' D:/a/fiddle/fiddle/test/fiddle/test_function.rb:105:in `test_integer_pointer_conversion' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyArray.java:1981:in `each' org/jruby/RubyKernel.java:1426:in `catch' org/jruby/RubyKernel.java:1421:in `catch'
windows-latest jruby
Process completed with exit code 1.
ubuntu-latest 3.0
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest 3.2
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest 3.1
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest debug
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest 3.3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest 2.5
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest jruby
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest 2.7
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest 2.6
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest truffleruby
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
fedora-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636