Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222499

serviceability/sa/JhsdbThreadInfoTest.java fails with "AssertionFailure: illegal bci"

XMLWordPrintable

      Test serviceability/sa/JhsdbThreadInfoTest.java might fail intermittently with following error:
      Started LingeredApp with pid 11511
      Attaching to process ID 11511, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 13-ea+15
      Deadlock Detection:

      No deadlocks found.

      "Common-Cleaner" #22 daemon prio=8 tid=0x00007f7020726000 nid=0x2d21 in Object.wait() [0x00007f6fe74f3000]
         java.lang.Thread.State: TIMED_WAITING (on object monitor)
         JavaThread state: _thread_blocked
       - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
      - waiting on <0x00000000ffd50140> (a java.lang.ref.ReferenceQueue$Lock)
       - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=155 (Interpreted frame)
      - locked <0x00000000ffd50140> (a java.lang.ref.ReferenceQueue$Lock)
       - jdk.internal.ref.CleanerImpl.run() @bci=65, line=148 (Interpreted frame)
       - java.lang.Thread.run() @bci=11, line=835 (Interpreted frame)
       - jdk.internal.misc.InnocuousThread.run() @bci=20, line=134 (Interpreted frame)


      "Signal Dispatcher" #4 daemon prio=9 tid=0x00007f70206b9000 nid=0x2d14 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         JavaThread state: _thread_blocked


      "Finalizer" #3 daemon prio=8 tid=0x00007f70206b1000 nid=0x2d12 in Object.wait() [0x00007f6fe7ffe000]
         java.lang.Thread.State: WAITING (on object monitor)
         JavaThread state: _thread_blocked
       - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
      - waiting on <0x00000000ffd02790> (a java.lang.ref.ReferenceQueue$Lock)
       - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=155 (Interpreted frame)
      - locked <0x00000000ffd02790> (a java.lang.ref.ReferenceQueue$Lock)
       - java.lang.ref.ReferenceQueue.remove() @bci=2, line=176 (Interpreted frame)
       - java.lang.ref.Finalizer$FinalizerThread.run() @bci=37, line=170 (Interpreted frame)


      "Reference Handler" #2 daemon prio=10 tid=0x00007f70206ae800 nid=0x2d11 waiting on condition [0x00007f6ff4167000]
         java.lang.Thread.State: RUNNABLE
         JavaThread state: _thread_blocked
       - java.lang.ref.Reference.waitForReferencePendingList() @bci=0 (Interpreted frame)
       - java.lang.ref.Reference.processPendingReferences() @bci=0, line=241 (Interpreted frame)
       - java.lang.ref.Reference$ReferenceHandler.run() @bci=0, line=213 (Interpreted frame)


      "main" #1 prio=5 tid=0x00007f702001e800 nid=0x2cf8 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         JavaThread state: _thread_in_java
       - java.lang.ThreadLocal.get() @bci=660216880Error occurred during stack walking:



      ----------System.err:(30/2770)----------
      Command line: ['/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk/13/15/linux-x64-debug.jdk/jdk-13/fastdebug/bin/java' '-XX:MaxRAMPercentage=1' '-cp' '/scratch/opt/mach5/mesos/work_dir/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S132203/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/24ec3542-d5c8-4176-a682-1f1120beedc0/runs/8dc1c933-d16c-421c-98c0-e813d35ab562/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/5/serviceability/sa/JhsdbThreadInfoTest.d:/scratch/opt/mach5/mesos/work_dir/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S132203/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/24ec3542-d5c8-4176-a682-1f1120beedc0/runs/8dc1c933-d16c-421c-98c0-e813d35ab562/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/5/test/lib' 'jdk.test.lib.apps.LingeredApp' '79dcde6c-d74b-4373-b6d9-2c2b0b46ea0f.lck' ]
      sun.jvm.hotspot.utilities.AssertionFailure: illegal bci
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.ConstMethod.getLineNumberFromBCI(ConstMethod.java:297)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Method.getLineNumberFromBCI(Method.java:282)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:86)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:45)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.run(JStack.java:67)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.runWithArgs(JStack.java:90)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJSTACK(SALauncher.java:259)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:450)

       LingeredApp stdout: [];
       LingeredApp stderr: []
       LingeredApp exitValue = 0
      java.lang.Error: Couldn't start jhsdb, attach to LingeredApp or match ThreadName: java.lang.RuntimeException: Stderr has output other than VM warnings
      at JhsdbThreadInfoTest.main(JhsdbThreadInfoTest.java:91)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:835)

      JavaTest Message: Test threw exception: java.lang.Error
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.Error: Couldn't start jhsdb, attach to LingeredApp or match ThreadName: java.lang.RuntimeException: Stderr has output other than VM warnings


      test result: Failed. Execution failed: `main' threw exception: java.lang.Error: Couldn't start jhsdb, attach to LingeredApp or match ThreadName: java.lang.RuntimeException: Stderr has output other than VM warnings

            cjplummer Chris Plummer
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: