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

Cannot install jRuby 9.0.3.0 #3410

Closed
lephyrius opened this Issue Oct 22, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@lephyrius
Copy link

lephyrius commented Oct 22, 2015

Gives a weird error when trying to install 9.0.3.0:

Unhandled Java exception: java.lang.NoSuchMethodError: org.jruby.Ruby.newString()Ljava/lang/String;
java.lang.NoSuchMethodError: org.jruby.Ruby.newString()Ljava/lang/String;
                <top> at gem:4
  invokeWithArguments at java/lang/invoke/MethodHandle.java:636
                 load at org/jruby/ir/Compiler.java:111
            runScript at org/jruby/Ruby.java:821
            runScript at org/jruby/Ruby.java:813
          runNormally at org/jruby/Ruby.java:751
          runFromMain at org/jruby/Ruby.java:573
        doRunFromMain at org/jruby/Main.java:409
          internalRun at org/jruby/Main.java:304
                  run at org/jruby/Main.java:233
                 main at org/jruby/Main.java:200

Using java vm:

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

I have to add that I use: rbenv/ruby-build to install it. Is this their issue? Seems like a pretty low level issue to me.

@headius

This comment has been minimized.

Copy link
Member

headius commented Oct 22, 2015

Yeah, very low-level. I'm very surprised this got through testing, but I have a pretty good idea what it is.

@headius

This comment has been minimized.

Copy link
Member

headius commented Oct 22, 2015

Well I really messed this one up.

In attempting to make FILE better reflect the actual filename of an ahead-of-time compiled class, I broke it completely in the JIT. Looks like we're going to have to do a quick flip release.

@headius

This comment has been minimized.

Copy link
Member

headius commented Oct 22, 2015

@lephyrius Do you perhaps have JAVA_OPTS=-Xverify:none or similar in your env?

This is definitely a bug, but it should not be seen by most users due to JVM's verification of compiled code. If that verification is turned off, it will produce the error you see. I think either you or rbenv are disabling all JVM verification, perhaps to speed startup.

@headius

This comment has been minimized.

Copy link
Member

headius commented Oct 22, 2015

Reproduced in my environment, but only when JVM bytecode verification is turned off:

[] ~/projects/jruby $ JAVA_OPTS=-Xverify:none gem install bundler
Unhandled Java exception: java.lang.NoSuchMethodError: org.jruby.Ruby.newString()Ljava/lang/String;
java.lang.NoSuchMethodError: org.jruby.Ruby.newString()Ljava/lang/String;
                <top> at /Users/headius/.rvm/rubies/jruby-9.0.3.0/bin/gem:4
  invokeWithArguments at java/lang/invoke/MethodHandle.java:627
                 load at org/jruby/ir/Compiler.java:111
            runScript at org/jruby/Ruby.java:821
            runScript at org/jruby/Ruby.java:813
          runNormally at org/jruby/Ruby.java:751
          runFromMain at org/jruby/Ruby.java:573
        doRunFromMain at org/jruby/Main.java:409
          internalRun at org/jruby/Main.java:304
                  run at org/jruby/Main.java:233
                 main at org/jruby/Main.java:200

@headius headius closed this in 5861b1b Oct 22, 2015

@headius headius added this to the JRuby 9.0.4.0 milestone Oct 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.