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

IRB fails to start with JRuby9.0.3.0 on Windows 10. #3408

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

Comments

Projects
None yet
4 participants
@lumrandir
Copy link

commented Oct 22, 2015

I've just installed jruby9.0.3.0 on Windows 10 (x64). JDK is 8u66. When I'm trying to start irb by invoking jruby -S irb I get the following:

Unhandled Java exception: java.lang.IllegalArgumentException: instance of class jnr.posix.WindowsRawFileStat is not a struct
java.lang.IllegalArgumentException: instance of class jnr.posix.WindowsRawFileStat is not a struct
          toNative at jnr/posix/BaseNativePOSIX.java:709
          toNative at jnr/posix/BaseNativePOSIX.java:696
              fstat at jnr/posix/BaseNativePOSIX.java:135
             fstat at jnr/posix/BaseNativePOSIX.java:124
             fstat at jnr/posix/CheckedPOSIX.java:125
             fstat at jnr/posix/LazyPOSIX.java:122
  initChannelTypes at org/jruby/util/io/ChannelFD.java:147
            <init> at org/jruby/util/io/ChannelFD.java:34
  initializeCommon at org/jruby/RubyIO.java:881
        initialize at org/jruby/RubyIO.java:982
              call at org/jruby/internal/runtime/methods/JavaMethod.java:623
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:273
         callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
              call at org/jruby/runtime/callsite/CachingCallSite.java:83
       newInstance at org/jruby/RubyClass.java:891
              open at org/jruby/RubyIO.java:1123
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:273
         callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
              call at org/jruby/runtime/callsite/CachingCallSite.java:83
         interpret at org/jruby/ir/instructions/CallBase.java:419
       processCall at org/jruby/ir/interpreter/InterpreterEngine.java:322
         interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
         interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
  INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:162
              call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:148
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:303
         callBlock at org/jruby/runtime/callsite/CachingCallSite.java:141
              call at org/jruby/runtime/callsite/CachingCallSite.java:145
       newInstance at org/jruby/RubyClass.java:863
              call at org/jruby/internal/runtime/methods/JavaMethod.java:306
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
              call at org/jruby/runtime/callsite/CachingCallSite.java:131
       processCall at org/jruby/ir/interpreter/InterpreterEngine.java:306
         interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
  INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:127
              call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:113
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:273
         callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
              call at org/jruby/runtime/callsite/CachingCallSite.java:83
       newInstance at org/jruby/RubyClass.java:891
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:273
         callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
              call at org/jruby/runtime/callsite/CachingCallSite.java:83
         interpret at org/jruby/ir/instructions/CallBase.java:419
       processCall at org/jruby/ir/interpreter/InterpreterEngine.java:322
         interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
         interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
  INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:162
              call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:148
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:303
         callBlock at org/jruby/runtime/callsite/CachingCallSite.java:141
              call at org/jruby/runtime/callsite/CachingCallSite.java:145
       newInstance at org/jruby/RubyClass.java:863
              call at org/jruby/internal/runtime/methods/JavaMethod.java:306
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
              call at org/jruby/runtime/callsite/CachingCallSite.java:131
       processCall at org/jruby/ir/interpreter/InterpreterEngine.java:306
         interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
         interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
  INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:197
              call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:183
              call at org/jruby/internal/runtime/methods/DynamicMethod.java:197
      cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:313
              call at org/jruby/runtime/callsite/CachingCallSite.java:163
       processCall at org/jruby/ir/interpreter/InterpreterEngine.java:290
         interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
    INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:102
           execute at org/jruby/ir/interpreter/Interpreter.java:89
           execute at org/jruby/ir/interpreter/Interpreter.java:32
           execute at org/jruby/ir/IRTranslator.java:42
    runInterpreter at org/jruby/Ruby.java:852
    runInterpreter at org/jruby/Ruby.java:857
       runNormally at org/jruby/Ruby.java:756
       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

This comment has been minimized.

Copy link
Member

commented Oct 22, 2015

Interesting. stat logic has been updated for this release. Thoughts, @enebo?

@enebo

This comment has been minimized.

Copy link
Member

commented Oct 22, 2015

Confirmed via 'jruby -S irb' some path calling into fstat.

@enebo

This comment has been minimized.

Copy link
Member

commented Oct 23, 2015

This is already solved pending updating our pom to newest jnr-posix which I will do in the morning.

@enebo enebo closed this in ba6ab77 Oct 23, 2015

@kevinrood

This comment has been minimized.

Copy link

commented Oct 26, 2015

FYI, this affects Windows 8 as well.

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.