Details

      Description

      From the test summary:
      "Test checks case when target application finishes execution and jstat didn't complete work.
      jstat is started with interval = 100 (jstat -compiler 100) and monitored application finishes
      after 500ms. This shouldn't cause crash or hang in target application or in jstat."

      In the JDK9 b67 emb PIT the jstad process is still alive after 6 minutes.

      #section:main
      ----------messages:(114/6003)----------
      command: main JStatInterval
      reason: User specified action: run main JStatInterval
      Timeout information:
      Running jstack on process 13953
      2015-06-02 07:08:30
      Full thread dump Java HotSpot(TM) Embedded Client VM (1.9.0-internal-20150528184118.amurillo.jdk9-hs-2015-05--b00 compiled mode):

      "Attach Listener" #16 daemon prio=9 os_prio=0 tid=0x01312800 nid=0x3702 waiting on condition [0x00000000]
         java.lang.Thread.State: RUNNABLE

      "Thread-4" #15 daemon prio=5 os_prio=0 tid=0x0131a800 nid=0x369e runnable [0xabb9a000]
         java.lang.Thread.State: RUNNABLE
      at java.io.FileInputStream.readBytes(Native Method)
      at java.io.FileInputStream.read(FileInputStream.java:255)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      - locked <0xac827828> (a java.lang.ProcessImpl$ProcessPipeInputStream)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      - locked <0xac827850> (a java.io.BufferedInputStream)
      at java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.testlibrary.StreamPumper.run(StreamPumper.java:112)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:265)
      at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:191)
      at java.lang.Thread.run(Thread.java:745)

      "Thread-3" #14 daemon prio=5 os_prio=0 tid=0x01319000 nid=0x369d runnable [0xabbea000]
         java.lang.Thread.State: RUNNABLE
      at java.io.FileInputStream.readBytes(Native Method)
      at java.io.FileInputStream.read(FileInputStream.java:255)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      - locked <0xac82cd70> (a java.lang.ProcessImpl$ProcessPipeInputStream)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      - locked <0xac827c88> (a java.io.BufferedInputStream)
      at java.io.FilterInputStream.read(FilterInputStream.java:107)
      at jdk.testlibrary.StreamPumper.run(StreamPumper.java:112)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:265)
      at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:191)
      at java.lang.Thread.run(Thread.java:745)

      "process reaper" #13 daemon prio=10 os_prio=0 tid=0x01318000 nid=0x369c runnable [0xabc01000]
         java.lang.Thread.State: RUNNABLE
      at java.lang.ProcessImpl.waitForProcessExit(Native Method)
      at java.lang.ProcessImpl.lambda$initStreams$3(ProcessImpl.java:382)
      at java.lang.ProcessImpl$$Lambda$12/20247524.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      "MainThread" #9 prio=5 os_prio=0 tid=0x0128ec00 nid=0x368d in Object.wait() [0xabd08000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:508)
      at java.lang.ProcessImpl.waitFor(ProcessImpl.java:488)
      - locked <0xac827fa0> (a java.lang.ProcessImpl)
      at jdk.testlibrary.ProcessTools$ProcessImpl.waitFor(ProcessTools.java:473)
      at JStatInterval.main(JStatInterval.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:502)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:745)

      "Service Thread" #7 daemon prio=9 os_prio=0 tid=0x0117b800 nid=0x368b runnable [0x00000000]
         java.lang.Thread.State: RUNNABLE

      "Sweeper thread" #6 daemon prio=9 os_prio=0 tid=0x010fd400 nid=0x368a runnable [0x00000000]
         java.lang.Thread.State: RUNNABLE

      "C1 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x010fbc00 nid=0x3689 waiting on condition [0x00000000]
         java.lang.Thread.State: RUNNABLE

      "Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x010f8400 nid=0x3688 runnable [0x00000000]
         java.lang.Thread.State: RUNNABLE

      "Finalizer" #3 daemon prio=8 os_prio=0 tid=0x010e3800 nid=0x3687 in Object.wait() [0xac06d000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
      - locked <0xaf082f28> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:213)

      "Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x010e2000 nid=0x3686 in Object.wait() [0xb446c000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:508)
      at java.lang.ref.Reference.tryHandlePending(Reference.java:192)
      - locked <0xaf082588> (a java.lang.ref.Reference$Lock)
      at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:154)

      "main" #1 prio=5 os_prio=0 tid=0x0108e800 nid=0x3684 in Object.wait() [0xb6678000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Thread.join(Thread.java:1249)
      - locked <0xaf082410> (a java.lang.Thread)
      at java.lang.Thread.join(Thread.java:1323)
      at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:69)

      "VM Thread" os_prio=0 tid=0x010d4400 nid=0x3685 runnable

      "VM Periodic Task Thread" os_prio=0 tid=0x0117d800 nid=0x368c waiting on condition

      JNI global references: 239

      --- Timeout information end.
      elapsed time (seconds): 361.589
      ----------System.out:(1428/92587)----------
      Command line: [/export/local/aurora/CommonData/jdk/bin/java -cp /export/local/aurora/sandbox/results/workDir/classes/sun/tools/jstat:/export/local/aurora/sandbox/results/workDir/classes/lib/testlibrary -XX:+UsePerfData JStatInterval$Application ]
      [application]:/export/local/aurora/CommonData/jdk/bin/java -cp /export/local/aurora/sandbox/results/workDir/classes/sun/tools/jstat:/export/local/aurora/sandbox/results/workDir/classes/lib/testlibrary -XX:+UsePerfData JStatInterval$Application
      [application] READY
      [jstat]:/export/local/aurora/CommonData/jdk/bin/jstat -compiler 13966 100
      [jstat] Compiled Failed Invalid Time FailedType FailedMethod
      [jstat] 23 0 0 0.19 0
      [jstat] 23 0 0 0.19 0
      ...
      test result: Error. Program `/export/local/aurora/CommonData/jdk/bin/java' timed out!


        Attachments

          Activity

            People

            • Assignee:
              skovalev Sergei Kovalev (Inactive)
              Reporter:
              ykantser Yekaterina Kantserova (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: