ffi_backend: convert numeric function args to pointers #568
Annotations
17 errors and 11 warnings
|
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-14 jruby
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.
|
|
Error:
test/fiddle/test_function.rb#L105
ArgumentError: 105553170469488 (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.
|
|
Error:
test/fiddle/test_function.rb#L105
ArgumentError: 94664028182960 (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: 105553181854416 (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.
|
|
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.
|
|
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.2
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 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 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 truffleruby
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
|
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
|
|
fedora-latest
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 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 2.5
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|