JDK-7171422 : Change 7161732 breaks SA on Windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 7u6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2012-05-24
  • Updated: 2013-09-04
  • Resolved: 2012-06-02
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.
JDK 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
Related Reports
Relates :  
Description
Since change 7161732 (Improve handling of thread_id in OSThread), most of the sajdi tests on Windows fails with:

Attaching to target VM
 # ERROR: IOException while attaching with sun.jvm.hotspot.jdi.SACoreAttachingConnector:
 # ERROR: 	java.io.IOException
 java.io.IOException
 	at sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach(SACoreAttachingConnector.java:139)
 	at nsk.sajdi.SACoreAttachingConnector.attach.attach001.runIt(attach001.java:74)
 	at nsk.sajdi.SACoreAttachingConnector.attach.attach001.run(attach001.java:26)
 	at nsk.sajdi.SACoreAttachingConnector.attach.attach001.main(attach001.java:21)
 Caused by: java.lang.reflect.InvocationTargetException
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 	at java.lang.reflect.Method.invoke(Method.java:601)
 	at sun.jvm.hotspot.jdi.SACoreAttachingConnector.createVirtualMachine(SACoreAttachingConnector.java:96)
 	at sun.jvm.hotspot.jdi
 .SACoreAttachingConnector.attach(SACoreAttachingConnector.java:124)
 	... 3 more
 Caused by: java.lang.RuntimeException: No type named "OSThread::thread_id_t" in database
 	at sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupType(BasicTypeDataBase.java:80)
 	at sun.jvm.hotspot.HotSpotTypeDataBase.lookupType(HotSpotTypeDataBase.java:133)
 	at sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupType(BasicTypeDataBase.java:74)
 	at sun.jvm.hotspot.HotSpotTypeDataBase.readVMStructs(HotSpotTypeDataBase.java:449)
 	at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:87)
 	at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:389)
 	at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:314)
 	at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:173)
 	at sun.jvm.hotspot.jdi.VirtualMachineImpl.createVirtualMachineForCorefile(VirtualMachineImpl.java:206)
 	... 9 more
Since change 7161732, most of the sajdi tests on Windows fail with:

Attaching to target VM
 # ERROR: IOException while attaching with sun.jvm.hotspot.jdi.SACoreAttachingConnector:
 # ERROR: 	java.io.IOException
 java.io.IOException
 	at sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach(SACoreAttachingConnector.java:139)
 	at nsk.sajdi.SACoreAttachingConnector.attach.attach001.runIt(attach001.java:74)
 	at nsk.sajdi.SACoreAttachingConnector.attach.attach001.run(attach001.java:26)
 	at nsk.sajdi.SACoreAttachingConnector.attach.attach001.main(attach001.java:21)
 Caused by: java.lang.reflect.InvocationTargetException
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 	at java.lang.reflect.Method.invoke(Method.java:601)
 	at sun.jvm.hotspot.jdi.SACoreAttachingConnector.createVirtualMachine(SACoreAttachingConnector.java:96)
 	at sun.jvm.hotspot.jdi
 .SACoreAttachingConnector.attach(SACoreAttachingConnector.java:124)
 	... 3 more
 Caused by: java.lang.RuntimeException: No type named "OSThread::thread_id_t" in database
 	at sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupType(BasicTypeDataBase.java:80)
 	at sun.jvm.hotspot.HotSpotTypeDataBase.lookupType(HotSpotTypeDataBase.java:133)
 	at sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupType(BasicTypeDataBase.java:74)
 	at sun.jvm.hotspot.HotSpotTypeDataBase.readVMStructs(HotSpotTypeDataBase.java:449)
 	at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:87)
 	at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:389)
 	at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:314)
 	at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:173)
 	at sun.jvm.hotspot.jdi.VirtualMachineImpl.createVirtualMachineForCorefile(VirtualMachineImpl.java:206)
 	... 9 more

Comments
EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/df84b4a3ebcb
29-06-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/df84b4a3ebcb
30-05-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/df84b4a3ebcb
24-05-2012