Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerError on vagrant snap take #11

Open
vaughnkoch opened this issue Sep 25, 2012 · 2 comments
Open

NullPointerError on vagrant snap take #11

vaughnkoch opened this issue Sep 25, 2012 · 2 comments

Comments

@vaughnkoch
Copy link

$ vagrant snap take
[default]
/Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:128:in `[]': invalid memory read at address=0x00000000000000 (FFI::NullPointerError)
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:128:in `initialize_vtbl'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:122:in `initialize'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:27:in `new'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:27:in `ffi_interface'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:80:in `call_vtbl_function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:61:in `call_function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:145:in `call_function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:62:in `block in function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/vm.rb:201:in `find'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:22:in `parse_tree'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:222:in `block in take'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:154:in `call'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:154:in `block in safe_with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/command/base.rb:116:in `block in with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/command/base.rb:111:in `each'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/command/base.rb:111:in `with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:148:in `safe_with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:221:in `take'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:131:in `execute'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/cli.rb:42:in `execute'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/environment.rb:167:in `cli'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/bin/vagrant:43:in `<top (required)>'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/vagrant:19:in `load'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/vagrant:19:in `<main>'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'


Gem versions:
vagrant (1.0.5)
vagrant-snap (0.10)
virtualbox (0.9.2)
@Achimh3011
Copy link

Same for me.

gem list v

*** LOCAL GEMS ***

vagrant (1.0.5, 1.0.2.dev, 0.9.99.2, 0.8.10)
vagrant-snap (0.10)
virtualbox (0.9.2)

@dergachev
Copy link
Contributor

Yep, vagrant-snap seems incompatible with newest versions of Vagrant. (I get the same error with vagrant 1.0.6).

For now, there's a hacky but working alternative here: hashicorp/vagrant#143 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants