Subject:
[ruby-ffi] ffi seems broken on 1.8.7-p352 (osx)
From:
Tim Becker
Date:
7/13/11 9:20 AM
To:
ruby-ffi

Hi,

not sure if I'm doing something entirely wrong, but it seems that
something broke with the release of the new 1.8.7-p352 release, ruby
segfaults immediately on `require`. I'm currently not able to look
into this more deeply, but I though it may be of interest.

Segfault happens immediately on p352 put not on an older version
(p302). I'm using ffi version 1.0.9 on both. OSX 10.6.8. libffi 3.0.9
installed via ports. Let me know if I can provide any more
information.

Cheers,
   -tim


-------------8<----------------------------------------
(16:09) ~$ rvm 1.8.7
(16:09) ~$ rvm list

rvm rubies

   rbx-1.0.1-20100603 [ x86_64 ]
   ruby-1.8.7-head [ x86_64 ]
   ruby-1.8.7-p302 [ x86_64 ]
=> ruby-1.8.7-p352 [ x86_64 ]
   ruby-1.9.2-p0 [ x86_64 ]

(16:09) ~$ ruby -rubygems
puts require 'ffi'^D
/Users/tbe/.rvm/gems/ruby-1.8.7-p352/gems/ffi-1.0.9/lib/ffi_c.bundle:
[BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin10.8.0]


Abort trap
(16:10) ~$
(16:10) ~$ rvm ruby-1.8.7-p302
(16:10) ~$ ruby -rubygems
puts require 'ffi'^D
true

-------------8<----------------------------------------