ruby-ffi test failure on aarch64

Bug #1239171 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro AArch64 cross-distro work
New
Undecided
Unassigned
ruby-ffi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Failures:

  1) Custom type definitions detects the correct type for size_t
     Failure/Error: Unable to find matching line from backtrace
       expected no Exception, got #<TypeError: unable to resolve type 'size_t'> with backtrace:
         # ./lib/ffi/types.rb:57:in `find_type'
         # ./lib/ffi/library.rb:486:in `find_type'
         # ./lib/ffi/library.rb:217:in `block in attach_function'
         # ./lib/ffi/library.rb:217:in `map'
         # ./lib/ffi/library.rb:217:in `attach_function'
         # ./spec/ffi/typedef_spec.rb:74:in `block (4 levels) in <top (required)>'
         # ./spec/ffi/typedef_spec.rb:70:in `initialize'
         # ./spec/ffi/typedef_spec.rb:70:in `new'
         # ./spec/ffi/typedef_spec.rb:70:in `block (3 levels) in <top (required)>'
         # ./spec/ffi/typedef_spec.rb:69:in `block (2 levels) in <top (required)>'
     # ./spec/ffi/typedef_spec.rb:69:in `block (2 levels) in <top (required)>'

Finished in 7.07 seconds
4794 examples, 1 failure

Failed examples:

rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:185 # Custom type definitions detects the correct type for size_t

Matthias Klose (doko)
tags: added: arm64 ftbfs
Revision history for this message
Matthias Klose (doko) wrote :
tags: added: armhf ppc64el
Revision history for this message
Matthias Klose (doko) wrote :

the build fails on ppc64el

Revision history for this message
Matthias Klose (doko) wrote :

the build fails on armhf

Revision history for this message
Matthias Klose (doko) wrote :

the armhf build is fixed after the libffi update

Revision history for this message
Matthias Klose (doko) wrote :
Download full text (15.3 KiB)

the packages seems to be missing config files for both arm64 and ppc64el. However running the script to generate these config files fails:

Script started on Wed Jan 22 13:53:52 2014
(t-doko)doko@arm64:~/tmp/ruby-ffi-1.9.3$ debian/rules gen_arch_config
(cd ext/ffi_c && ruby extconf.rb && make && cp ffi_c.so ../../lib)
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... yes
creating extconf.h
creating Makefile
make[1]: Entering directory `/home/doko/tmp/ruby-ffi-1.9.3/ext/ffi_c'
linking shared-object ffi_c.so
make[1]: Leaving directory `/home/doko/tmp/ruby-ffi-1.9.3/ext/ffi_c'
(cd gen && rake)
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36: [BUG] Segmentation fault
ruby 1.9.3p484 (2013-11-22 revision 43786) [aarch64-linux]

