JDK-8196084 : SA: Attach fails due to 'Can't create thread_db agent!'
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 11
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-01-24
  • Updated: 2018-05-15
  • Resolved: 2018-05-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_minorResolved
Related Reports
Duplicate :  
Description
Test: serviceability/sa/ClhsdbAttach.java

----------System.out:(10/925)----------
Starting ClhsdbAttach test
Command line: ['java' '-XX:MaxRAMPercentage=6' '-cp' 'test/lib' 'jdk.test.lib.apps.LingeredApp' '8ed25fa4-6dca-47bc-843b-8866f79047fa.lck' ]
Started LingeredApp with pid 51533
hsdb> Command not valid until attached to a VM
hsdb> Warning! JS Engine can't start, some commands will not be available.
hsdb> MaxJavaStackTraceDepth = 1024 0
hsdb> hsdb> Command not valid until attached to a VM
hsdb> Warning! JS Engine can't start, some commands will not be available.
hsdb> Error: java.lang.NullPointerException
hsdb> 
----------System.err:(57/3768)----------
Attaching to process 51533, 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
Attaching to process 51533, please wait...
Unable to connect to process ID 51533:

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.CLHSDB.attachDebugger(CLHSDB.java:180)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.access$300(CLHSDB.java:33)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.attach(CLHSDB.java:75)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.reattach(CLHSDB.java:88)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$1.doit(CommandProcessor.java:398)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1966)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1936)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1816)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:191)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:439)
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
 stdout: [ Error: java.lang.NullPointerException
];
 stderr: [ Error: java.lang.NullPointerException
]
 exitValue = -1

java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'longConstant markOopDesc::locked_value' missing from stdout/stderr 

	at ClhsdbAttach.main(ClhsdbAttach.java:71)
	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: 'longConstant markOopDesc::locked_value' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:135)
	at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:118)
	at ClhsdbLauncher.run(ClhsdbLauncher.java:160)
	at ClhsdbAttach.main(ClhsdbAttach.java:69)
	... 6 more

Comments
The testcase is failing due to the following error Can't create thread_db agent! sun.jvm.hotspot.debugger.DebuggerException: Can't create thread_db agent! Similar error has been seen in JDK-8193639
25-01-2018