From owner-freebsd-java@FreeBSD.ORG Sun Apr 15 14:17:44 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B751D1065670 for ; Sun, 15 Apr 2012 14:17:44 +0000 (UTC) (envelope-from andrewwtulloch@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 446748FC08 for ; Sun, 15 Apr 2012 14:17:44 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so4372730wgb.31 for ; Sun, 15 Apr 2012 07:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=Adh2LlmIyoNaBCt2cpDC3kU6vtFrjvkqJSC+35kx1cI=; b=ehRbyXww7/Uzu9OoG9W1XRHA7aU3S09eyDfqfs9TM1veey7j3XedlPH+EJ9K9nLWfJ rvilqV2fK0f5ZYIMpfFpwTrtJSFAk27th6Nu/Y3IXlCoufZ9T7skbCPFBElbOVjj5h+L 1vyy9rfjgExOFXWegtS+Z4ZD87m4So3MStL+/QuKMwPOL8ivzlYwNQQBKVisYk5RT3NY 7oxeRQ/TxEeTZ1tiq+PaL9NItDy2Zx4I8RJYaUxlhfvroYCQKw/A7nJ3d7GfLN5r9OwA CpwqqlLjwyGRqp3Ovj8GsbkbQBj1YnEqRgEtZg5uz97R4J15ZqtIXS+LF7xEHM5hU0v7 Z/Ow== MIME-Version: 1.0 Received: by 10.180.95.74 with SMTP id di10mr8077097wib.1.1334499462947; Sun, 15 Apr 2012 07:17:42 -0700 (PDT) Sender: andrewwtulloch@gmail.com Received: by 10.223.87.209 with HTTP; Sun, 15 Apr 2012 07:17:42 -0700 (PDT) Date: Sun, 15 Apr 2012 15:17:42 +0100 X-Google-Sender-Auth: 6Jt3vDFuhXSd0wSrFajTX92r1jk Message-ID: From: Andrew To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: OpenJDK7 jmap UnalignedAddressException X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Apr 2012 14:17:44 -0000 I'm running a 9-STABLE on AMD64 machine with the port java/openjdk7 installed and when I execute jmap against a running java process of the same JDK running under the same (non-root) user or running jmap as root I get the following exception: Attaching to process ID 97337, please wait... Exception in thread "main" 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.tools.jmap.JMap.runTool(JMap.java:197) at sun.tools.jmap.JMap.main(JMap.java:128) Caused by: sun.jvm.hotspot.debugger.UnalignedAddressException: 746f705b75af4867 at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$1.checkAlignment(BsdDebuggerLocal.java:181) at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.readCInteger(BsdDebuggerLocal.java:478) at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:454) at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.readAddress(BsdDebuggerLocal.java:423) at sun.jvm.hotspot.debugger.bsd.BsdAddress.getAddressAt(BsdAddress.java:74) at sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:154) at sun.jvm.hotspot.HotSpotTypeDataBase.(HotSpotTypeDataBase.java:85) at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:572) at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:493) at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:331) at sun.jvm.hotspot.tools.Tool.start(Tool.java:163) at sun.jvm.hotspot.tools.PMap.main(PMap.java:67) ... 6 more uname: FreeBSD 9.0-STABLE #0: Thu Apr 12 10:59:45 BST 2012 Java: /usr/local/openjdk7/bin/java -version openjdk version "1.7.0_02" OpenJDK Runtime Environment (build 1.7.0_02-b13) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) Has anyone else seen this error? Thanks, Andrew