-- Control frame information -----------------------------------------------
c:0028 p:---- s:0099 b:0099 l:000098 d:000098 CFUNC :require
c:0027 p:0036 s:0095 b:0095 l:000094 d:000094 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36
c:0026 p:0023 s:0088 b:0088 l:000087 d:000087 TOP /home/doko/tmp/ruby-ffi-1.9.3/lib/ffi/struct.rb:35
c:0025 p:---- s:0086 b:0086 l:000085 d:000085 FINISH
c:0024 p:---- s:0084 b:0084 l:000083 d:000083 CFUNC :require
c:0023 p:0036 s:0080 b:0080 l:000079 d:000079 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36
c:0022 p:0083 s:0073 b:0073 l:000072 d:000072 TOP /home/doko/tmp/ruby-ffi-1.9.3/lib/ffi/ffi.rb:37
c:0021 p:---- s:0071 b:0071 l:000070 d:000070 FINISH
c:0020 p:---- s:0069 b:0069 l:000068 d:000068 CFUNC :require
c:0019 p:0036 s:0065 b:0065 l:000064 d:000064 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36
c:0018 p:0174 s:0058 b:0058 l:000057 d:000057 TOP /home/doko/tmp/ruby-ffi-1.9.3/lib/ffi.rb:17
c:0017 p:---- s:0056 b:0056 l:000055 d:000055 FINISH
c:0016 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC :require
c:0015 p:0036 s:0050 b:0050 l:000049 d:000049 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36
c:0014 p:0066 s:0043 b:0043 l:000042 d:000042 TOP /home/doko/tmp/ruby-ffi-1.9.3/gen/Rakefile:3
c:0013 p:---- s:0039 b:0039 l:000038 d:000038 FINISH
c:0012 p:---- s:0037 b:0037 l:000036 d:000036 CFUNC :load
c:0011 p:0013 s:0033 b:0033 l:000032 d:000032 METHOD /usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25
c:0010 p:0252 s:0029 b:0029 l:000028 d:000028 METHOD /usr/lib/ruby/vendor_ruby/rake/application.rb:589
c:0009 p:0009 s:0024 b:0024 l:000017 d:000023 BLOCK /usr/lib/ruby/vendor_ruby/rake/application.rb:89
c:0008 p:0009 s:0022 b:0022 l:000021 d:000021 METHOD /usr/lib/ruby/vendor_ruby/rake/application.rb:160
c:0007 p:0011 s:0018 b:0018 l:000017 d:000017 METHOD /usr/lib/ruby/vendor_ruby/rake/application.rb:88
c:0006 p:0019 s:0015 b:0015 l:000008 d:000014 BLOCK /usr/lib/ruby/vendor_ruby/rake/application.rb:72
c:0005 p:0009 s:0013 b:0013 l:000012 d:000012 METHOD /usr/lib/ruby/vendor_ruby/rake/application.rb:160
c:0004 p:0011 s:0009 b:0009 l:000008 d:000008 METHOD /us...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-ffi - 1.9.3debian-1ubuntu2

---------------
ruby-ffi (1.9.3debian-1ubuntu2) trusty; urgency=medium

  * Ignore test failure on AArch64. See LP: #1239171.
 -- Matthias Klose <email address hidden> Mon, 24 Feb 2014 15:57:36 +0100

Changed in ruby-ffi (Ubuntu):
status: New → Fix Released
Matthias Klose (doko)
Changed in ruby-ffi (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

This bug was fixed in the package ruby-ffi - 1.9.6debian-2

---------------
ruby-ffi (1.9.6debian-2) unstable; urgency=medium

  [ Breno Leitao ]
  * debian/patches/ppc64el.patch: add support for the ppc64el architecture
    (Closes: #759550, #765092)

 -- Antonio Terceiro <email address hidden> Mon, 13 Oct 2014 18:25:02 -0300

ruby-ffi (1.9.6debian-1) unstable; urgency=medium

  * New upstream release
  * debian/patches/disable-rake-compiler.patch: refresh
  * debian/repack.sh: remove object files included in upstream source
  * debian/ruby-tests.rb: removed step to compile the test library since the
    upstream test suite will now do that for us
  * debian/rules: properly clean artifacts of the test library build

 -- Antonio Terceiro <email address hidden> Sat, 11 Oct 2014 19:52:12 -0300

ruby-ffi (1.9.3debian-3) unstable; urgency=medium

  * debian/tests/control: also run test suite with
    gem2deb-test-runner --autopkgtest
    - needed to add './' to spec file glob in debian/ruby-tests.rb
  * Add patch by Anurag Gupta <email address hidden> from Ubuntu that
    fixes call to functions with float/double variadic arguments. This should
    fix ruby-ffi on ppc64el, _and_ be harmless for other architectures.
    (debian/patches/fix-for-variadic-float-double-values.diff)

 -- Antonio Terceiro <email address hidden> Wed, 03 Sep 2014 14:09:51 -0300

ruby-ffi (1.9.3debian-2) unstable; urgency=medium

  * Add configuration file for mips64el (Closes: #756594)
  * Add configuration file for arm64

 -- Antonio Terceiro <email address hidden> Tue, 19 Aug 2014 10:27:56 -0300

Changed in ruby-ffi (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.