OpenJDK8 jmap UnalignedAddressException

Palle Girgensohn girgen at pingpong.net
Mon Sep 5 10:19:58 UTC 2016


Hi,

openjdk8-8.102.14
freebsd: 10.2-RELEASE-p8

I have a core dump of a JVM process and need a heap dump, but I get [1]. I find a reference from 2012 of the same problem: https://lists.freebsd.org/pipermail/freebsd-java/2012-April/009661.html

Was there a fix that has broken somehow?

Would -XX:-UseCompressedOops work as work-around?

Or would it help to add the latest patch in r421302 (openjdk8-8.102.14_1).

Or perhaps do I to SIGSTOP the process when fetching the core dump? (gcore -s).

Ideas?

$ jmap -dump:format=b,live,file=foo.hprof /usr/local/bin/jsvc jvm.core.37937
Attaching to core jvm.core.37937 from executable /usr/local/bin/jsvc, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.102-b14
Dumping heap to foo.hprof ...
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at sun.tools.jmap.JMap.runTool(JMap.java:201)
	at sun.tools.jmap.JMap.main(JMap.java:130)
Caused by: sun.jvm.hotspot.debugger.UnalignedAddressException: c7c667c15
	at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$1.checkAlignment(BsdDebuggerLocal.java:198)
	at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.readCInteger(BsdDebuggerLocal.java:509)
	at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:462)
	at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.readAddress(BsdDebuggerLocal.java:448)
	at sun.jvm.hotspot.debugger.bsd.BsdAddress.getAddressAt(BsdAddress.java:74)
	at sun.jvm.hotspot.types.basic.BasicTypeDataBase.findDynamicTypeForAddress(BasicTypeDataBase.java:296)
	at sun.jvm.hotspot.runtime.VirtualBaseConstructor.instantiateWrapperFor(VirtualBaseConstructor.java:102)
	at sun.jvm.hotspot.oops.Metadata.instantiateWrapperFor(Metadata.java:68)
	at sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:211)
	at sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:251)
	at sun.jvm.hotspot.memory.CompactibleFreeListSpace.getLiveRegions(CompactibleFreeListSpace.java:189)
	at sun.jvm.hotspot.oops.ObjectHeap$LiveRegionsCollector.doSpace(ObjectHeap.java:401)
	at sun.jvm.hotspot.memory.ConcurrentMarkSweepGeneration.spaceIterate(ConcurrentMarkSweepGeneration.java:66)
	at sun.jvm.hotspot.oops.ObjectHeap.collectLiveRegions(ObjectHeap.java:426)
	at sun.jvm.hotspot.oops.ObjectHeap.iterate(ObjectHeap.java:171)
	at sun.jvm.hotspot.utilities.AbstractHeapGraphWriter.write(AbstractHeapGraphWriter.java:51)
	at sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:433)
	at sun.jvm.hotspot.tools.HeapDumper.run(HeapDumper.java:62)
	at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
	at sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
	at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
	at sun.jvm.hotspot.tools.HeapDumper.main(HeapDumper.java:83)
	... 6 more

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-java/attachments/20160905/dfca0669/attachment.sig>


More information about the freebsd-java mailing list