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

Marshal.load fails with latest ActiveSupport 5.0.2 #4557

Closed
lardcanoe opened this issue Apr 6, 2017 · 1 comment
Closed

Marshal.load fails with latest ActiveSupport 5.0.2 #4557

lardcanoe opened this issue Apr 6, 2017 · 1 comment

Comments

@lardcanoe
Copy link

Environment

  • 9.1.7.0 and 9.1.8.0 tested
  • Linux

Other relevant info you may wish to add:

If this change is loaded, a simple call to Marshal.load(Marshal.dump([])) fails:

➜  experiment 9.1.8.0  jruby -G ./reproduce.rb 
NoMethodError: undefined method `call' for nil:NilClass
Did you mean?  caller
    load at org/jruby/RubyMarshal.java:145
    load at experiment/vendor/jruby/2.3.0/gems/activesupport-5.0.2/lib/active_support/core_ext/marshal.rb:5
  <main> at ./reproduce.rb:4

Code:

require 'active_support/all'
ary = []
source = Marshal.dump(ary)
Marshal.load(source)

Gemfile:

#ruby=jruby-9.1.8.0
source 'https://rubygems.org'
gem 'activesupport', '~> 5.0.2'

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    activesupport (5.0.2)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (~> 0.7)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
    concurrent-ruby (1.0.5-java)
    i18n (0.8.1)
    minitest (5.10.1)
    thread_safe (0.3.6-java)
    tzinfo (1.2.3)
      thread_safe (~> 0.1)

PLATFORMS
  java

DEPENDENCIES
  activesupport (~> 5.0.2)

BUNDLED WITH
   1.14.6
@etehtsea
Copy link
Contributor

Fixed in upcoming JRuby 9.1.9.0. Dup of #4526

@kares kares added this to the Invalid or Duplicate milestone Apr 17, 2017
@kares kares closed this as completed Apr 17, 2017
troter added a commit to troter/enumerize that referenced this issue Nov 30, 2017
troter added a commit to troter/enumerize that referenced this issue Dec 1, 2017
mygreatstory pushed a commit to mygreatstory/rubenumerize that referenced this issue Jan 9, 2021
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