JDK-6313816 : SA: jstack -m fails on Win32 : UnalignedAddressException
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: hs24,6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2005-08-20
  • Updated: 2016-04-15
  • Resolved: 2013-05-17
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 8 Other
8Fixed hs25Fixed
Related Reports
Relates :  
Description
Here is an example.  The target is a simple hello class
doing a Thread.sleep()

c:/build/control/j2sdk-image/bin/jstack -m 364
Attaching to process ID 364, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.6.0-internal-Jim_19_aug_2005_19_30-b00
Deadlock Detection:

No deadlocks found.

----------------- 0 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c809c86	kernel32!WaitForMultipleObjects + 0x18
----------------- 1 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802542	kernel32!WaitForSingleObject + 0x12
0x0812e056	jvm!Monitor::wait + 0x96
----------------- 2 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802542	kernel32!WaitForSingleObject + 0x12
0x08133d62	jvm!ObjectMonitor::wait + 0x192
----------------- 3 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802542	kernel32!WaitForSingleObject + 0x12
0x08133d62	jvm!ObjectMonitor::wait + 0x192
----------------- 4 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802542	kernel32!WaitForSingleObject + 0x12
0x08138ae6	jvm!check_pending_signals + 0xd6
0x08138b97	jvm!os::signal_wait + 0x7
0x7c349565	MSVCR71!_threadstartex + 0x6f
0x7c80b50b	kernel32!GetModuleFileNameA + 0x1b4
----------------- 5 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802542	kernel32!WaitForSingleObject + 0x12
0x0801423a	jvm!Win32AttachListener::dequeue + 0x1a
sun.jvm.hotspot.debugger.UnalignedAddressException: Trying to read at address: 0x7c8024a7 with alignment: 4
	at sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal$1.checkAlignment(WindbgDebuggerLocal.java:86)
	at sun.jvm.hotspot.debugger.DebuggerBase.readCInteger(DebuggerBase.java:320)
	at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:425)
	at sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.readAddress(WindbgDebuggerLocal.java:298)
	at sun.jvm.hotspot.debugger.windbg.WindbgAddress.getAddressAt(WindbgAddress.java:55)
	at sun.jvm.hotspot.debugger.cdbg.basic.x86.X86CFrame.sender(X86CFrame.java:34)
	at sun.jvm.hotspot.tools.PStack.run(PStack.java:144)
	at sun.jvm.hotspot.tools.PStack.run(PStack.java:36)
	at sun.jvm.hotspot.tools.PStack.run(PStack.java:31)
	at sun.jvm.hotspot.tools.JStack.run(JStack.java:43)
	at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
	at sun.jvm.hotspot.tools.JStack.main(JStack.java:69)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at sun.tools.jstack.JStack.jstack(JStack.java:161)
	at sun.tools.jstack.JStack.main(JStack.java:110)
----------------- 6 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802542	kernel32!WaitForSingleObject + 0x12
0x0812e0d1	jvm!Monitor::wait + 0x111
----------------- 7 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802542	kernel32!WaitForSingleObject + 0x12
0x0812e056	jvm!Monitor::wait + 0x96
0x7c349565	MSVCR71!_threadstartex + 0x6f
0x7c80b50b	kernel32!GetModuleFileNameA + 0x1b4
----------------- 8 -----------------
0x7c90eb94	ntdll!KiFastSystemCallRet
0x7c802451	kernel32!Sleep + 0xf

Comments
Hi, Is that comment in the right bug report? There are other bug(s) that report "Windbg Error: ReadVirtual failed!". That said, this bug is fixed in hs25 only so reporting that this bug exists in hs24 is just a reminder that a backport might be nice, and is a good point...
08-07-2013