You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macbeth:~ uwe$ rvm use jruby
Using /Users/uwe/.rvm/gems/jruby-1.7.12
macbeth:~ uwe$ irb
jruby-1.7.12 :001 > require 'net/https'
=> true
jruby-1.7.12 :002 > exit
macbeth:~ uwe$ rvm use jruby-head
Using /Users/uwe/.rvm/gems/jruby-head
macbeth:~ uwe$ irb
jruby-head :001 > require 'net/https'
=> true
jruby-head :002 > exit
macbeth:~ uwe$ export JRUBY_OPTS="-J-Djruby.native.enabled=false"
macbeth:~ uwe$ rvm use jruby
Using /Users/uwe/.rvm/gems/jruby-1.7.12
macbeth:~ uwe$ irb
io/console not supported; tty will not be manipulated
jruby-1.7.12 :001 > require 'net/https'
LoadError: Native API access is disabled
from org/jruby/RubyKernel.java:1065:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/ffi/ffi.rb:69:in `(root)'
from org/jruby/RubyKernel.java:1065:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/ffi.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1065:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/ffi.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1065:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/krypt/provider/ffi.rb:1:in `(root)'
... 26 levels...
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/jopenssl19/openssl.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1101:in `eval'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/jopenssl19/openssl.rb:23:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/jopenssl/load.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/jopenssl/load.rb:20:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/openssl.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/openssl.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/1.9/net/https.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1501:in `loop'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/1.9/net/https.rb:22:in `(root)'
from org/jruby/RubyKernel.java:1264:in `catch'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1264:in `catch'
from /Users/uwe/.rvm/rubies/jruby-1.7.12/bin/irb:13:in `(root)'jruby-1.7.12 :002 > exit
macbeth:~ uwe$ rvm use jruby-1.7.11
Using /Users/uwe/.rvm/gems/jruby-1.7.11
macbeth:~ uwe$ irb
io/console not supported; tty will not be manipulated
jruby-1.7.11 :001 > require 'net/https'
=> true
jruby-1.7.11 :002 > exit
macbeth:~ uwe$ rvm use jruby-head
Using /Users/uwe/.rvm/gems/jruby-head
macbeth:~ uwe$ irb
io/console not supported; tty will not be manipulated
jruby-head :001 > require 'net/https'
LoadError: Native API access is disabled
from org/jruby/RubyKernel.java:847:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/ffi/ffi.rb:69:in `(root)'
from org/jruby/RubyKernel.java:847:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/ffi.rb:1:in `(root)'
from org/jruby/RubyKernel.java:847:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/ffi.rb:1:in `(root)'
from org/jruby/RubyKernel.java:847:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/krypt/provider/ffi.rb:1:in `(root)'
... 26 levels...
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/jopenssl21/openssl.rb:1:in `(root)'
from org/jruby/RubyKernel.java:881:in `eval'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/jopenssl21/openssl.rb:23:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/jopenssl/load.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/jopenssl/load.rb:15:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/openssl.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/openssl.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/2.1/net/https.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1200:in `loop'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/2.1/net/https.rb:22:in `(root)'
from org/jruby/RubyKernel.java:1011:in `catch'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
from /Users/uwe/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1011:in `catch'
from /Users/uwe/.rvm/rubies/jruby-head/bin/irb:13:in `(root)'jruby-head :002 > exit
macbeth:~ uwe$
The text was updated successfully, but these errors were encountered:
from a brief look at the code there are some memory functions (malloc,
free, memcpy) used from FFI::Library::LIBC in
lib/ruby/shared/krypt/provider/ffi/ffi_helper.rb
This works fine on JRuby 1.7.11:
The text was updated successfully, but these errors were encountered: