Date: Mon, 5 Sep 2016 12:19:48 +0200 From: Palle Girgensohn <girgen@pingpong.net> To: freebsd-java@freebsd.org Subject: OpenJDK8 jmap UnalignedAddressException Message-ID: <8DBD7F37-72B2-4DC7-993B-B2139DDCFBE5@pingpong.net>
next in thread | raw e-mail | index | archive | help
--Apple-Mail=_CFD0B3CB-8978-49ED-B770-8A5698C43DD4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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=3Db,live,file=3Dfoo.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(DelegatingMethodAccessorIm= pl.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(BsdDebugger= Local.java:198) at = sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.readCInteger(BsdDebuggerLoca= l.java:509) at = sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:4= 62) 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(Ba= sicTypeDataBase.java:296) at = sun.jvm.hotspot.runtime.VirtualBaseConstructor.instantiateWrapperFor(Virtu= alBaseConstructor.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(Compactible= FreeListSpace.java:189) at = sun.jvm.hotspot.oops.ObjectHeap$LiveRegionsCollector.doSpace(ObjectHeap.ja= va:401) at = sun.jvm.hotspot.memory.ConcurrentMarkSweepGeneration.spaceIterate(Concurre= ntMarkSweepGeneration.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(AbstractHeapGraphW= riter.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 --Apple-Mail=_CFD0B3CB-8978-49ED-B770-8A5698C43DD4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJXzUbFAAoJEDQn0sf36Ulsbn8H/1cURWoH6eTWAqYrhqvnqX1Q nvWawPr5aiwcB2lgdOaDsVi2tt+P8ri3/VXrO7sVgxlCzya/epkoGqjbxqjzpi9R Chhhk7CVawC6NragfZeOsERDMgl11RRCAy35S/Zi2hQMPjo0ZdZ+tFIusxpiX52l //ut7pKYy2FaW8IwdG6MyW33RP5pfIh8ObSwJdz9kNTmuTOKJxp4miCyHFN3Z1Vz MfF/eCM3oWZYJJ9O7tYigpw6UIg6eK0Vp9Q6gyH3YIRN3oaUG5rnmDFRAdJ4iamv V5gqVOjQ0x28z/sxSy9X9KZ6J+JhAseu/eykg148nFkSQ1WM+IcV2X5DJOICSpA= =m9zO -----END PGP SIGNATURE----- --Apple-Mail=_CFD0B3CB-8978-49ED-B770-8A5698C43DD4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8DBD7F37-72B2-4DC7-993B-B2139DDCFBE5>