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

jirb fails to start on Windows #3449

Closed
slackfan opened this Issue Nov 6, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@slackfan
Copy link

commented Nov 6, 2015

When calling jirb from the JRuby-9.0.3.0 distribution on Windows 7 64-bit Enterprise or Windows Server 2012 jirb crashes during startup with the following exception. I am not sure which further details are needed. Please let me know. On the same machines JRuby-9.0.1.0 just runs fine. jruby.exe is capable to properly start using both versions.

c:\Tools\jruby-9.0.3.0>jirb
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


c:\Tools\jruby-9.0.3.0>
@slackfan

This comment has been minimized.

Copy link
Author

commented Nov 9, 2015

Dupe of 3434

@slackfan slackfan closed this Nov 9, 2015

@enebo enebo added this to the JRuby 9.0.4.0 milestone Nov 12, 2015

@enebo enebo added the windows label Nov 12, 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.