Skip to content

jirb fails to start on Windows #3449

@slackfan

Description

@slackfan

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions