Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b147
    • CPU:
      generic
    • OS:
      generic

      Description

      $jshell -R-hoge-foo-bar
      (It never starts session forever)

      This is the stackdump:
      $ ./build/linux-x86_64-normal-server-release/images/jdk/bin/jstack 24990
      2016-09-22 12:48:31
      Full thread dump OpenJDK 64-Bit Server VM (9-internal+0-2016-09-21-124817.bitterfox.kulla20160824 mixed mode):

      "Attach Listener" #20 daemon prio=9 os_prio=0 tid=0x00007f80fc001000 nid=0x64a5 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "Thread-3" #17 daemon prio=5 os_prio=0 tid=0x00007f815c4ff800 nid=0x61c6 in Object.wait() [0x00007f80db9fc000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-internal/Native Method)
      - waiting on <0x0000000084320c48> (a java.lang.Object)
      at java.lang.Object.wait(java.base@9-internal/Object.java:516)
      at jdk.jshell.SourceCodeAnalysisImpl.waitIndexingNotSuspended(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:1501)
      - waiting to re-lock in wait() <0x0000000084320c48> (a java.lang.Object)
      at jdk.jshell.SourceCodeAnalysisImpl.access$300(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:140)
      at jdk.jshell.SourceCodeAnalysisImpl$5.visitFile(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:1663)
      at jdk.jshell.SourceCodeAnalysisImpl$5.visitFile(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:1646)
      at java.nio.file.Files.walkFileTree(java.base@9-internal/Files.java:2695)
      at java.nio.file.Files.walkFileTree(java.base@9-internal/Files.java:2767)
      at jdk.jshell.SourceCodeAnalysisImpl.doIndex(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:1646)
      at jdk.jshell.SourceCodeAnalysisImpl.lambda$indexForPath$55(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:1594)
      at jdk.jshell.SourceCodeAnalysisImpl$$Lambda$180/1391227095.apply(jdk.jshell@9-internal/Unknown Source)
      at java.util.HashMap.compute(java.base@9-internal/HashMap.java:1232)
      at jdk.jshell.SourceCodeAnalysisImpl.indexForPath(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:1589)
      at jdk.jshell.SourceCodeAnalysisImpl.refreshIndexes(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:1552)
      at jdk.jshell.SourceCodeAnalysisImpl.lambda$new$2(jdk.jshell@9-internal/SourceCodeAnalysisImpl.java:164)
      at jdk.jshell.SourceCodeAnalysisImpl$$Lambda$176/992846223.run(jdk.jshell@9-internal/Unknown Source)
      at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514)
      at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:264)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1161)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:635)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:843)

      "NonBlockingInputStreamThread" #16 daemon prio=5 os_prio=0 tid=0x00007f815c28e800 nid=0x61c5 in Object.wait() [0x00007f80dbefd000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-internal/Native Method)
      - waiting on <0x0000000084320478> (a jdk.internal.jline.internal.NonBlockingInputStream)
      at jdk.internal.jline.internal.NonBlockingInputStream.run(jdk.internal.le@9-internal/NonBlockingInputStream.java:278)
      - waiting to re-lock in wait() <0x0000000084320478> (a jdk.internal.jline.internal.NonBlockingInputStream)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:843)

      "Thread-1" #15 daemon prio=5 os_prio=0 tid=0x00007f815c273000 nid=0x61c4 in Object.wait() [0x00007f80dbffe000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-internal/Native Method)
      - waiting on <0x0000000084320690> (a jdk.internal.jshell.tool.StopDetectingInputStream)
      at java.lang.Object.wait(java.base@9-internal/Object.java:516)
      at jdk.internal.jshell.tool.StopDetectingInputStream.waitInputNeeded(jdk.jshell@9-internal/StopDetectingInputStream.java:150)
      - waiting to re-lock in wait() <0x0000000084320690> (a jdk.internal.jshell.tool.StopDetectingInputStream)
      at jdk.internal.jshell.tool.StopDetectingInputStream.access$000(jdk.jshell@9-internal/StopDetectingInputStream.java:32)
      at jdk.internal.jshell.tool.StopDetectingInputStream$1.run(jdk.jshell@9-internal/StopDetectingInputStream.java:64)

      "Timer-0" #11 daemon prio=5 os_prio=0 tid=0x00007f815c1f8800 nid=0x61b6 in Object.wait() [0x00007f81141f5000]
         java.lang.Thread.State: TIMED_WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-internal/Native Method)
      - waiting on <0x000000008421a618> (a java.util.TaskQueue)
      at java.util.TimerThread.mainLoop(java.base@9-internal/Timer.java:552)
      - waiting to re-lock in wait() <0x000000008421a618> (a java.util.TaskQueue)
      at java.util.TimerThread.run(java.base@9-internal/Timer.java:505)

      "Service Thread" #10 daemon prio=9 os_prio=0 tid=0x00007f815c1bc800 nid=0x61b4 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "Common-Cleaner" #9 daemon prio=8 os_prio=0 tid=0x00007f815c129000 nid=0x61b3 in Object.wait() [0x00007f81146fb000]
         java.lang.Thread.State: TIMED_WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-internal/Native Method)
      - waiting on <0x000000008421a108> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(java.base@9-internal/ReferenceQueue.java:151)
      - waiting to re-lock in wait() <0x000000008421a108> (a java.lang.ref.ReferenceQueue$Lock)
      at jdk.internal.ref.CleanerImpl.run(java.base@9-internal/CleanerImpl.java:148)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
      at jdk.internal.misc.InnocuousThread.run(java.base@9-internal/InnocuousThread.java:122)

      "Sweeper thread" #8 daemon prio=9 os_prio=0 tid=0x00007f815c0fb800 nid=0x61b2 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "C1 CompilerThread2" #7 daemon prio=9 os_prio=0 tid=0x00007f815c0f9800 nid=0x61b1 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         No compile task

      "C2 CompilerThread1" #6 daemon prio=9 os_prio=0 tid=0x00007f815c0f7800 nid=0x61b0 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         No compile task

      "C2 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x00007f815c0f5800 nid=0x61af waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         No compile task

      "Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007f815c0f3800 nid=0x61ae runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007f815c0d0000 nid=0x61ad in Object.wait() [0x00007f811c10d000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-internal/Native Method)
      - waiting on <0x000000008421a630> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(java.base@9-internal/ReferenceQueue.java:151)
      - waiting to re-lock in wait() <0x000000008421a630> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(java.base@9-internal/ReferenceQueue.java:172)
      at java.lang.ref.Finalizer$FinalizerThread.run(java.base@9-internal/Finalizer.java:216)

      "Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f815c0cc000 nid=0x61ac waiting on condition [0x00007f811c20e000]
         java.lang.Thread.State: RUNNABLE
      at java.lang.ref.Reference.waitForReferencePendingList(java.base@9-internal/Native Method)
      at java.lang.ref.Reference.processPendingReferences(java.base@9-internal/Reference.java:163)
      at java.lang.ref.Reference.access$000(java.base@9-internal/Reference.java:44)
      at java.lang.ref.Reference$ReferenceHandler.run(java.base@9-internal/Reference.java:138)

      "main" #1 prio=5 os_prio=0 tid=0x00007f815c011800 nid=0x619f runnable [0x00007f816452b000]
         java.lang.Thread.State: RUNNABLE
      at java.net.PlainSocketImpl.socketAccept(java.base@9-internal/Native Method)
      at java.net.AbstractPlainSocketImpl.accept(java.base@9-internal/AbstractPlainSocketImpl.java:459)
      at java.net.ServerSocket.implAccept(java.base@9-internal/ServerSocket.java:551)
      at java.net.ServerSocket.accept(java.base@9-internal/ServerSocket.java:519)
      at com.sun.tools.jdi.SocketTransportService.accept(jdk.jdi@9-internal/SocketTransportService.java:351)
      at com.sun.tools.jdi.GenericListeningConnector.accept(jdk.jdi@9-internal/GenericListeningConnector.java:151)
      at jdk.jshell.execution.JDIInitiator.listenTarget(jdk.jshell@9-internal/JDIInitiator.java:145)
      at jdk.jshell.execution.JDIInitiator.<init>(jdk.jshell@9-internal/JDIInitiator.java:83)
      at jdk.jshell.execution.JDIDefaultExecutionControl.create(jdk.jshell@9-internal/JDIDefaultExecutionControl.java:121)
      at jdk.jshell.execution.JDIDefaultExecutionControl.lambda$listen$1(jdk.jshell@9-internal/JDIDefaultExecutionControl.java:92)
      at jdk.jshell.execution.JDIDefaultExecutionControl$$Lambda$147/1772160903.generate(jdk.jshell@9-internal/Unknown Source)
      at jdk.jshell.execution.Util.lambda$failOverExecutionControlGenerator$0(jdk.jshell@9-internal/Util.java:81)
      at jdk.jshell.execution.Util$$Lambda$148/297927961.generate(jdk.jshell@9-internal/Unknown Source)
      at jdk.jshell.JShell.executionControl(jdk.jshell@9-internal/JShell.java:727)
      at jdk.jshell.Eval.load(jdk.jshell@9-internal/Eval.java:725)
      at jdk.jshell.Eval.compileAndLoad(jdk.jshell@9-internal/Eval.java:681)
      at jdk.jshell.Eval.declare(jdk.jshell@9-internal/Eval.java:535)
      at jdk.jshell.Eval.eval(jdk.jshell@9-internal/Eval.java:118)
      at jdk.jshell.JShell.eval(jdk.jshell@9-internal/JShell.java:420)
      at jdk.internal.jshell.tool.JShellTool.processCompleteSource(jdk.jshell@9-internal/JShellTool.java:2223)
      at jdk.internal.jshell.tool.JShellTool.processSource(jdk.jshell@9-internal/JShellTool.java:2211)
      at jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(jdk.jshell@9-internal/JShellTool.java:858)
      at jdk.internal.jshell.tool.JShellTool.run(jdk.jshell@9-internal/JShellTool.java:838)
      at jdk.internal.jshell.tool.JShellTool.startUpRun(jdk.jshell@9-internal/JShellTool.java:775)
      at jdk.internal.jshell.tool.JShellTool.resetState(jdk.jshell@9-internal/JShellTool.java:732)
      at jdk.internal.jshell.tool.JShellTool.start(jdk.jshell@9-internal/JShellTool.java:518)
      at jdk.internal.jshell.tool.JShellTool.start(jdk.jshell@9-internal/JShellTool.java:492)
      at jdk.internal.jshell.tool.JShellTool.main(jdk.jshell@9-internal/JShellTool.java:482)

      "VM Thread" os_prio=0 tid=0x00007f815c0c0000 nid=0x61ab runnable

      "GC Thread#0" os_prio=0 tid=0x00007f815c027800 nid=0x61a0 runnable

      "GC Thread#1" os_prio=0 tid=0x00007f815c028800 nid=0x61a1 runnable

      "GC Thread#2" os_prio=0 tid=0x00007f815c02a800 nid=0x61a2 runnable

      "GC Thread#3" os_prio=0 tid=0x00007f815c02c000 nid=0x61a3 runnable

      "G1 Main Marker" os_prio=0 tid=0x00007f815c05a800 nid=0x61a9 runnable

      "G1 Marker#0" os_prio=0 tid=0x00007f815c05c800 nid=0x61aa runnable

      "G1 Refine#0" os_prio=0 tid=0x00007f815c033800 nid=0x61a7 runnable

      "G1 Refine#1" os_prio=0 tid=0x00007f815c031800 nid=0x61a6 runnable

      "G1 Refine#2" os_prio=0 tid=0x00007f815c030000 nid=0x61a5 runnable

      "G1 Refine#3" os_prio=0 tid=0x00007f815c02e000 nid=0x61a4 runnable

      "G1 Young RemSet Sampling" os_prio=0 tid=0x00007f815c035000 nid=0x61a8 runnable

      "VM Periodic Task Thread" os_prio=0 tid=0x00007f815c1bf000 nid=0x61b5 waiting on condition

      JNI global references: 1439


        Attachments

          Activity

            People

            Assignee:
            rfield Robert Field
            Reporter:
            shinyafox Shinya Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: