Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yaauie
Created April 2, 2019 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaauie/f1e9968e61e607eba4e2653d3c552aff to your computer and use it in GitHub Desktop.
Save yaauie/f1e9968e61e607eba4e2653d3c552aff to your computer and use it in GitHub Desktop.
╭─{ yaauie@castrovel:~/src/jruby (✘ open3-on-9.2.6.x) }
╰─● bin/jruby -ropen3 -e '$stderr.puts(RUBY_DESCRIPTION); $stdout.puts(Open3.capture2("cat", stdin_data: "hello, world!"))'
jruby 9.2.6.0 (2.5.3) 2019-04-02 15ba00b Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS on 11.0.1+13-LTS +jit [darwin-x86_64]
^\2019-04-02 20:56:39
Full thread dump Java HotSpot(TM) 64-Bit Server VM (11.0.1+13-LTS mixed mode):
Threads class SMR info:
_java_thread_list=0x00007fa781d0d110, length=12, elements={
0x00007fa780002800, 0x00007fa781000800, 0x00007fa77f803800, 0x00007fa7808f3800,
0x00007fa78091b800, 0x00007fa77f80a800, 0x00007fa780014800, 0x00007fa780947000,
0x00007fa77f9d3000, 0x00007fa782827000, 0x00007fa780b3a000, 0x00007fa7809a1800
}
"main" #1 prio=5 os_prio=31 cpu=2702.30ms elapsed=140.69s tid=0x00007fa780002800 nid=0x2103 in Object.wait() [0x0000000103d7a000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(java.base@11.0.1/Native Method)
- waiting on <no object reference available>
at java.lang.Thread.join(java.base@11.0.1/Thread.java:1313)
- waiting to re-lock in wait() <0x000000070e4b0248> (a java.lang.Thread)
at org.jruby.internal.runtime.NativeThread.join(org.jruby.dist/NativeThread.java:75)
at org.jruby.RubyThread.join(org.jruby.dist/RubyThread.java:1134)
at org.jruby.RubyThread.value(org.jruby.dist/RubyThread.java:1175)
at org.jruby.RubyThread$INVOKER$i$0$0$value.call(org.jruby.dist/RubyThread$INVOKER$i$0$0$value.gen)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org.jruby.dist/CachingCallSite.java:325)
at org.jruby.runtime.callsite.CachingCallSite.call(org.jruby.dist/CachingCallSite.java:141)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(org.jruby.dist/InterpreterEngine.java:346)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(org.jruby.dist/StartupInterpreterEngine.java:72)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(org.jruby.dist/Interpreter.java:128)
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(org.jruby.dist/MixedModeIRBlockBody.java:151)
at org.jruby.runtime.IRBlockBody.doYield(org.jruby.dist/IRBlockBody.java:194)
at org.jruby.runtime.BlockBody.yield(org.jruby.dist/BlockBody.java:125)
at org.jruby.runtime.Block.yieldArray(org.jruby.dist/Block.java:177)
at org.jruby.ir.runtime.IRRuntimeHelpers.yield(org.jruby.dist/IRRuntimeHelpers.java:477)
at org.jruby.ir.instructions.YieldInstr.interpret(org.jruby.dist/YieldInstr.java:85)
at org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(org.jruby.dist/StartupInterpreterEngine.java:178)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(org.jruby.dist/StartupInterpreterEngine.java:104)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(org.jruby.dist/MixedModeIRMethod.java:105)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(org.jruby.dist/MixedModeIRMethod.java:92)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org.jruby.dist/CachingCallSite.java:303)
at org.jruby.runtime.callsite.CachingCallSite.call(org.jruby.dist/CachingCallSite.java:84)
at org.jruby.ir.instructions.CallBase.interpret(org.jruby.dist/CallBase.java:547)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(org.jruby.dist/InterpreterEngine.java:362)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(org.jruby.dist/StartupInterpreterEngine.java:72)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(org.jruby.dist/MixedModeIRMethod.java:105)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(org.jruby.dist/MixedModeIRMethod.java:92)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org.jruby.dist/CachingCallSite.java:303)
at org.jruby.runtime.callsite.CachingCallSite.call(org.jruby.dist/CachingCallSite.java:84)
at org.jruby.runtime.callsite.CachingCallSite.callIter(org.jruby.dist/CachingCallSite.java:91)
at org.jruby.ir.instructions.CallBase.interpret(org.jruby.dist/CallBase.java:544)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(org.jruby.dist/InterpreterEngine.java:362)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(org.jruby.dist/StartupInterpreterEngine.java:72)
at org.jruby.ir.interpreter.InterpreterEngine.interpret(org.jruby.dist/InterpreterEngine.java:92)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(org.jruby.dist/MixedModeIRMethod.java:204)
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(org.jruby.dist/MixedModeIRMethod.java:191)
at org.jruby.internal.runtime.methods.DynamicMethod.call(org.jruby.dist/DynamicMethod.java:207)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org.jruby.dist/CachingCallSite.java:367)
at org.jruby.runtime.callsite.CachingCallSite.call(org.jruby.dist/CachingCallSite.java:203)
at DashE.invokeOther5:capture2(-e:1)
at DashE.RUBY$script(-e:1)
at java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.base@11.0.1/DirectMethodHandle$Holder)
at java.lang.invoke.LambdaForm$MH/0x00000008005aa440.invoke(java.base@11.0.1/LambdaForm$MH)
at java.lang.invoke.LambdaForm$MH/0x00000008005ab840.invoke(java.base@11.0.1/LambdaForm$MH)
at java.lang.invoke.Invokers$Holder.invokeExact_MT(java.base@11.0.1/Invokers$Holder)
at java.lang.invoke.MethodHandle.invokeWithArguments(java.base@11.0.1/MethodHandle.java:710)
at org.jruby.ir.Compiler$1.load(org.jruby.dist/Compiler.java:94)
at org.jruby.Ruby.runScript(org.jruby.dist/Ruby.java:854)
at org.jruby.Ruby.runNormally(org.jruby.dist/Ruby.java:777)
at org.jruby.Ruby.runNormally(org.jruby.dist/Ruby.java:795)
at org.jruby.Ruby.runFromMain(org.jruby.dist/Ruby.java:607)
at org.jruby.Main.doRunFromMain(org.jruby.dist/Main.java:415)
at org.jruby.Main.internalRun(org.jruby.dist/Main.java:307)
at org.jruby.Main.run(org.jruby.dist/Main.java:234)
at org.jruby.Main.main(org.jruby.dist/Main.java:206)
"Reference Handler" #2 daemon prio=10 os_prio=31 cpu=0.74ms elapsed=140.66s tid=0x00007fa781000800 nid=0x3e03 waiting on condition [0x000070000707d000]
java.lang.Thread.State: RUNNABLE
at java.lang.ref.Reference.waitForReferencePendingList(java.base@11.0.1/Native Method)
at java.lang.ref.Reference.processPendingReferences(java.base@11.0.1/Reference.java:241)
at java.lang.ref.Reference$ReferenceHandler.run(java.base@11.0.1/Reference.java:213)
"Finalizer" #3 daemon prio=8 os_prio=31 cpu=0.35ms elapsed=140.66s tid=0x00007fa77f803800 nid=0x4103 in Object.wait() [0x0000700007280000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(java.base@11.0.1/Native Method)
- waiting on <0x0000000700001400> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:155)
- waiting to re-lock in wait() <0x0000000700001400> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:176)
at java.lang.ref.Finalizer$FinalizerThread.run(java.base@11.0.1/Finalizer.java:170)
"Signal Dispatcher" #4 daemon prio=9 os_prio=31 cpu=0.14ms elapsed=140.64s tid=0x00007fa7808f3800 nid=0x4f0b waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" #5 daemon prio=9 os_prio=31 cpu=1642.78ms elapsed=140.64s tid=0x00007fa78091b800 nid=0x5203 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task
"C1 CompilerThread0" #8 daemon prio=9 os_prio=31 cpu=1311.76ms elapsed=140.64s tid=0x00007fa77f80a800 nid=0x5503 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task
"Sweeper thread" #9 daemon prio=9 os_prio=31 cpu=8.74ms elapsed=140.64s tid=0x00007fa780014800 nid=0x5803 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Common-Cleaner" #10 daemon prio=8 os_prio=31 cpu=0.81ms elapsed=140.58s tid=0x00007fa780947000 nid=0x5b03 in Object.wait() [0x0000700007a8f000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(java.base@11.0.1/Native Method)
- waiting on <no object reference available>
at java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:155)
- waiting to re-lock in wait() <0x0000000700001968> (a java.lang.ref.ReferenceQueue$Lock)
at jdk.internal.ref.CleanerImpl.run(java.base@11.0.1/CleanerImpl.java:148)
at java.lang.Thread.run(java.base@11.0.1/Thread.java:834)
at jdk.internal.misc.InnocuousThread.run(java.base@11.0.1/InnocuousThread.java:134)
"Service Thread" #11 daemon prio=9 os_prio=31 cpu=0.05ms elapsed=140.43s tid=0x00007fa77f9d3000 nid=0x6403 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"jnr.ffi.util.ref.internal.Finalizer" #15 daemon prio=10 os_prio=31 cpu=0.14ms elapsed=137.49s tid=0x00007fa782827000 nid=0x7503 in Object.wait() [0x00007000087b0000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(java.base@11.0.1/Native Method)
- waiting on <0x000000070e49c748> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:155)
- waiting to re-lock in wait() <0x000000070e49c748> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:176)
at jnr.ffi.util.ref.internal.Finalizer.run(org.jruby.dist/Finalizer.java:180)
at java.lang.Thread.run(java.base@11.0.1/Thread.java:834)
"Ruby-0-Thread-1: /Users/yaauie/src/jruby/lib/ruby/stdlib/open3.rb:207" #16 daemon prio=5 os_prio=31 cpu=0.50ms elapsed=137.48s tid=0x00007fa780b3a000 nid=0x7803 runnable [0x00007000089b3000]
java.lang.Thread.State: RUNNABLE
at com.kenai.jffi.Foreign.invokeN3O1(org.jruby.dist/Native Method)
at com.kenai.jffi.Invoker.invokeN3(org.jruby.dist/Invoker.java:1061)
at jnr.posix.UnixLibC$jnr$ffi$0.waitpid(Unknown Source)
at jnr.posix.BaseNativePOSIX.waitpid(org.jruby.dist/BaseNativePOSIX.java:512)
at jnr.posix.CheckedPOSIX.waitpid(org.jruby.dist/CheckedPOSIX.java:403)
at jnr.posix.LazyPOSIX.waitpid(org.jruby.dist/LazyPOSIX.java:398)
at jnr.posix.LazyPOSIX.waitpid(org.jruby.dist/LazyPOSIX.java:394)
at org.jruby.RubyProcess$2.call(org.jruby.dist/RubyProcess.java:1368)
at org.jruby.runtime.CallBlock.call(org.jruby.dist/CallBlock.java:77)
at org.jruby.runtime.Block.call(org.jruby.dist/Block.java:124)
at org.jruby.RubyProc.call(org.jruby.dist/RubyProc.java:286)
at org.jruby.RubyProc.call(org.jruby.dist/RubyProc.java:270)
at org.jruby.internal.runtime.RubyRunnable.run(org.jruby.dist/RubyRunnable.java:105)
at java.lang.Thread.run(java.base@11.0.1/Thread.java:834)
"Ruby-0-Thread-2: /Users/yaauie/src/jruby/lib/ruby/stdlib/open3.rb:322" #17 daemon prio=5 os_prio=31 cpu=16.98ms elapsed=137.48s tid=0x00007fa7809a1800 nid=0x7b03 runnable [0x0000700008bb5000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.KQueue.poll(java.base@11.0.1/Native Method)
at sun.nio.ch.KQueueSelectorImpl.doSelect(java.base@11.0.1/KQueueSelectorImpl.java:122)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(java.base@11.0.1/SelectorImpl.java:124)
- locked <0x000000070e384f68> (a sun.nio.ch.Util$2)
- locked <0x000000070e384d90> (a sun.nio.ch.KQueueSelectorImpl)
at sun.nio.ch.SelectorImpl.select(java.base@11.0.1/SelectorImpl.java:141)
at org.jruby.RubyThread.select(org.jruby.dist/RubyThread.java:1929)
- locked <0x000000070e5ec338> (a java.lang.Object)
at org.jruby.RubyThread.select(org.jruby.dist/RubyThread.java:1850)
at org.jruby.util.io.OpenFile.readInternal(org.jruby.dist/OpenFile.java:1383)
at org.jruby.util.io.OpenFile.ioBufread(org.jruby.dist/OpenFile.java:1735)
at org.jruby.util.io.OpenFile.bufreadCall(org.jruby.dist/OpenFile.java:1775)
at org.jruby.util.io.OpenFile.fread(org.jruby.dist/OpenFile.java:1792)
at org.jruby.util.io.OpenFile.readAll(org.jruby.dist/OpenFile.java:1696)
at org.jruby.RubyIO.read(org.jruby.dist/RubyIO.java:3061)
at org.jruby.RubyIO.read(org.jruby.dist/RubyIO.java:3043)
at org.jruby.RubyIO$INVOKER$i$read.call(org.jruby.dist/RubyIO$INVOKER$i$read.gen)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org.jruby.dist/CachingCallSite.java:325)
at org.jruby.runtime.callsite.CachingCallSite.call(org.jruby.dist/CachingCallSite.java:141)
at org.jruby.ir.interpreter.InterpreterEngine.processCall(org.jruby.dist/InterpreterEngine.java:346)
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(org.jruby.dist/StartupInterpreterEngine.java:72)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(org.jruby.dist/Interpreter.java:128)
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(org.jruby.dist/MixedModeIRBlockBody.java:151)
at org.jruby.runtime.IRBlockBody.call(org.jruby.dist/IRBlockBody.java:79)
at org.jruby.runtime.Block.call(org.jruby.dist/Block.java:124)
at org.jruby.RubyProc.call(org.jruby.dist/RubyProc.java:286)
at org.jruby.RubyProc.call(org.jruby.dist/RubyProc.java:270)
at org.jruby.internal.runtime.RubyRunnable.run(org.jruby.dist/RubyRunnable.java:105)
at java.lang.Thread.run(java.base@11.0.1/Thread.java:834)
"VM Thread" os_prio=31 cpu=15.91ms elapsed=140.67s tid=0x00007fa77f802800 nid=0x3b03 runnable
"GC Thread#0" os_prio=31 cpu=17.53ms elapsed=140.69s tid=0x00007fa780802800 nid=0x2f03 runnable
"GC Thread#1" os_prio=31 cpu=26.34ms elapsed=139.93s tid=0x00007fa780ac5000 nid=0x6803 runnable
"GC Thread#2" os_prio=31 cpu=18.36ms elapsed=139.93s tid=0x00007fa78020d800 nid=0x6a03 runnable
"GC Thread#3" os_prio=31 cpu=18.41ms elapsed=139.93s tid=0x00007fa77f8d1800 nid=0x6c03 runnable
"GC Thread#4" os_prio=31 cpu=17.79ms elapsed=139.93s tid=0x00007fa78032d800 nid=0x6e03 runnable
"GC Thread#5" os_prio=31 cpu=20.00ms elapsed=139.93s tid=0x00007fa78032e000 nid=0x7003 runnable
"G1 Main Marker" os_prio=31 cpu=0.68ms elapsed=140.69s tid=0x00007fa780843800 nid=0x3103 runnable
"G1 Conc#0" os_prio=31 cpu=15.90ms elapsed=140.69s tid=0x00007fa780844800 nid=0x3503 runnable
"G1 Conc#1" os_prio=31 cpu=14.24ms elapsed=139.49s tid=0x00007fa780b15800 nid=0x6107 runnable
"G1 Refine#0" os_prio=31 cpu=0.35ms elapsed=140.69s tid=0x00007fa7808e5000 nid=0x3703 runnable
"G1 Young RemSet Sampling" os_prio=31 cpu=19.96ms elapsed=140.69s tid=0x00007fa7808e6000 nid=0x3903 runnable
"VM Periodic Task Thread" os_prio=31 cpu=70.47ms elapsed=140.44s tid=0x00007fa7808ee000 nid=0x6603 waiting on condition
JNI global refs: 17, weak refs: 0
Heap
garbage-first heap total 262144K, used 31234K [0x0000000700000000, 0x0000000800000000)
region size 1024K, 29 young (29696K), 8 survivors (8192K)
Metaspace used 38253K, capacity 38892K, committed 39424K, reserved 1083392K
class space used 5861K, capacity 6112K, committed 6144K, reserved 1048576K
^C
pid 83618 INT (signal 2)
bin/jruby -ropen3 -e 8.20s user 0.73s system 6% cpu 2:24.13 total
[error: 130 (144.000s)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment