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

tests failing intermittently with Error attaching to process: Can't create thread_db agent! on Solaris

XMLWordPrintable

    • generic
    • solaris

      The following jhsdb test failed in a recent Solaris X64 'release' config:

      sun/tools/jhsdb/BasicLauncherTest.java

      Here is a snippet of the .jtr file:

      ----------System.err:(48/2983)----------
      Attaching to process 4368, please wait...
      javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
      javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
      finding class loader instances ..done.
      computing per loader stat ..done.
      please wait.. computing liveness..............................................done.
      Error attaching to process: Can't create thread_db agent!
      sun.jvm.hotspot.debugger.DebuggerException: Can't create thread_db agent!
              at jdk.hotspot.agent/sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.attach0(Native Method)
              at jdk.hotspot.agent/sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.attach(ProcDebuggerLocal.java:146)
              at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:672)
              at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupDebuggerSolaris(HotSpotAgent.java:488)
              at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:334)
              at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:305)
              at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:141)
              at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
              at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
              at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.main(JMap.java:176)
              at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJMAP(SALauncher.java:326)
              at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:455)

       stdout: [Attaching to process ID 4484, please wait...
      ];
       stderr: []
       exitValue = 1

      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'compiler detected' missing from stdout/stderr

              at BasicLauncherTest.launch(BasicLauncherTest.java:187)
              at BasicLauncherTest.launch(BasicLauncherTest.java:197)
              at BasicLauncherTest.main(BasicLauncherTest.java:213)
              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:564)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
              at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.lang.RuntimeException: 'compiler detected' missing from stdout/stderr

              at jdk.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:106)
              at BasicLauncherTest.launch(BasicLauncherTest.java:182)
              ... 8 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'compiler detected' missing from stdout/stderr

      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'compiler detected' missing from stdout/stderr


      The test reports that it cannot find the 'compiler detected' pattern, but the
      root cause is probably this:

      Error attaching to process: Can't create thread_db agent!
      sun.jvm.hotspot.debugger.DebuggerException: Can't create thread_db agent!

        1. 8193639.debug.0.zip
          37 kB
        2. BasicLauncherTest.jtr
          19 kB
        3. jdk11_migrate.8193639.zip
          183 kB
        4. jdk-11+23_solx64.8193639.zip
          127 kB
        5. jdk-11+24_solx64.8193639.zip
          28 kB
        6. jdk-11+25_solx64.8193639.zip
          23 kB
        7. jdk-12+17_solx64.8193639.zip
          12 kB

            fmatte Fairoz Matte
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: