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

Ruby 1.8.7 Gem install Marshal.load error #4337

Open
jadrevenge opened this issue Mar 22, 2018 · 1 comment
Open

Ruby 1.8.7 Gem install Marshal.load error #4337

jadrevenge opened this issue Mar 22, 2018 · 1 comment

Comments

@jadrevenge
Copy link

I'm really hoping that it's something stupid that I'm doing.

Ubuntu 17.10, fresh rvm install.

Description

"gem install bundler" fails under ruby-1.8.7. comes up with the message

ERROR: While executing gem ... (RuntimeError)
Marshal.load reentered at marshal_load

Steps to reproduce

  1. install ruby-1.8.7-head
  2. cd into directory that uses ruby-1.8.7-head in .ruby-version
  3. "gem install bundler"

ERROR: While executing gem ... (RuntimeError)
Marshal.load reentered at marshal_load

Expected behaviour

bundler should be installed

This doesn't happen with ruby 1.9.3 on the same machine (different project) and doesn't go wrong on a machine that has this version of ruby installed on already:

chrisr@chrisr-Latitude-E6530:$ mkdir new
chrisr@chrisr-Latitude-E6530:
$ echo "ruby-1.8.7-head" > new/.ruby-version
chrisr@chrisr-Latitude-E6530:$ echo "testme" > new/.ruby-gemset
chrisr@chrisr-Latitude-E6530:
$ cd new
ruby-1.8.7-head - #gemset created /home/chrisr/.rvm/gems/ruby-1.8.7-head@testme
ruby-1.8.7-head - #generating testme wrappers..............
chrisr@chrisr-Latitude-E6530:~/new$ gem install bundler
Fetching: bundler-1.16.1.gem (100%)
Successfully installed bundler-1.16.1
1 gem installed
Installing ri documentation for bundler-1.16.1...
Installing RDoc documentation for bundler-1.16.1...

Actual behaviour

jadams@EID-4546:$ mkdir new
jadams@EID-4546:
$ echo "ruby-1.8.7-head" > new/.ruby-version
jadams@EID-4546:$ echo "testme" > new/.ruby-gemset
jadams@EID-4546:
$ cd new
ruby-1.8.7-head - #gemset created /Users/jadams/.rvm/gems/ruby-1.8.7-head@testme
ruby-1.8.7-head - #generating testme wrappers...............
jadams@EID-4546:~/new$ gem install bundler
ERROR: While executing gem ... (RuntimeError)
Marshal.load reentered at marshal_load

Environment info

rvm info:
https://gist.github.com/jadrevenge/48c15bca6def53dccb1fd2b6f26c9d77

rvm debug:
https://gist.github.com/jadrevenge/c1a6c262721270f3e14aef7f32c17c5d

rvm install 1.8.7-head:
https://gist.github.com/jadrevenge/f33d1805b47dcf086792f54892ade324

@jadrevenge
Copy link
Author

I've got a fix of sorts ... but it's making my skin crawl.

I've added some versioning to the global.gems file for 1.8.7:

jadams@EID-4546:~$ more .rvm/gemsets/ruby/1.8.7/global.gems
gem-wrappers --force -v 1.2.7
rubygems-bundler -v 1.4.4
rake -v <10.2
rails -v 2.3.17
haml -v 3.1.7
rvm

then, once it's installed, and I'm in my project, I can sometimes get gem to install bundler ... (same command run 3 times in quick succession, with no other changes):

jadams@EID-4546:/ruby/loan$ gem install bundler -v 1.16.1
ERROR: While executing gem ... (RuntimeError)
Marshal.load reentered at marshal_load
jadams@EID-4546:
/ruby/loan$ gem install bundler -v 1.16.1
Fetching: bundler-1.16.1.gem (100%)
ERROR: Error installing bundler:
invalid gem: not in gzip format in data.tar.gz
jadams@EID-4546:~/ruby/loan$ gem install bundler -v 1.16.1
Successfully installed bundler-1.16.1
1 gem installed

sometimes, changing my "rubygems" version to a newer version allows it to install, before I reset it back to 1.8.30.

Jon

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

1 participant