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

remote execution #3625

Closed
westlakem opened this issue Jan 29, 2016 · 27 comments
Closed

remote execution #3625

westlakem opened this issue Jan 29, 2016 · 27 comments

Comments

@westlakem
Copy link

Using both psexec from pstools (https://technet.microsoft.com/en-us/sysinternals/pstools.aspx) and Windows PowerShell remote, I cannot execute ruby commands on the machine I'm remoteing into.

Example using psexec:
#1 Download pstools from https://technet.microsoft.com/en-us/sysinternals/pstools.aspx
#2 using psexec try to execute cucumber on a remote machine

IE: \path\to\pstools psexec \remoteMachine cmd
#3 once remoted into the machine try to open irb

ERROR:

C:\Windows\system32>irb
Switch to inspect mode.
Unhandled Java exception: java.lang.UnsatisfiedLinkError: The operation complete
d successfully.

java.lang.UnsatisfiedLinkError: The operation completed successfully.

    loadNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:87
     getNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:70
       getSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:49
      findSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:59
  generateInterfaceImpl at jnr/ffi/provider/jffi/AsmLibraryLoader.java:117
            loadLibrary at jnr/ffi/provider/jffi/AsmLibraryLoader.java:59
            loadLibrary at jnr/ffi/provider/jffi/NativeLibraryLoader.java:43
                   load at jnr/ffi/LibraryLoader.java:290
            loadLibrary at jnr/ffi/Library.java:127
            loadLibrary at jnr/ffi/Library.java:82
            loadLibrary at jnr/ffi/Library.java:67
               <clinit> at jnr/enxio/channels/Native.java:64
                   libc at jnr/enxio/channels/Native.java:69
                   read at jnr/enxio/channels/Native.java:95
                   read at jnr/enxio/channels/NativeDeviceChannel.java:65
                   read at org/jruby/util/io/PosixShim.java:153
                    run at org/jruby/util/io/OpenFile.java:1313
                    run at org/jruby/util/io/OpenFile.java:1303
            executeTask at org/jruby/RubyThread.java:1355
           readInternal at org/jruby/util/io/OpenFile.java:1376
                fillbuf at org/jruby/util/io/OpenFile.java:1265
               fillCbuf at org/jruby/util/io/OpenFile.java:1207
               moreChar at org/jruby/util/io/OpenFile.java:1143
             appendline at org/jruby/util/io/OpenFile.java:1072
           getlineInner at org/jruby/RubyIO.java:758
                getline at org/jruby/RubyIO.java:680
                getline at org/jruby/RubyIO.java:668
                   gets at org/jruby/RubyIO.java:2202
           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.jav
a: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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:189
           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.jav
a:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
          yieldSpecific at org/jruby/runtime/IRBlockBody.java:67
          yieldSpecific at org/jruby/runtime/Block.java:116
          yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:457
              interpret at org/jruby/ir/instructions/YieldInstr.java:72
         processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.jav
a:191
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.jav
a:115
              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
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:299
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.jav
a:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
                   call at org/jruby/runtime/IRBlockBody.java:59
                   call at org/jruby/runtime/Block.java:106
                   call at org/jruby/RubyProc.java:334
                 call19 at org/jruby/RubyProc.java:318
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:193
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:189
           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.jav
a: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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:189
           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.jav
a: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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:189
           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.jav
a: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.jav
a: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.jav
a: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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:189
           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
              interp
ret 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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:189
           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.jav
a:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
          yieldSpecific at org/jruby/runtime/IRBlockBody.java:67
          yieldSpecific at org/jruby/runtime/Block.java:116
                   loop at org/jruby/RubyKernel.java:1291
                   call at org/jruby/internal/runtime/methods/JavaMethod.java:49
4
           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.jav
a:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
                doYield at org/jruby/runtime/IRBlockBody.java:152
                  yield at org/jruby/runtime/BlockBody.java:78
                  yield at org/jruby/runtime/Block.java:147
                  enter at org/jruby/RubyContinuation.java:107
        rbCatch19Common at org/jruby/RubyKernel.java:1105
              rbCatch19 at org/jruby/RubyKernel.java:1098
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:299
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.jav
a: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
              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.jav
a: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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java
:189
           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.jav
a:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
                doYield at org/jruby/runtime/IRBlockBody.java:152
                  yield at org/jruby/runtime/BlockBody.java:78
                  yield at org/jruby/runtime/Block.java:147
                  enter at org/jruby/RubyContinuation.java:107
        rbCatch19Common at org/jruby/RubyKernel.java:1105
              rbCatch19 at org/jruby/RubyKernel.java:1098
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:299
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.jav
a: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
                  <top> at C:/jruby-9.0.4.0/bin/jirb:13
    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

NOTE: also tried with Windows Powershell and got this stack trace:

Unhandled Java exception: java.lang.UnsatisfiedLinkError: The operation completed successfully.
    + CategoryInfo          : NotSpecified: (Unhandled Java ...d successfully.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
    + PSComputerName        : RemoteMachine1

java.lang.UnsatisfiedLinkError: The operation completed successfully.
    loadNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:87
     getNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:70
       getSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:49
      findSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:59
  generateInterfaceImpl at jnr/ffi/provider/jffi/AsmLibraryLoader.java:117
            loadLibrary at jnr/ffi/provider/jffi/AsmLibraryLoader.java:59
            loadLibrary at jnr/ffi/provider/jffi/NativeLibraryLoader.java:43
                   load at jnr/ffi/LibraryLoader.java:290
            loadLibrary at jnr/ffi/Library.java:127
            loadLibrary at jnr/ffi/Library.java:82
            loadLibrary at jnr/ffi/Library.java:67
               <clinit> at jnr/enxio/channels/Native.java:64
                   libc at jnr/enxio/channels/Native.java:69
                   read at jnr/enxio/channels/Native.java:95
                   read at jnr/enxio/channels/NativeDeviceChannel.java:65
                   read at org/jruby/util/io/PosixShim.java:153
                    run at org/jruby/util/io/OpenFile.java:1313
                    run at org/jruby/util/io/OpenFile.java:1303
            executeTask at org/jruby/RubyThread.java:1355
           readInternal at org/jruby/util/io/OpenFile.java:1376
                fillbuf at org/jruby/util/io/OpenFile.java:1265
               fillCbuf at org/jruby/util/io/OpenFile.java:1207
               moreChar at org/jruby/util/io/OpenFile.java:1143
             appendline at org/jruby/util/io/OpenFile.java:1072
           getlineInner at org/jruby/RubyIO.java:758
                getline at org/jruby/RubyIO.java:680
                getline at org/jruby/RubyIO.java:668
                   gets at org/jruby/RubyIO.java:2202
           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:77
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:162
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:148
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
          yieldSpecific at org/jruby/runtime/IRBlockBody.java:67
          yieldSpecific at org/jruby/runtime/Block.java:116
          yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:457
              interpret at org/jruby/ir/instructions/YieldInstr.java:72
         processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.java:191
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:115
              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
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:299
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
        INTERPRET_BLOCK at
org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
                   call at org/jruby/runtime/IRBlockBody.java:59
                   call at org/jruby/runtime/Block.java:106
                   call at org/jruby/RubyProc.java:334
                 call19 at org/jruby/RubyProc.java:318
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:193
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:77
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:162
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:148
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:77
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:162
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:148
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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 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 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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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
              inte
rp
ret 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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
          yieldSpecific at org/jruby/runtime/IRBlockBody.java:67
          yieldSpecific at org/jruby/runtime/Block.java:116
                   loop at org/jruby/RubyKernel.java:1291
                   call at org/jruby/internal/runtime/methods/JavaMethod.java:494
           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_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
                doYield at org/jruby/runtime/IRBlockBody.java:152
                  yield at org/jruby/runtime/BlockBody.java:78
                  yield at org/jruby/runtime/Block.java:147
                  enter at org/jruby/RubyContinuation.java:107
        rbCatch19Common at org/jruby/RubyKernel.java:1105
              rbCatch19 at org/jruby/RubyKernel.java:1098
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:299
              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
              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
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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_BLOCK at org/jruby/ir/interpreter/Interpreter.java:122
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:136
                doYield at org/jruby/runtime/IRBlockBody.java:152
                  yield at org/jruby/runtim
e/BlockBody.java:78
                  yield at org/jruby/runtime/Block.java:147
                  enter at org/jruby/RubyContinuation.java:107
        rbCatch19Common at org/jruby/RubyKernel.java:1105
              rbCatch19 at org/jruby/RubyKernel.java:1098
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:299
              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
                  <top> at C:/jruby-9.0.4.0/bin/jirb:13
    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
Copy link
Member

headius commented Mar 4, 2016

Does JRuby work at all under PowerShell? It looks like something's messing with paths and preventing us from loading the native libs we need.

@valich
Copy link

valich commented Mar 23, 2016

Hi @headius,

We have a very similar problem in RubyMine with crashing IRB console when using the latest JRrubies (9.0.5.0, for instance). Here is an issue in our tracker: https://youtrack.jetbrains.com/issue/RUBY-17856. One can see that resulting stacktrace is very similar:

loadNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:87
     getNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:70
       getSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:49
      findSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:59
  generateInterfaceImpl at jnr/ffi/provider/jffi/AsmLibraryLoader.java:117
            loadLibrary at jnr/ffi/provider/jffi/AsmLibraryLoader.java:59
            loadLibrary at jnr/ffi/provider/jffi/NativeLibraryLoader.java:43
                   load at jnr/ffi/LibraryLoader.java:290
            loadLibrary at jnr/ffi/Library.java:127
            loadLibrary at jnr/ffi/Library.java:82
            loadLibrary at jnr/ffi/Library.java:67
               <clinit> at jnr/enxio/channels/Native.java:64
                   libc at jnr/enxio/channels/Native.java:69
                   read at jnr/enxio/channels/Native.java:95
                   read at jnr/enxio/channels/NativeDeviceChannel.java:65
                   read at org/jruby/util/io/PosixShim.java:157
                    run at org/jruby/util/io/OpenFile.java:1313
                    run at org/jruby/util/io/OpenFile.java:1303
            executeTask at org/jruby/RubyThread.java:1355
           readInternal at org/jruby/util/io/OpenFile.java:1376
                fillbuf at org/jruby/util/io/OpenFile.java:1265
               fillCbuf at org/jruby/util/io/OpenFile.java:1207
               moreChar at org/jruby/util/io/OpenFile.java:1143
             appendline at org/jruby/util/io/OpenFile.java:1072
           getlineInner at org/jruby/RubyIO.java:757
                getline at org/jruby/RubyIO.java:680
                getline at org/jruby/RubyIO.java:668
                   gets at org/jruby/RubyIO.java:2200
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:80
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:175
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:161
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
          yieldSpecific at org/jruby/runtime/IRBlockBody.java:77
          yieldSpecific at org/jruby/runtime/Block.java:135
          yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:480
              interpret at org/jruby/ir/instructions/YieldInstr.java:73
         processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.java:191
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:115
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:86
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:210
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:196
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:325
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                   call at org/jruby/runtime/IRBlockBody.java:66
                   call at org/jruby/runtime/Block.java:125
                   call at org/jruby/RubyProc.java:334
                 call19 at org/jruby/RubyProc.java:318
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:193
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:80
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:175
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:161
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:80
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:175
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:161
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:86
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:210
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:196
                   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:316
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:86
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:210
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:196
                   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:316
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:80
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:175
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:161
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:80
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:175
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:161
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
          yieldSpecific at org/jruby/runtime/IRBlockBody.java:77
          yieldSpecific at org/jruby/runtime/Block.java:135
                   loop at org/jruby/RubyKernel.java:1287
                   call at org/jruby/internal/runtime/methods/JavaMethod.java:494
           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:414
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:348
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                doYield at org/jruby/runtime/IRBlockBody.java:179
                  yield at org/jruby/runtime/BlockBody.java:96
                  yield at org/jruby/runtime/Block.java:166
                  enter at org/jruby/RubyContinuation.java:107
        rbCatch19Common at org/jruby/RubyKernel.java:1103
              rbCatch19 at org/jruby/RubyKernel.java:1096
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:325
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:140
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:126
           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:414
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:348
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:80
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:175
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:161
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
           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:332
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
        INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
        commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                doYield at org/jruby/runtime/IRBlockBody.java:179
                  yield at org/jruby/runtime/BlockBody.java:96
                  yield at org/jruby/runtime/Block.java:166
                  enter at org/jruby/RubyContinuation.java:107
        rbCatch19Common at org/jruby/RubyKernel.java:1103
              rbCatch19 at org/jruby/RubyKernel.java:1096
           cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
              callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                   call at org/jruby/runtime/callsite/CachingCallSite.java:177
            processCall at org/jruby/ir/interpreter/InterpreterEngine.java:325
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
              interpret at org/jruby/ir/interpreter/InterpreterEngine.java:86
       INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:210
                   call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:196
                   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:316
              interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
         INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:112
                execute at org/jruby/ir/interpreter/Interpreter.java:99
                execute at org/jruby/ir/interpreter/Interpreter.java:35
                execute at org/jruby/ir/IRTranslator.java:42
         runInterpreter at org/jruby/Ruby.java:833
               loadFile at org/jruby/Ruby.java:2905
                   load at org/jruby/runtime/load/LibrarySearcher.java:235
                   load at org/jruby/runtime/load/LibrarySearcher.java:34
                   load at org/jruby/runtime/load/LoadService.java:336
             loadCommon at org/jruby/RubyKernel.java:963
                 load19 at org/jruby/RubyKernel.java:955
                   call at org/jruby/internal/runtime/methods/DynamicMethod.java:201
                   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
                  <top> at -e:1
    invokeWithArguments at java/lang/invoke/MethodHandle.java:599
                   load at org/jruby/ir/Compiler.java:111
              runScript at org/jruby/Ruby.java:817
              runScript at org/jruby/Ruby.java:809
            runNormally at org/jruby/Ruby.java:747
            runFromMain at org/jruby/Ruby.java:569
          doRunFromMain at org/jruby/Main.java:415
            internalRun at org/jruby/Main.java:310
                    run at org/jruby/Main.java:239
                   main at org/jruby/Main.java:201

The same works well from the cmd console with the same env.

@enebo
Copy link
Member

enebo commented Mar 23, 2016

I have personally been using powershell on and off so I know PS works in general (as my normal user and as admin). What I suspect in both reports is we are exploding ffi stuff and we do not have permissions in either scnenario to dll load that code. It is a bit of a wild guess but from perspective of a remote user it might just be that you are executing in some extra layer of MS safety?

@enebo
Copy link
Member

enebo commented Mar 23, 2016

On reflection idea used to have no problems loading ffi so perhaps either idea problem is from a different cause or both are the same and my previous comment is bunk. I do know we also have some issue with classloader:jar://fooo/bar becoming //foo/bar (do not see the issue). Perhaps we mangle some path in a novel way? (another wild guess :) )

@valich
Copy link

valich commented Mar 28, 2016

Hi @enebo, sorry for delay
I've played with this a little and have extracted a kind of minimal example.
Here's the gist: https://gist.github.com/valich/e6c2c8d7d0d521bc9808
(sorry you'll need to fill in env variables manually :( )

Now the thing is that any stderr redirection other than ProcessBuilder.Redirect.PIPE leads to such error as above. In particular, using quite standard #inheritIO() does not work as well.

TBH at the moment I don't know a bit about why this could happen. I hope my example will work as a more specific bug report :)

@enebo enebo added this to the JRuby 9.1.0.0 milestone Mar 30, 2016
@valich
Copy link

valich commented Apr 1, 2016

OK, really simple way to reproduce is actually calling jirb like that:

C:/jruby-9.0.5.0/bin/jirb < input.txt > output.txt 2>&1

@enebo
Copy link
Member

enebo commented Apr 1, 2016

@valich ah interesting. So the way this was described above makes this sound like a regression. Or at least it worked in 1.7.x?

@headius
Copy link
Member

headius commented Apr 13, 2016

I'm poking at this a bit too. I'm confused why we're going down a native IO path on Windows.

@headius
Copy link
Member

headius commented Apr 13, 2016

Can someone who can reproduce this run with -Xjit.threshold=0? The only traces we have here have interpreter frames in them, which makes it hard to figure out. I want to know what IO object is using this native logic.

@valich
Copy link

valich commented Apr 13, 2016

There is the output produced when calling with -Xjit.threshold=0:

Unhandled Java exception: java.lang.UnsatisfiedLinkError: The operation completed successfully.

java.lang.UnsatisfiedLinkError: The operation completed successfully.

                loadNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:87
                 getNativeLibraries at jnr/ffi/provider/jffi/NativeLibrary.java:70
                   getSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:49
                  findSymbolAddress at jnr/ffi/provider/jffi/NativeLibrary.java:59
              generateInterfaceImpl at jnr/ffi/provider/jffi/AsmLibraryLoader.java:117
                        loadLibrary at jnr/ffi/provider/jffi/AsmLibraryLoader.java:59
                        loadLibrary at jnr/ffi/provider/jffi/NativeLibraryLoader.java:43
                               load at jnr/ffi/LibraryLoader.java:290
                        loadLibrary at jnr/ffi/Library.java:127
                        loadLibrary at jnr/ffi/Library.java:82
                        loadLibrary at jnr/ffi/Library.java:67
                           <clinit> at jnr/enxio/channels/Native.java:64
                               libc at jnr/enxio/channels/Native.java:69
                               read at jnr/enxio/channels/Native.java:95
                               read at jnr/enxio/channels/NativeDeviceChannel.java:65
                               read at org/jruby/util/io/PosixShim.java:157
                                run at org/jruby/util/io/OpenFile.java:1313
                                run at org/jruby/util/io/OpenFile.java:1303
                        executeTask at org/jruby/RubyThread.java:1355
                       readInternal at org/jruby/util/io/OpenFile.java:1376
                            fillbuf at org/jruby/util/io/OpenFile.java:1265
                           fillCbuf at org/jruby/util/io/OpenFile.java:1207
                           moreChar at org/jruby/util/io/OpenFile.java:1143
                         appendline at org/jruby/util/io/OpenFile.java:1072
                       getlineInner at org/jruby/RubyIO.java:757
                            getline at org/jruby/RubyIO.java:680
                            getline at org/jruby/RubyIO.java:668
                               gets at org/jruby/RubyIO.java:2200
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
                               gets at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/input-method.rb:60
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:116
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
                block in eval_input at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb.rb:469
                        yieldDirect at org/jruby/runtime/CompiledIRBlockBody.java:140
                      yieldSpecific at org/jruby/runtime/IRBlockBody.java:73
                      yieldSpecific at org/jruby/runtime/Block.java:135
                      yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:480
                      signal_status at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb.rb:623
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:131
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:194
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
                          callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                               call at org/jruby/runtime/callsite/CachingCallSite.java:177
                block in eval_input at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb.rb:468
                         callDirect at org/jruby/runtime/CompiledIRBlockBody.java:129
                               call at org/jruby/runtime/IRBlockBody.java:64
                               call at org/jruby/runtime/Block.java:125
                               call at org/jruby/RubyProc.java:334
                             call19 at org/jruby/RubyProc.java:318
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:193
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
                          buf_input at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/ruby-lex.rb:188
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:116
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
                               getc at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/ruby-lex.rb:103
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:116
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
                           match_io at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/slex.rb:205
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:101
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:129
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:194
                               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
                              match at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/slex.rb:75
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:131
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:194
                               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
                              token at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/ruby-lex.rb:282
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:116
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
                                lex at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/ruby-lex.rb:264
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:116
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
  block in each_top_level_statement at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/ruby-lex.rb:235
                        yieldDirect at org/jruby/runtime/CompiledIRBlockBody.java:140
                      yieldSpecific at org/jruby/runtime/IRBlockBody.java:73
                      yieldSpecific at org/jruby/runtime/Block.java:135
                               loop at org/jruby/RubyKernel.java:1287
                       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
  block in each_top_level_statement at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/ruby-lex.rb:231
                        yieldDirect at org/jruby/runtime/CompiledIRBlockBody.java:140
                              yield at org/jruby/runtime/BlockBody.java:94
                              yield at org/jruby/runtime/Block.java:166
                              enter at org/jruby/RubyContinuation.java:107
                    rbCatch19Common at org/jruby/RubyKernel.java:1103
                          rbCatch19 at org/jruby/RubyKernel.java:1096
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
                          callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                               call at org/jruby/runtime/callsite/CachingCallSite.java:177
           each_top_level_statement at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb/ruby-lex.rb:230
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:116
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                       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
                         eval_input at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb.rb:485
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:116
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:293
                               call at org/jruby/runtime/callsite/CachingCallSite.java:131
                     block in start at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb.rb:395
                        yieldDirect at org/jruby/runtime/CompiledIRBlockBody.java:140
                              yield at org/jruby/runtime/BlockBody.java:94
                              yield at org/jruby/runtime/Block.java:166
                              enter at org/jruby/RubyContinuation.java:107
                    rbCatch19Common at org/jruby/RubyKernel.java:1103
                          rbCatch19 at org/jruby/RubyKernel.java:1096
                       cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
                          callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                               call at org/jruby/runtime/callsite/CachingCallSite.java:177
                              start at C:/jruby-9.0.5.0/lib/ruby/stdlib/irb.rb:394
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:101
                               call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:112
                               call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:159
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:189
                       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:332
                          interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:77
                     INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:112
                            execute at org/jruby/ir/interpreter/Interpreter.java:99
                            execute at org/jruby/ir/interpreter/Interpreter.java:35
                            execute at org/jruby/ir/IRTranslator.java:42
                     runInterpreter at org/jruby/Ruby.java:833
                           loadFile at org/jruby/Ruby.java:2905
                               load at org/jruby/runtime/load/LibrarySearcher.java:235
                               load at org/jruby/runtime/load/LibrarySearcher.java:34
                               load at org/jruby/runtime/load/LoadService.java:336
                         loadCommon at org/jruby/RubyKernel.java:963
                             load19 at org/jruby/RubyKernel.java:955
                               call at org/jruby/internal/runtime/methods/DynamicMethod.java:201
                               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
                              <top> at -e:1
                               load at org/jruby/ir/Compiler.java:111
                          runScript at org/jruby/Ruby.java:817
                          runScript at org/jruby/Ruby.java:809
                        runNormally at org/jruby/Ruby.java:747
                        runFromMain at org/jruby/Ruby.java:569
                      doRunFromMain at org/jruby/Main.java:415
                        internalRun at org/jruby/Main.java:310
                                run at org/jruby/Main.java:239
                               main at org/jruby/Main.java:201

@headius
Copy link
Member

headius commented Apr 20, 2016

@valich Thank you! So it's a call from IRB to IO#gets triggering this. That's interesting.

@headius
Copy link
Member

headius commented Apr 28, 2016

Ok sadly this isn't going to make 9.1, but we do want to fix it. Given the fact that it's IRB triggering this I wonder if there's some terminal issue going through psexec. The alternative is as previously stated: psexec is running in some restricted environment that prevents us from loading native dependencies we need.

@headius headius modified the milestones: JRuby 9.1.1.0, JRuby 9.1.0.0 Apr 28, 2016
@headius headius modified the milestones: JRuby 9.1.1.0, JRuby 9.1.2.0 May 11, 2016
@enebo enebo modified the milestones: JRuby 9.1.2.0, JRuby 9.1.3.0 May 23, 2016
@headius
Copy link
Member

headius commented Aug 23, 2016

It looks like I never asked: does this work with -Xnative.enabled=false? We normally shouldn't be using native IO on Windows, but it appears to be trying to do so.

@headius
Copy link
Member

headius commented Aug 23, 2016

@valich I was able to run the input.txt/output.txt command line at a normal prompt just fine. Trying to follow your instructions for remotely executing now.

@headius
Copy link
Member

headius commented Aug 23, 2016

Ok, looks like I finally have psexec working.

First thing I notice is the poor terminal emulation from cmd :-)

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

←[1;32;40mC:\Users\headius\jruby {git}{hg}
←[1;30;40m{lamb} ←[0m

But I can proceed.

@headius
Copy link
Member

headius commented Aug 23, 2016

Success! I have reproduced it on my Windows VM!

I have also confirmed that disabling native integration does NOT fix the problem:

bash-3.1$ jruby -Xnative.enabled=false -S jirb < input.txt
LoadError: Native API access is disabled
  require at org/jruby/RubyKernel.java:944
    <top> at C:/Users/headius/jruby/lib/ruby/stdlib/ffi/ffi.rb:69
  require at org/jruby/RubyKernel.java:944
    <top> at C:/Users/headius/jruby/lib/ruby/stdlib/ffi.rb:1
  require at org/jruby/RubyKernel.java:944
    <top> at C:/Users/headius/jruby/lib/ruby/stdlib/ffi.rb:1
     load at org/jruby/RubyKernel.java:962
    <top> at uri:classloader:/jruby/kernel/file.rb:1

@headius
Copy link
Member

headius commented Aug 23, 2016

Ah-ha! We've won the war without firing a shot!

I updated to master (9.1.3.0) and it appears to be working just fine! Perhaps it was other fixes for native calls that did the job.

bash-3.1$ bin/jruby.exe -S jirb < input.txt
irb(main):001:0> puts "hello"
hello
=> nil
irb(main):002:0>

Please confirm with a recent 9.1.3.0 snapshot from http://ci.jruby.org!

@headius headius closed this as completed Aug 23, 2016
@valich
Copy link

valich commented Aug 24, 2016

@headius Chuck Norris does not fix bugs. When he decides to release new version the bugs fix themselves.

Well, I've checked the snapshot in the remote console and, more importantly, in RubyMine and it works indeed! Thank you and the team :)

@karmc
Copy link

karmc commented Sep 8, 2016

@headius @valich.

Looks like this has regressed in 9.1.5.0

I've been following this issue from a distance and upon noticing that it had been closed, I downloaded the most recent release version (9.1.5.0). Attempting to start irb in RubyMine, I experienced the same error as mentioned above. Downloaded release 9.1.3.0, tried the same test and no error.

@boskowski
Copy link

boskowski commented Nov 10, 2016

Unfortunately 9.1.6.0 doesn't solve the problem either.

C:\>jruby -v
jruby 9.1.6.0 (2.3.1) 2016-11-09 0150a76 Java HotSpot(TM) 64-Bit Server VM 25.112-b15 on 1.8.0_112-b15 +jit [mswin32-x86_64]

C:\>echo puts 'hello' | jruby -S jirb
Switch to inspect mode.
Unhandled Java exception: java.lang.UnsatisfiedLinkError: The operation completed successfully.

java.lang.UnsatisfiedLinkError: The operation completed successfully.

  newUnsatisifiedLinkError at jnr/ffi/provider/jffi/AsmRuntime.java:40
                      read at jnr/enxio/channels/Native$LibC$jnr$ffi$1:-1
                      read at jnr/enxio/channels/Native.java:96
                      read at jnr/enxio/channels/NativeDeviceChannel.java:65
                      read at org/jruby/util/io/PosixShim.java:157
                       run at org/jruby/util/io/OpenFile.java:1313
                       run at org/jruby/util/io/OpenFile.java:1303
               executeTask at org/jruby/RubyThread.java:1477
              readInternal at org/jruby/util/io/OpenFile.java:1376
                   fillbuf at org/jruby/util/io/OpenFile.java:1265
                  fillCbuf at org/jruby/util/io/OpenFile.java:1207
                  moreChar at org/jruby/util/io/OpenFile.java:1143
                appendline at org/jruby/util/io/OpenFile.java:1072
              getlineInner at org/jruby/RubyIO.java:774
                   getline at org/jruby/RubyIO.java:697
                   getline at org/jruby/RubyIO.java:685
                      gets at org/jruby/RubyIO.java:2216
                      call at org/jruby/RubyIO$INVOKER$i$gets.gen:-1
etc.

@boskowski
Copy link

@headius Your fix for 9.1.3.0 apparently vanished from subsequent releases. Latest release (9.1.7.0) keeps having the issue:

C:\>jruby -v
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) Client VM 25.112-b15 on 1.8.0_112-b15 +jit [mswin32-x86]

C:\>echo puts 'hello' | jruby -S jirb
Switch to inspect mode.
Unhandled Java exception: java.lang.UnsatisfiedLinkError: The operation completed successfully.

java.lang.UnsatisfiedLinkError: The operation completed successfully.

  newUnsatisifiedLinkError at jnr/ffi/provider/jffi/AsmRuntime.java:40
                      read at jnr/enxio/channels/Native$LibC$jnr$ffi$1:-1
                      read at jnr/enxio/channels/Native.java:101
                      read at jnr/enxio/channels/NativeDeviceChannel.java:65
...

@theindra
Copy link

I have hte same problem with Jruby 9.1.8.0 on Windows 10.

@AnttiMa
Copy link

AnttiMa commented Mar 27, 2017

I also experienced this problem with JRuby 9.1.8.0 in RubyMine 2017.1 on Windows 7.
On starting IRB console from the menu (Tools|Run IRB Console...) IRB crashes with following output:

D:\git\rb_tools\jruby\bin\jruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) D:/git/rb_tools/jruby/bin/jirb --prompt simple
Switch to inspect mode.
Unhandled Java exception: java.lang.UnsatisfiedLinkError: Der Vorgang wurde erfolgreich beendet.

java.lang.UnsatisfiedLinkError: Der Vorgang wurde erfolgreich beendet.

  newUnsatisifiedLinkError at jnr/ffi/provider/jffi/AsmRuntime.java:40
                      read at jnr/enxio/channels/Native$LibC$jnr$ffi$1:-1
                      read at jnr/enxio/channels/Native.java:101
                      read at jnr/enxio/channels/NativeDeviceChannel.java:65
                      read at org/jruby/util/io/PosixShim.java:157
                       run at org/jruby/util/io/OpenFile.java:1312
                       run at org/jruby/util/io/OpenFile.java:1302
               executeTask at org/jruby/RubyThread.java:1477
              readInternal at org/jruby/util/io/OpenFile.java:1375
                   fillbuf at org/jruby/util/io/OpenFile.java:1264
                  fillCbuf at org/jruby/util/io/OpenFile.java:1206
                  moreChar at org/jruby/util/io/OpenFile.java:1142
                appendline at org/jruby/util/io/OpenFile.java:1071
              getlineInner at org/jruby/RubyIO.java:772
                   getline at org/jruby/RubyIO.java:695
                   getline at org/jruby/RubyIO.java:683
                      gets at org/jruby/RubyIO.java:2216
                      call at org/jruby/RubyIO$INVOKER$i$gets.gen:-1
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
           INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
           commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
             yieldSpecific at org/jruby/runtime/IRBlockBody.java:80
             yieldSpecific at org/jruby/runtime/Block.java:136
             yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:450
                 interpret at org/jruby/ir/instructions/YieldInstr.java:74
            processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.java:187
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:111
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
                 callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                      call at org/jruby/runtime/callsite/CachingCallSite.java:177
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:332
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
           INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
           commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                      call at org/jruby/runtime/IRBlockBody.java:69
                      call at org/jruby/runtime/Block.java:126
                      call at org/jruby/RubyProc.java:289
                    call19 at org/jruby/RubyProc.java:273
                      call at org/jruby/RubyProc$INVOKER$i$0$0$call19.gen:-1
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:196
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
                      call at org/jruby/runtime/callsite/CachingCallSite.java:163
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:314
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
                      call at org/jruby/runtime/callsite/CachingCallSite.java:163
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:314
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
           INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
           commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
             yieldSpecific at org/jruby/runtime/IRBlockBody.java:80
             yieldSpecific at org/jruby/runtime/Block.java:136
                      loop at org/jruby/RubyKernel.java:1298
                      call at org/jruby/RubyKernel$INVOKER$s$0$0$loop.gen:-1
                      call at org/jruby/internal/runtime/methods/JavaMethod.java:497
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:298
                 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:428
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:355
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
           INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
           commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                   doYield at org/jruby/runtime/IRBlockBody.java:182
                     yield at org/jruby/runtime/BlockBody.java:111
                     yield at org/jruby/runtime/Block.java:167
                     enter at org/jruby/RubyContinuation.java:107
           rbCatch19Common at org/jruby/RubyKernel.java:1127
                 rbCatch19 at org/jruby/RubyKernel.java:1120
                      call at org/jruby/RubyKernel$INVOKER$s$rbCatch19.gen:-1
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
                 callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                      call at org/jruby/runtime/callsite/CachingCallSite.java:177
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:332
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:109
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:95
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:298
                 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:428
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:355
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                      call at org/jruby/runtime/callsite/CachingCallSite.java:131
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
           INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
           commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                   doYield at org/jruby/runtime/IRBlockBody.java:182
                     yield at org/jruby/runtime/BlockBody.java:111
                     yield at org/jruby/runtime/Block.java:167
                     enter at org/jruby/RubyContinuation.java:107
           rbCatch19Common at org/jruby/RubyKernel.java:1127
                 rbCatch19 at org/jruby/RubyKernel.java:1120
                      call at org/jruby/RubyKernel$INVOKER$s$rbCatch19.gen:-1
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
                 callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                      call at org/jruby/runtime/callsite/CachingCallSite.java:177
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:332
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                 interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
          INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
                      call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
                      call at org/jruby/runtime/callsite/CachingCallSite.java:163
               processCall at org/jruby/ir/interpreter/InterpreterEngine.java:314
                 interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
            INTERPRET_ROOT at org/jruby/ir/interpreter/Interpreter.java:112
                   execute at org/jruby/ir/interpreter/Interpreter.java:99
                   execute at org/jruby/ir/interpreter/Interpreter.java:35
                   execute at org/jruby/ir/IRTranslator.java:42
            runInterpreter at org/jruby/Ruby.java:839
                  loadFile at org/jruby/Ruby.java:2876
                      load at org/jruby/runtime/load/LibrarySearcher.java:243
                      load at org/jruby/runtime/load/LibrarySearcher.java:34
                      load at org/jruby/runtime/load/LoadService.java:343
                loadCommon at org/jruby/RubyKernel.java:987
                    load19 at org/jruby/RubyKernel.java:979
                      call at org/jruby/RubyKernel$INVOKER$s$0$1$load19.gen:-1
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:204
                      call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
              cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
                      call at org/jruby/runtime/callsite/CachingCallSite.java:163
         invokeOther3:load at -e:1
                    <main> at -e:1
       invokeWithArguments at java/lang/invoke/MethodHandle.java:627
                      load at org/jruby/ir/Compiler.java:95
                 runScript at org/jruby/Ruby.java:827
               runNormally at org/jruby/Ruby.java:746
               runNormally at org/jruby/Ruby.java:764
               runFromMain at org/jruby/Ruby.java:577
             doRunFromMain at org/jruby/Main.java:417
               internalRun at org/jruby/Main.java:305
                       run at org/jruby/Main.java:232
                      main at org/jruby/Main.java:204


Process finished with exit code 1

@enebo enebo reopened this Mar 28, 2017
@enebo enebo modified the milestones: JRuby 9.1.9.0, JRuby 9.1.3.0 Mar 28, 2017
@headius
Copy link
Member

headius commented Apr 19, 2017

Something strange about how it handles stdin when piping. Investigating.

@headius
Copy link
Member

headius commented Apr 19, 2017

I've committed a fix for the additional errors piping stdin to IRB. I do not believe this is really related to the original issue, but the original issue should also have been fixed.

If anyone sees more issues like this on 9.1.9.0 or higher, please open a NEW bug.

@theindra
Copy link

Great!!! Thank you.

When do you plan to publish an installer for jruby 9.1.9.0?

@MartinGross
Copy link

Just downloaded 9.1.9.0 and it works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants