From owner-freebsd-java@FreeBSD.ORG Sun Oct 12 19:39:46 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D00AC106568A for ; Sun, 12 Oct 2008 19:39:46 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from cp-out2.libero.it (cp-out2.libero.it [212.52.84.102]) by mx1.freebsd.org (Postfix) with ESMTP id 64EDE8FC08 for ; Sun, 12 Oct 2008 19:39:46 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from libero.it (192.168.17.11) by cp-out2.libero.it (8.5.014) id 4887348106A5D981 for freebsd-java@freebsd.org; Sun, 12 Oct 2008 21:28:16 +0200 Date: Sun, 12 Oct 2008 21:28:16 +0200 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "barbara" To: "freebsd-java" X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 79.35.226.83 X-Mailman-Approved-At: Sun, 12 Oct 2008 20:28:53 +0000 Subject: eclipse-devel build failure 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, 12 Oct 2008 19:39:46 -0000 Hello, trying to update java/eclipse-devel I've got a lot of error messages. The output is quite long so you can find a typescript at the following UR= L: http://www.2shared.com/file/4082966/f536a142/eclipse-develout.html From owner-freebsd-java@FreeBSD.ORG Mon Oct 13 11:06:52 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8A081065688 for ; Mon, 13 Oct 2008 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B44B18FC08 for ; Mon, 13 Oct 2008 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9DB6qgH029484 for ; Mon, 13 Oct 2008 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9DB6qvY029480 for freebsd-java@FreeBSD.org; Mon, 13 Oct 2008 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Oct 2008 11:06:52 GMT Message-Id: <200810131106.m9DB6qvY029480@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org 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: Mon, 13 Oct 2008 11:06:52 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o java/125583 java Java gui programs stop without error message o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/121420 java java/jdk16: Java applet fails to find class under fire o ports/121416 java java/jdk15 can't build if BIN environment variable is o ports/120372 java java/linux-sun-jdk16: linux-sun-jre1.6.0 plugin doesn' o java/120146 java java/jdk15: netbeans 6.0 causes java core dump on amd6 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119654 java jdk 1.6: java.awt.SplashScreen#getSplashScreen throws o java/119063 java An unexpected error has been detected by Java Runtime o java/118956 java eclipse and netbeans break on diablo-jdk15 o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/115773 java [request] java.nio channel selectors should use kqueue o java/114644 java tomcat goes out of PermSpace, jvm crashes o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/113467 java Multiple "missing return value" errors building JDK on o java/112595 java Java appletviewer frequently hangs (kse_release loop) o java/110912 java Java krb5 client leaks UDP connections o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/97461 java Diablo JDK does not report Update level in a format su o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 s ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext 28 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Oct 13 14:47:31 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 509E51065691 for ; Mon, 13 Oct 2008 14:47:31 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id CFB968FC1C for ; Mon, 13 Oct 2008 14:47:30 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so474384uge.39 for ; Mon, 13 Oct 2008 07:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=C4qj+Y9OVaRGn5tU7qnFptCcnXC9nqhcvouVLmAxgEE=; b=j/iiks2daqkX7pi535z7dodHWQo+RGHx4P4ZIamMqcKJLS18LwJyOGyFEiT4emYh18 lsnE/Z3Y4/Ens9ySwxcGf25fYVqRYgEKE5Pa0GR4MX6VsKmKzcu1aPVqJVOoO3TL9elx qSY7E3bZXSKL8fB2O/W8hPnDlN2Azwd8A9gk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=VPz5p+9bQukt7NQBZ1otVxCOBiABuroyAgEgO67NBdcLu80JoYfXt8W84Qxf24B08x XU8qboG1xN6f+C9oI8vu/DKahdFx+KPqPVLtR874QC1EMN9FOD8Gd++hFo+lLHxGXQz+ vbVPmmYnm4xC/dQIpaDgkySCqTslRorVg91pw= Received: by 10.67.92.17 with SMTP id u17mr3246602ugl.75.1223909249503; Mon, 13 Oct 2008 07:47:29 -0700 (PDT) Received: from ?192.168.2.105? (blah.sun-fish.com [217.18.249.150]) by mx.google.com with ESMTPS id a1sm5763216ugf.37.2008.10.13.07.47.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Oct 2008 07:47:25 -0700 (PDT) Message-Id: <7F26DA41-FF97-4DBB-ADAC-F7E6707B868D@gmail.com> From: Nikolay Denev To: freebsd-java@freebsd.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 13 Oct 2008 17:47:22 +0300 References: X-Mailer: Apple Mail (2.929.2) Cc: Anders Nordby Subject: Re: Serious problem with RMI on jdk15 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: Mon, 13 Oct 2008 14:47:31 -0000 On Oct 9, 2008, at 4:35 PM, Nikolay Denev wrote: > Hi All, > > I have the following problem : when I connect to a jmxremote enabled > application with jconsole the whole VM crashes with segmentation > fault. > [...snip...] > > I'm running amd64 7.1-PRE from yesterday, and the jdk is > jdk-1.5.0.14p8_3,1 > > Any help is greatly appreciated! > > Thanks, > Nikolay Denev > > > I think I've tracked down the problem. The JVM crashes when one requests the TotalPhysicalMemory from the OperatingSystem bean. The strange thing is that Sun specifies this value as "long", but how this can work on 64bit machines with many gigabytes of memory? What BSD patchset does is read the hw.physmem sysctl, which returns unsigned long, and then cast it to jlong and probably this is where the problem is. I've tried disabling the sysctl and hardcoding the result and my JVM does not crash anymore. Jconsole still does not show anything though.... and the same test program produces info when used with the diablo-jdk15... Regards, Nikolay Denev From owner-freebsd-java@FreeBSD.ORG Mon Oct 13 14:59:02 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA123106568A for ; Mon, 13 Oct 2008 14:59:02 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 74F7D8FC16 for ; Mon, 13 Oct 2008 14:59:02 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so477554uge.39 for ; Mon, 13 Oct 2008 07:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=9wMyBN3LrY2SK+UF343aP1ea1K+eMF7S8Pf8yuqmS80=; b=dXXn9TElE1YUeYHzBrc5pWifFN5QBSuDZckV2dYgtfO5t8VP3WRTct/qEweL2/vyQa uNCH/22PrNOMotUJl1t22mqM66nKO3dnun+OUXX8F+fRhHmvUnv8JU4nBu05oV8D6JqD JE0yrUrHr/ptGkQ1JluPxLhDQLzRR1+ECQbTE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=U0mZ7ztuaUEgAgvZBhIBY+OKf1dldvrLGXQiJVjRa7tKBDl9Qugo3tFLEKqbRUG3uj j3j4U6w8OTw4AQfUs2XMaYgJGlxeD6G/BZsh1IVFdGLQXJXS9kcmu0OMrbiM7toJO3Pk BhQXL1aadSJAhm+VALnxuwb/O9JmMHYiqHJe8= Received: by 10.67.106.13 with SMTP id i13mr3288019ugm.37.1223909941205; Mon, 13 Oct 2008 07:59:01 -0700 (PDT) Received: from ?192.168.2.105? (blah.sun-fish.com [217.18.249.150]) by mx.google.com with ESMTPS id i39sm7192884ugd.21.2008.10.13.07.58.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Oct 2008 07:59:00 -0700 (PDT) Message-Id: <82DA0FAE-EAFF-4138-9CAA-21750A21D9D6@gmail.com> From: Nikolay Denev To: freebsd-java@freebsd.org In-Reply-To: <7F26DA41-FF97-4DBB-ADAC-F7E6707B868D@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 13 Oct 2008 17:58:58 +0300 References: <7F26DA41-FF97-4DBB-ADAC-F7E6707B868D@gmail.com> X-Mailer: Apple Mail (2.929.2) Subject: Re: Serious problem with RMI on jdk15 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: Mon, 13 Oct 2008 14:59:03 -0000 On Oct 13, 2008, at 5:47 PM, Nikolay Denev wrote: > > On Oct 9, 2008, at 4:35 PM, Nikolay Denev wrote: > >> Hi All, >> >> I have the following problem : when I connect to a jmxremote >> enabled application with jconsole the whole VM crashes with >> segmentation fault. >> > [...snip...] >> >> I'm running amd64 7.1-PRE from yesterday, and the jdk is >> jdk-1.5.0.14p8_3,1 >> >> Any help is greatly appreciated! >> >> Thanks, >> Nikolay Denev >> >> >> > > I think I've tracked down the problem. > The JVM crashes when one requests the TotalPhysicalMemory from the > OperatingSystem bean. > The strange thing is that Sun specifies this value as "long", but > how this can work on 64bit machines with many gigabytes of memory? > > What BSD patchset does is read the hw.physmem sysctl, which returns > unsigned long, and then cast it to jlong and probably this is where > the problem is. > I've tried disabling the sysctl and hardcoding the result and my JVM > does not crash anymore. > Jconsole still does not show anything though.... and the same test > program produces info when used with the diablo-jdk15... > > > Regards, > Nikolay Denev > > > As I read this now, It's not exactly correct, longs should be 4 bytes on 32bit archs, and 8bytes on 64bit archs. So the storage type for TotalPhysicalMemory should be ok. Maybe jlong is not correctly adjusted to 8bytes on 64bit architectures? Regards, Nikolay Denev From owner-freebsd-java@FreeBSD.ORG Mon Oct 13 20:45:37 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 565FD1065689 for ; Mon, 13 Oct 2008 20:45:37 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id EEA6B8FC1B for ; Mon, 13 Oct 2008 20:45:36 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.2/8.14.2) with ESMTP id m9DKlBsv052948; Mon, 13 Oct 2008 13:47:11 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.2/8.14.2/Submit) id m9DKlA0U052947; Mon, 13 Oct 2008 13:47:10 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 13 Oct 2008 13:47:10 -0700 From: Greg Lewis To: Nikolay Denev Message-ID: <20081013204710.GA52841@misty.eyesbeyond.com> References: <7F26DA41-FF97-4DBB-ADAC-F7E6707B868D@gmail.com> <82DA0FAE-EAFF-4138-9CAA-21750A21D9D6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82DA0FAE-EAFF-4138-9CAA-21750A21D9D6@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-java@freebsd.org Subject: Re: Serious problem with RMI on jdk15 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: Mon, 13 Oct 2008 20:45:37 -0000 On Mon, Oct 13, 2008 at 05:58:58PM +0300, Nikolay Denev wrote: > On Oct 13, 2008, at 5:47 PM, Nikolay Denev wrote: > > On Oct 9, 2008, at 4:35 PM, Nikolay Denev wrote: > > > >> Hi All, > >> > >> I have the following problem : when I connect to a jmxremote > >> enabled application with jconsole the whole VM crashes with > >> segmentation fault. > >> > > [...snip...] > >> > >> I'm running amd64 7.1-PRE from yesterday, and the jdk is > >> jdk-1.5.0.14p8_3,1 > >> > >> Any help is greatly appreciated! > >> > >> Thanks, > >> Nikolay Denev > > > > I think I've tracked down the problem. > > The JVM crashes when one requests the TotalPhysicalMemory from the > > OperatingSystem bean. > > The strange thing is that Sun specifies this value as "long", but > > how this can work on 64bit machines with many gigabytes of memory? > > > > What BSD patchset does is read the hw.physmem sysctl, which returns > > unsigned long, and then cast it to jlong and probably this is where > > the problem is. > > I've tried disabling the sysctl and hardcoding the result and my JVM > > does not crash anymore. > > Jconsole still does not show anything though.... and the same test > > program produces info when used with the diablo-jdk15... > > > > > > Regards, > > Nikolay Denev > > As I read this now, It's not exactly correct, longs should be 4 bytes > on 32bit archs, and 8bytes on 64bit archs. > So the storage type for TotalPhysicalMemory should be ok. Maybe jlong > is not correctly adjusted to 8bytes on 64bit architectures? A jlong is typedef'ed as a 'long long' on both 32 and 64 bit architectures. How much memory does the machine have and what architecture is it? -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Tue Oct 14 03:28:13 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9418106569A for ; Tue, 14 Oct 2008 03:28:13 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id 3A86F8FC17 for ; Tue, 14 Oct 2008 03:28:12 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so1957107mue.3 for ; Mon, 13 Oct 2008 20:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Y1a5NKEsgT5pfGJ3WVzWFF358BYJW31PfbN15nxkwm0=; b=SPlhNvYTOtINiUrZQccWfeivEpI0DUA8Wci3fZ9UXAdUe51rSoqDH7suxuSiJl5/Yn jcigkcyl4s1e9YKCtdz3ZifMsdOZxalRFV9dzDeye5PHeA76I6FrZLpHzVucAJPL/f+1 lZAo9ZX9irAANhMUSPMkHltq5F3v98d2dl004= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=nKtlGg2Pe1D2IeTcP1W1AyqygR8E1wco1/ZO5U1wP5sBwtu8st86Ry/cg+pw9b/x16 wKhVhT1r69w+P9KsU0RbGVtY5qHBC6ZFkgqNV9Hz0tRXhOv4fPloFX7n26UGF0UnS43x CA5qy4WsgtydTLR+qA+dBY66YTn8ivdEFpGQA= Received: by 10.103.245.18 with SMTP id x18mr4119790mur.20.1223954891826; Mon, 13 Oct 2008 20:28:11 -0700 (PDT) Received: from MYTAHT.totalterror.net ([87.121.19.243]) by mx.google.com with ESMTPS id j10sm9117344mue.17.2008.10.13.20.28.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Oct 2008 20:28:09 -0700 (PDT) Message-Id: From: Nikolay Denev To: Greg Lewis In-Reply-To: <20081013204710.GA52841@misty.eyesbeyond.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 14 Oct 2008 06:28:05 +0300 References: <7F26DA41-FF97-4DBB-ADAC-F7E6707B868D@gmail.com> <82DA0FAE-EAFF-4138-9CAA-21750A21D9D6@gmail.com> <20081013204710.GA52841@misty.eyesbeyond.com> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-java@freebsd.org Subject: Re: Serious problem with RMI on jdk15 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: Tue, 14 Oct 2008 03:28:13 -0000 On Oct 13, 2008, at 11:47 PM, Greg Lewis wrote: > On Mon, Oct 13, 2008 at 05:58:58PM +0300, Nikolay Denev wrote: >> On Oct 13, 2008, at 5:47 PM, Nikolay Denev wrote: >>> On Oct 9, 2008, at 4:35 PM, Nikolay Denev wrote: >>> >>>> Hi All, >>>> >>>> I have the following problem : when I connect to a jmxremote >>>> enabled application with jconsole the whole VM crashes with >>>> segmentation fault. >>>> >>> [...snip...] >>>> >>>> I'm running amd64 7.1-PRE from yesterday, and the jdk is >>>> jdk-1.5.0.14p8_3,1 >>>> >>>> Any help is greatly appreciated! >>>> >>>> Thanks, >>>> Nikolay Denev >>> >>> I think I've tracked down the problem. >>> The JVM crashes when one requests the TotalPhysicalMemory from the >>> OperatingSystem bean. >>> The strange thing is that Sun specifies this value as "long", but >>> how this can work on 64bit machines with many gigabytes of memory? >>> >>> What BSD patchset does is read the hw.physmem sysctl, which returns >>> unsigned long, and then cast it to jlong and probably this is where >>> the problem is. >>> I've tried disabling the sysctl and hardcoding the result and my JVM >>> does not crash anymore. >>> Jconsole still does not show anything though.... and the same test >>> program produces info when used with the diablo-jdk15... >>> >>> >>> Regards, >>> Nikolay Denev >> >> As I read this now, It's not exactly correct, longs should be 4 bytes >> on 32bit archs, and 8bytes on 64bit archs. >> So the storage type for TotalPhysicalMemory should be ok. Maybe jlong >> is not correctly adjusted to 8bytes on 64bit architectures? > > A jlong is typedef'ed as a 'long long' on both 32 and 64 bit > architectures. > How much memory does the machine have and what architecture is it? > > -- > Greg Lewis Email : glewis@eyesbeyond.com > Eyes Beyond Web : http:// > www.eyesbeyond.com > Information Technology FreeBSD : glewis@FreeBSD.org Hi, I've looked at the source and found out that myself, but it is still puzzling to me why it crashes... The machine runs 7.1-PRERELASE a few days old (maybe a week) and is an amd64 with 2G of ram. All my tcpdumps of the network communication between the jconsole and the app show that it crashes right after the request for TotalPhysicalMemory, also I've confirmed this by ktracing the process, and the thread that crashes does the sysctl() to get the hw.physmem value and immediately after the return from it, it receives a SIGSEGV. I've instrumented the patchset and especialy this function not to do the sysctl() stuff but to return a hard coded value equal to the amount of memory on my machine without any casting to jlong and now it doesn't crash, so it seems that the problem is somewhere there. From what I've read "long" and "long long" should be 64bit ints on 64bit architectures, and the casting is done only because hw.physmem sysctl is ulong? Regards, Nikolay Denev From owner-freebsd-java@FreeBSD.ORG Tue Oct 14 16:41:10 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B07FE106568B for ; Tue, 14 Oct 2008 16:41:10 +0000 (UTC) (envelope-from frank@harz.behrens.de) Received: from post.behrens.de (post.behrens.de [IPv6:2a01:170:1023::1:2]) by mx1.freebsd.org (Postfix) with ESMTP id 13A268FC1A for ; Tue, 14 Oct 2008 16:41:09 +0000 (UTC) (envelope-from frank@harz.behrens.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=behrens.de; h=from:to:date:mime-version:subject:reply-to:content-type:content-transfer-encoding:content-description; s=pinky1; t=1224002466; i=frank@harz.behrens.de; bh=kx6fSrVqMgOmEw6768nunsNPW+Vmi6qkgMsyojtvJGY=; b=qxXBuYWGx2FmZHUw3Vrj7r6Hr8+52liLvT3ifVIZao/G5BnK5AkezUrYd8o8+DFUYndNg9QOfW72fvUVB07LCQ== Received: from sun.behrens ([IPv6:2a01:170:1023:0:894b:3296:412a:e455]) by post.behrens.de (8.14.2/8.14.2) with ESMTP-MSA id m9EGf4QG029110 for ; Tue, 14 Oct 2008 18:41:04 +0200 (CEST) (envelope-from frank@harz.behrens.de) Message-Id: <200810141641.m9EGf4QG029110@post.behrens.de> From: "Frank Behrens" To: freebsd-java@freebsd.org Date: Tue, 14 Oct 2008 18:41:04 +0200 MIME-Version: 1.0 Priority: normal X-mailer: Pegasus Mail for Windows (4.31, DE v4.31 R1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Hashcash: 1:23:081014:freebsd-java@freebsd.org::iSWrQHQ+a5jDrnuS:000000000B/JE Subject: Java and IPv6 on BSD - it does not work well X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-java@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 16:41:10 -0000 Some weeks ago I tried to setup a tomcat server with IPv4 and IPv6 on my FreeBSD server and observed some problems. This was the starting point to make a short research about the Java(tm) IPv6 implementation and something seems to be wrong. My conclusion: It is very difficult or impossible to use the current (1.6.0) Java implementation for server services if they should listen on IPv4 and IPv6 addresses. With many BSD's default settings it is not even possible to bind to a combined IPv4/IPv6 wildcard address. The current Sun Java implementation should be changed in a way, that the socket is created with the right address family after the bind address has been determined. You can read the complete test description and my observations on http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html Do you agree or do you have other experiences? [Note: I read the list, no Cc: necessary] Regards, Frank -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available. From owner-freebsd-java@FreeBSD.ORG Wed Oct 15 02:54:13 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDF6F1065686 for ; Wed, 15 Oct 2008 02:54:13 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by mx1.freebsd.org (Postfix) with ESMTP id 5EE658FC16 for ; Wed, 15 Oct 2008 02:54:13 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: by gxk9 with SMTP id 9so5325630gxk.19 for ; Tue, 14 Oct 2008 19:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:face:mime-version :content-type:content-transfer-encoding; bh=so1TW/lykxNAo83xzlXEFV9ipGGK1tFEsXnAy3X83gQ=; b=N/kFfhC30aJIFS9NBoREFPzR3QsvZFp7+67jboK9Sz076pquFSy6qClaC8RMC4o/zx 8Ghun/6BMbqb9ofjpQIRy72gVJDOu0erBq23cpWrccFBtaQnO5AMBfFncyWiWL9pFbQL efPa7YYIkZw6c/pkCohGepJMjBUt4Wn9qX1nY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :face:mime-version:content-type:content-transfer-encoding; b=U1EXj3nTuYB39HeC1KgRDMS3uUoPHl5ky3X02lUo/KK39DoqMlSN7wu6L4sTBerss1 mZFrzgyMNckVLjNA7NhuJp7lmdcNDWTtoPvj8oMv74IVh6HGUBqdB9DiP2wvJq7K51cs ev7ahO26fO8tF1eQ2r2fGL30bcnUCe0dbHNaA= Received: by 10.151.144.4 with SMTP id w4mr931678ybn.234.1224039252083; Tue, 14 Oct 2008 19:54:12 -0700 (PDT) Received: from ayiin (203-166-246-80.dyn.iinet.net.au [203.166.246.80]) by mx.google.com with ESMTPS id 5sm18098224yxt.1.2008.10.14.19.54.09 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Oct 2008 19:54:11 -0700 (PDT) Date: Wed, 15 Oct 2008 13:54:05 +1100 From: Norberto Meijome To: freebsd-java@freebsd.org Message-ID: <20081015135405.1d207d25@ayiin> In-Reply-To: <200810141641.m9EGf4QG029110@post.behrens.de> References: <200810141641.m9EGf4QG029110@post.behrens.de> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Java and IPv6 on BSD - it does not work well 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: Wed, 15 Oct 2008 02:54:13 -0000 On Tue, 14 Oct 2008 18:41:04 +0200 "Frank Behrens" wrote: > You can read the complete test description and my observations on > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html I cannot resolve the FQDN > > Do you agree or do you have other experiences? I have ipv6 enabled, but not configured. Any of my java programs that uses network will fail unless i force it to use IPV4 with -Djava.net.preferIPv4Stack=true ( I actually have that in my default shell : JAVAVM_OPTS_javaws=-J-Djava.net.preferIPv4Stack=true JAVAVM_OPTS_java=-Djava.net.preferIPv4Stack=true I am using STABLE + java 1.6 b _________________________ {Beto|Norberto|Numard} Meijome "Always do right. This will gratify some and astonish the rest." Mark Twain I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. From owner-freebsd-java@FreeBSD.ORG Wed Oct 15 03:26:23 2008 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECA921065697; Wed, 15 Oct 2008 03:26:23 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C3E478FC18; Wed, 15 Oct 2008 03:26:23 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from freefall.freebsd.org (glewis@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9F3QNOT090285; Wed, 15 Oct 2008 03:26:23 GMT (envelope-from glewis@freefall.freebsd.org) Received: (from glewis@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9F3QNU2090281; Wed, 15 Oct 2008 03:26:23 GMT (envelope-from glewis) Date: Wed, 15 Oct 2008 03:26:23 GMT Message-Id: <200810150326.m9F3QNU2090281@freefall.freebsd.org> To: glewis@FreeBSD.org, freebsd-java@FreeBSD.org, glewis@FreeBSD.org From: glewis@FreeBSD.org Cc: Subject: Re: java/119654: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError 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: Wed, 15 Oct 2008 03:26:24 -0000 Synopsis: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError Responsible-Changed-From-To: freebsd-java->glewis Responsible-Changed-By: glewis Responsible-Changed-When: Wed Oct 15 03:26:12 UTC 2008 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=119654 From owner-freebsd-java@FreeBSD.ORG Wed Oct 15 05:43:24 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B497106569E for ; Wed, 15 Oct 2008 05:43:24 +0000 (UTC) (envelope-from frank@harz.behrens.de) Received: from post.behrens.de (post.behrens.de [IPv6:2a01:170:1023::1:2]) by mx1.freebsd.org (Postfix) with ESMTP id C41BC8FC41 for ; Wed, 15 Oct 2008 05:43:23 +0000 (UTC) (envelope-from frank@harz.behrens.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=behrens.de; h=from:to:date:mime-version:subject:in-reply-to:references:content-type:content-transfer-encoding:content-description; s=pinky1; t=1224049402; i=frank@harz.behrens.de; bh=4UpDQrvuLiPUeXJTIvvazApTC2cvGIIujC+EJYJCyW0=; b=mslSK5JfSVBsPnd644gwXhK0GlFKahZ7+qbxKVFIHKPSJqjyAkzCFOnvgaAGp1uNFHLLPx5VYZzpBuBMhwF7EQ== Received: from sun.behrens ([IPv6:2a01:170:1023:0:894b:3296:412a:e455]) by post.behrens.de (8.14.2/8.14.2) with ESMTP-MSA id m9F5hHNa039345 for ; Wed, 15 Oct 2008 07:43:17 +0200 (CEST) (envelope-from frank@harz.behrens.de) Message-Id: <200810150543.m9F5hHNa039345@post.behrens.de> From: "Frank Behrens" To: freebsd-java@freebsd.org Date: Wed, 15 Oct 2008 07:43:18 +0200 MIME-Version: 1.0 Priority: normal In-reply-to: <20081015135405.1d207d25@ayiin> References: <200810141641.m9EGf4QG029110@post.behrens.de> X-mailer: Pegasus Mail for Windows (4.31, DE v4.31 R1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Hashcash: 1:23:081015:freebsd-java@freebsd.org::eg/7W5ItzAJgDQPM:000000000UYtS Subject: Re: Java and IPv6 on BSD - it does not work well 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: Wed, 15 Oct 2008 05:43:24 -0000 Norberto Meijome wrote on 15 Oct 2008 13:54: > "Frank Behrens" wrote: > > > You can read the complete test description and my observations on > > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html > > I cannot resolve the FQDN Really? I had enough page requests to be sure it works. > I have ipv6 enabled, but not configured. Any of my java programs that uses May be that's also the reason for your problem with the above mentioned website. It will resolve to an IPv6 address, too. :-) > network will fail unless i force it to use IPV4 with -Djava.net.preferIPv4Stack=true > ( I actually have that in my default shell : > JAVAVM_OPTS_javaws=-J-Djava.net.preferIPv4Stack=true > JAVAVM_OPTS_java=-Djava.net.preferIPv4Stack=true Yes, this is an easy solvable problem, if you want to use IPv4 only. But if you want to use IPv4 and IPv6 in parallel you will get more problems. Try to read the complete report... Regards, Frank -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available. From owner-freebsd-java@FreeBSD.ORG Wed Oct 15 09:15:43 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C3E41065687 for ; Wed, 15 Oct 2008 09:15:43 +0000 (UTC) (envelope-from benno@NLnetLabs.nl) Received: from open.nlnetlabs.nl (open.nlnetlabs.nl [IPv6:2001:7b8:206:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D5FA98FC21 for ; Wed, 15 Oct 2008 09:15:42 +0000 (UTC) (envelope-from benno@NLnetLabs.nl) Received: from tinkerbell.nlnetlabs.nl (tinkerbell.nlnetlabs.nl [213.154.224.13]) (authenticated bits=0) by open.nlnetlabs.nl (8.14.3/8.14.3) with ESMTP id m9F9FcaU023252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Oct 2008 11:15:39 +0200 (CEST) (envelope-from benno@NLnetLabs.nl) Message-ID: <48F5B4BA.40209@NLnetLabs.nl> Date: Wed, 15 Oct 2008 11:15:38 +0200 From: Benno Overeinder User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <200810141641.m9EGf4QG029110@post.behrens.de> In-Reply-To: <200810141641.m9EGf4QG029110@post.behrens.de> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (open.nlnetlabs.nl [213.154.224.1]); Wed, 15 Oct 2008 11:15:39 +0200 (CEST) X-Spam-Status: No, score=-100.0 required=5.0 tests=USER_IN_WHITELIST autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on open.nlnetlabs.nl Subject: Re: Java and IPv6 on BSD - it does not work well 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: Wed, 15 Oct 2008 09:15:43 -0000 Hi, On 10/14/08 6:41 PM, Frank Behrens wrote: > My conclusion: > It is very difficult or impossible to use the current (1.6.0) Java > implementation for server services if they should listen on IPv4 and > IPv6 addresses. With many BSD's default settings it is not even > possible to bind to a combined IPv4/IPv6 wildcard address. > > The current Sun Java implementation should be changed in a way, that > the socket is created with the right address family after the bind > address has been determined. > > > You can read the complete test description and my observations on > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html > > Do you agree or do you have other experiences? > [Note: I read the list, no Cc: necessary] Thank you for the extensive set of tests. On August 25th, 2008 I submitted a post to this email list describing problems with IPv6 and DNS SRV query type. Short summary, DNS SRV query type works fine with IPv4 on FreeBSD, but with IPv6 enabled JRE on FreeBSD, DNS SRV query types result in a DNS error [Root exception is java.io.IOException: Invalid argument]. From what I can deduce, with IPv6 it tries to resolve _xmpp-server._tcp.google.com as an ordinary A (or quad A) query type (which indeed should give a DNS error), instead of the requested DNS SRV query type. The Java code does work correctly in IPv6 mode on Linux, Mac OS X, and Solaris. Maybe the error is a result of one of the basic operations that fail in your test suite. Best, -- Benno -- Benno J. Overeinder NLnet Labs http://www.nlnetlabs.nl/ From owner-freebsd-java@FreeBSD.ORG Fri Oct 17 01:23:38 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99C2D106568A for ; Fri, 17 Oct 2008 01:23:38 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id 5BD0E8FC1E for ; Fri, 17 Oct 2008 01:23:38 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so327784wfg.7 for ; Thu, 16 Oct 2008 18:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:face:mime-version :content-type:content-transfer-encoding; bh=X5gEo/s6PiHuZG+3VJ5opbsRg88wBlcDVdpTAR9ugO0=; b=OkZYsT1/qkRNAcMuWel34+gHaErORWP6LMWWp7aFKIQDieub9ISLk05vid3fOwa3Bu +Y/iGEl+78RuwZR9uPU4wiRfcFQqXFaIeS4WXGuM9pwoCd4bPZSiX0qHjKpdf5onQ0cg mkd6gkmOidY4yiARHv5TplATJs4yzypHaKXQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :face:mime-version:content-type:content-transfer-encoding; b=TRgFqP2kzb7VgrtCq3+HKymPytJ8qFNYBTBLUG0SqXbRzFgT3vddPxvsS7y2pwD3Jf wsiAnLYfDZADaFSLkpHMj2Iokefp6ZovipRXPJKWugmzwKmGW8lR8P23imCPz7/t7n7B oPPdxe6M1sNpbNlcYLdrTBWrdvOnn90s5MyK4= Received: by 10.142.143.14 with SMTP id q14mr1048634wfd.304.1224206617492; Thu, 16 Oct 2008 18:23:37 -0700 (PDT) Received: from ayiin (203-166-246-80.dyn.iinet.net.au [203.166.246.80]) by mx.google.com with ESMTPS id 27sm1743166wfa.2.2008.10.16.18.23.35 (version=SSLv3 cipher=RC4-MD5); Thu, 16 Oct 2008 18:23:36 -0700 (PDT) Date: Fri, 17 Oct 2008 12:23:31 +1100 From: Norberto Meijome To: freebsd-java@freebsd.org Message-ID: <20081017122331.15db5ffc@ayiin> In-Reply-To: <200810150543.m9F5hHNa039345@post.behrens.de> References: <200810141641.m9EGf4QG029110@post.behrens.de> <200810150543.m9F5hHNa039345@post.behrens.de> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Java and IPv6 on BSD - it does not work well 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: Fri, 17 Oct 2008 01:23:38 -0000 On Wed, 15 Oct 2008 07:43:18 +0200 "Frank Behrens" wrote: > > > You can read the complete test description and my observations on > > > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html > > > > I cannot resolve the FQDN > > Really? I had enough page requests to be sure it works. > > > I have ipv6 enabled, but not configured. Any of my java programs that uses > > May be that's also the reason for your problem with the above > mentioned website. It will resolve to an IPv6 address, too. :-) i didnt test it with java :) anyway, all good. > > network will fail unless i force it to use IPV4 with > > -Djava.net.preferIPv4Stack=true ( I actually have that in my default > > shell : JAVAVM_OPTS_javaws=-J-Djava.net.preferIPv4Stack=true > > JAVAVM_OPTS_java=-Djava.net.preferIPv4Stack=true > > Yes, this is an easy solvable problem, if you want to use IPv4 only. > But if you want to use IPv4 and IPv6 in parallel you will get more > problems. Try to read the complete report... I did .. and I didn't propose a solution, but wondered about it and my experience on a somewhat similar situation ( freebsd + java + IPv6 +4 ). b _________________________ {Beto|Norberto|Numard} Meijome "And that's one reason we like to believe in genius. It gives us an excuse for being lazy." Paul Graham I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. From owner-freebsd-java@FreeBSD.ORG Fri Oct 17 02:09:16 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D30E1065686 for ; Fri, 17 Oct 2008 02:09:16 +0000 (UTC) (envelope-from poxenham@resolute.com.au) Received: from mail.resolute.com.au (mail.resolute.com.au [202.168.63.129]) by mx1.freebsd.org (Postfix) with SMTP id 340B18FC17 for ; Fri, 17 Oct 2008 02:09:14 +0000 (UTC) (envelope-from poxenham@resolute.com.au) Received: (qmail 84283 invoked from network); 17 Oct 2008 01:42:33 -0000 Received: from res-mx02.resolute.local (192.168.5.7) by localhost with SMTP; 17 Oct 2008 01:42:33 -0000 Received: from res-mx02.resolute.local ([192.168.5.7]) by res-mx02.resolute.local ([192.168.5.7]) with mapi; Fri, 17 Oct 2008 11:42:33 +1000 From: Peter Oxenham To: "freebsd-java@freebsd.org" Date: Fri, 17 Oct 2008 11:42:31 +1000 Thread-Topic: jdk15 port compile error on FreeBSD 6.2 Thread-Index: Ackv+Z5c7Nt4d+5xS8Sog/uayjZYIA== Message-ID: <1CC30AC5CAF2554C8CE72BBA7E0C38FF0FBCF8875B@res-mx02.resolute.local> Accept-Language: en-US, en-AU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-AU MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: jdk15 port compile error on FreeBSD 6.2 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: Fri, 17 Oct 2008 02:09:16 -0000 I am trying to upgrade to the latest 1.5 JDK via the ports system and am ge= tting the following error. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/rt= .jar 40383151 bytes Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/js= se.jar 279341 bytes Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/ch= arsets.jar 4630580 bytes Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/ex= t/localedata.jar 448822 bytes gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/install/make/pack' gmake PACK_OUTPUTDIR=3D/usr/ports/java/jdk15/work/control/build/bsd-i586/pa= ck/pack-jdk-jars \ VAR_IMAGE_DIR=3D/usr/ports/java/jdk15/work/control/build/bs= d-i586/j2sdk-image \ JARS_TO_PACK=3D"lib/tools.jar jre/lib/rt.jar jre/lib/jsse.j= ar jre/lib/charsets.jar jre/lib/ext/localedata.jar" \ pack-jars gmake[3]: Entering directory `/usr/ports/java/jdk15/work/install/make/pack' /bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586/pack/pack-j= dk-jars for i in lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar= jre/lib/ext/localedata.jar ; do \ /bin/ls -l /usr/ports/java/jdk15/work/control/build/bsd-i586/j2= sdk-image/$i | /usr/bin/awk '{printf("Packing %s %s bytes\n",$9, $5)}' ; \ /bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586= /pack/pack-jdk-jars/`/usr/bin/dirname $i` ; \ /bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586= /j2sdk-image/`/usr/bin/dirname $i` ; \ /usr/ports/java/jdk15/work/control/build/bsd-i586/bin/pack200 -= J-Xmx256m -J-esa -J-ea "--no-gzip" "--config-file=3Dpack.all.properties" /= usr/ports/java/jdk15/work/control/build/bsd-i586/pack/pack-jdk-jars/`/usr/b= in/dirname $i`/`/usr/bin/basename $i .jar`.pack /usr/ports/java/jdk15/work/= control/build/bsd-i586/j2sdk-image/$i || exit 1 ; \ rm -f /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-i= mage/$i ; \ /usr/ports/java/jdk15/work/control/build/bsd-i586/bin/unpack200= /usr/ports/java/jdk15/work/control/build/bsd-i586/pack/pack-jdk-jars/`/u= sr/bin/dirname $i`/`/usr/bin/basename $i .jar`.pack /usr/ports/java/jdk15/w= ork/control/build/bsd-i586/j2sdk-image/$i || exit 1 ; \ done Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-image/lib/t= ools.jar 7043828 bytes Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-image/jre/l= ib/rt.jar 40383151 bytes Killed gmake[3]: *** [pack-jars] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/install/make/pack' gmake[2]: *** [pack-sdk] Error 2 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/install/make/pack' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/install/make' gmake: *** [install-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. *** Error code 1 Stop in /usr/ports/java/jdk15. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This is a similar error as posted on other posts and the fix there was to a= dd the following to /etc/make.conf CFLAGS+=3D-fno-tree-vrp see http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-10/msg= 00475.html The problem is that this seems to be a gcc 4+ specific parameter and I'm ge= tting an error when I try this on my 6.2 box. Any suggestions on how I can get jdk15 compiled correctly? Thanks Peter From owner-freebsd-java@FreeBSD.ORG Fri Oct 17 02:42:11 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5D97106568C for ; Fri, 17 Oct 2008 02:42:11 +0000 (UTC) (envelope-from kurt@intricatesoftware.com) Received: from mail1.intricatesoftware.com (cl-18.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:11::2]) by mx1.freebsd.org (Postfix) with ESMTP id 97CFD8FC16 for ; Fri, 17 Oct 2008 02:42:11 +0000 (UTC) (envelope-from kurt@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.1/8.13.4) with ESMTP id m9H2g8ZG004631; Thu, 16 Oct 2008 22:42:08 -0400 (EDT) Received: from seraph.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.3/8.14.3) with ESMTP id m9H2fuoA018509; Thu, 16 Oct 2008 22:41:57 -0400 (EDT) Received: (from truk@localhost) by seraph.intricatesoftware.com (8.14.3/8.14.3/Submit) id m9H2fsWB014266; Thu, 16 Oct 2008 22:41:54 -0400 (EDT) X-Authentication-Warning: seraph.intricatesoftware.com: truk set sender to kurt@intricatesoftware.com using -f From: Kurt Miller To: freebsd-java@freebsd.org Date: Thu, 16 Oct 2008 22:41:53 -0400 User-Agent: KMail/1.9.10 References: <200810141641.m9EGf4QG029110@post.behrens.de> In-Reply-To: <200810141641.m9EGf4QG029110@post.behrens.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810162241.54070.kurt@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Subject: Re: Java and IPv6 on BSD - it does not work well 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: Fri, 17 Oct 2008 02:42:12 -0000 The networking support in the BSD port is based on the linux/solaris code. When compiled with IPv6 support enabled the JDK uses only IPv6 sockets and relies on IPv4 to IPv6 address mapping. For security reasons all BSD's have v4mapped addresses turned off by default. If you want both IPv6 and IPv4 support in the jdk on FreeBSD you must 1) compile the JDK with IPv6 support, 2) change the net.inet6.ip6.v6only sysctl to 0 using sysctl or via /etc/sysctl.conf, and 3) Use only IPv6 addresses and special addresses as described in: http://java.sun.com/j2se/1.5.0/docs/guide/net/ipv6_guide/index.html#special Note however changing the net.inet6.ip6.v6only to 0 has security implications. The late Dr. Jun-ichiro "itojun" Hagino wrote about the issues in an an RFC draft: http://tools.ietf.org/html/draft-itojun-v6ops-v4mapped-harmful-02 I would not be surprised if there are bugs in the IPv6 code path since it doesn't get tested much. What really needs to happen is to port the Windows approach in the JVM to BSD. On Windows two sockets are created per ServerSocket; one for IPV6 and another for IPv4. This avoids the need to use v4mapped addresses and change the net.inet6.ip6.v6only sysctl. The windows code is sufficiently different that porting to BSD is not trivial. That is why it hasn't been done yet. On Tuesday 14 October 2008 12:41:04 pm Frank Behrens wrote: > Some weeks ago I tried to setup a tomcat server with IPv4 and IPv6 on > my FreeBSD server and observed some problems. This was the starting > point to make a short research about the Java(tm) IPv6 implementation > and something seems to be wrong. > > My conclusion: > It is very difficult or impossible to use the current (1.6.0) Java > implementation for server services if they should listen on IPv4 and > IPv6 addresses. With many BSD's default settings it is not even > possible to bind to a combined IPv4/IPv6 wildcard address. > > The current Sun Java implementation should be changed in a way, that > the socket is created with the right address family after the bind > address has been determined. > > > You can read the complete test description and my observations on > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html > > Do you agree or do you have other experiences? > [Note: I read the list, no Cc: necessary] > > Regards, > Frank > From owner-freebsd-java@FreeBSD.ORG Fri Oct 17 04:41:19 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9CC31065688 for ; Fri, 17 Oct 2008 04:41:19 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 6C11B8FC1C for ; Fri, 17 Oct 2008 04:41:19 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.2/8.14.2) with ESMTP id m9H4h929018571; Thu, 16 Oct 2008 21:43:09 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.2/8.14.2/Submit) id m9H4h8jt018570; Thu, 16 Oct 2008 21:43:08 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 16 Oct 2008 21:43:08 -0700 From: Greg Lewis To: Peter Oxenham Message-ID: <20081017044308.GA18512@misty.eyesbeyond.com> References: <1CC30AC5CAF2554C8CE72BBA7E0C38FF0FBCF8875B@res-mx02.resolute.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1CC30AC5CAF2554C8CE72BBA7E0C38FF0FBCF8875B@res-mx02.resolute.local> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: "freebsd-java@freebsd.org" Subject: Re: jdk15 port compile error on FreeBSD 6.2 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: Fri, 17 Oct 2008 04:41:19 -0000 G'day Peter, On Fri, Oct 17, 2008 at 11:42:31AM +1000, Peter Oxenham wrote: > I am trying to upgrade to the latest 1.5 JDK via the ports system and am getting the following error. > > Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-image/lib/tools.jar 7043828 bytes > Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-image/jre/lib/rt.jar 40383151 bytes > Killed > gmake[3]: *** [pack-jars] Error 1 You, someone else on the machine, or a resource limit killed off the pack process. > The problem is that this seems to be a gcc 4+ specific parameter and I'm getting an error when I try this on my 6.2 box. > > Any suggestions on how I can get jdk15 compiled correctly? Stop whoever or whatever is killing off the process. This isn't a compile error. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Fri Oct 17 07:10:23 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 249E71065696 for ; Fri, 17 Oct 2008 07:10:23 +0000 (UTC) (envelope-from frank@harz.behrens.de) Received: from post.behrens.de (post.behrens.de [IPv6:2a01:170:1023::1:2]) by mx1.freebsd.org (Postfix) with ESMTP id 77B7C8FC1D for ; Fri, 17 Oct 2008 07:10:22 +0000 (UTC) (envelope-from frank@harz.behrens.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=behrens.de; h=from:to:date:mime-version:subject:in-reply-to:references:content-type:content-transfer-encoding:content-description; s=pinky1; t=1224227420; i=frank@harz.behrens.de; bh=WpVTskXISr5iLSEBDLxiYa/twAFeDURBUnoa9QUnPFE=; b=ZsYZNgUu1ColU8renNQkDVcoINIw0UTk9vHTHPXkGJijx2z7YXUIURmr0qftC1jEKBiHdFD/syZmX6PMTQuZ1w== Received: from sun.behrens ([IPv6:2a01:170:1023:0:b54e:dccd:b541:ac74]) by post.behrens.de (8.14.2/8.14.2) with ESMTP-MSA id m9H7AHkx080704 for ; Fri, 17 Oct 2008 09:10:17 +0200 (CEST) (envelope-from frank@harz.behrens.de) Message-Id: <200810170710.m9H7AHkx080704@post.behrens.de> From: "Frank Behrens" To: freebsd-java@freebsd.org Date: Fri, 17 Oct 2008 09:10:17 +0200 MIME-Version: 1.0 Priority: normal In-reply-to: <200810162241.54070.kurt@intricatesoftware.com> References: <200810141641.m9EGf4QG029110@post.behrens.de> X-mailer: Pegasus Mail for Windows (4.31, DE v4.31 R1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Hashcash: 1:23:081017:freebsd-java@freebsd.org::WG0QK2UPXj2rmZwo:000000000NQ0H Subject: Re: Java and IPv6 on BSD - it does not work well 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: Fri, 17 Oct 2008 07:10:23 -0000 Kurt Miller wrote on 16 Oct 2008 22:41: > The networking support in the BSD port is based on the linux/solaris > code. When compiled with IPv6 support enabled the JDK uses only IPv6 > sockets and relies on IPv4 to IPv6 address mapping. For security > reasons all BSD's have v4mapped addresses turned off by default. If > you want both IPv6 and IPv4 support in the jdk on FreeBSD you must > 1) compile the JDK with IPv6 support, 2) change the > net.inet6.ip6.v6only sysctl to 0 using sysctl or via /etc/sysctl.conf, > and 3) Use only IPv6 addresses and special addresses as described in: I agree and 3) is the main problem. You can only use the special addresses. > What really needs to happen is to port the Windows approach in > the JVM to BSD. On Windows two sockets are created per ServerSocket; > one for IPV6 and another for IPv4. This avoids the need to use We should distinguish between two use caes: a) I want to use the "transparent and automatic" IPv6 support in Java. That means I create one server socket and want to be able to receive IPv4 and IPv6 packets. That works in Java for INADDR_ANY and IPV6_V6ONLY=0. For other addresses and/or IPV6_V6ONLY=1 you need two server sockets (Windows approach). BTW: It was not a surprise for me to see problems with a), it is a special case. b) I want to listen with a socket to a specific IPv6 address and with another socket to a specific IPv4 address. A special case? Not for other programming languages. In this case the Java runtime creates always an IPv6 socket and later tries to bind with an IPv4 or IPv6 address - of course it will fail for IPv4. Here the solution should be: At first determine the address type and create later the socket with right address family. I wonder, that I did not find error reports about this issue. Did nobody discover, that listening to "localhost" does not work on an IPv6 enabled system? -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available. From owner-freebsd-java@FreeBSD.ORG Sat Oct 18 01:13:18 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F25141065690 for ; Sat, 18 Oct 2008 01:13:18 +0000 (UTC) (envelope-from brian@experts-exchange.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id DAA698FC18 for ; Sat, 18 Oct 2008 01:13:18 +0000 (UTC) (envelope-from brian@experts-exchange.com) Received: from [192.168.103.26] (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with ESMTP id 314EBD800C for ; Fri, 17 Oct 2008 17:37:04 -0700 (PDT) Message-ID: <48F92FAB.10308@experts-exchange.com> Date: Fri, 17 Oct 2008 17:36:59 -0700 From: Brian Gardner User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: multipart/mixed; boundary="------------040208080704030207060306" Subject: core dump from diablo jdk 1.6 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: Sat, 18 Oct 2008 01:13:19 -0000 This is a multi-part message in MIME format. --------------040208080704030207060306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm trying to use diablo-jdk-freebsd7.amd64.1.6.0.07.02 to run tomcat, and am not running under heavy load. It looks like it's dumping from within the CMS_Final_Remark phase. Attached is the hs error file. I also have a java.core file that is too big to send via email. I'm switching over to the java/jdk16 port to see if I can at least compile it to give me more information, but any help will be greatly appreciated. Brian -Dnull=null -Xmx1300M -Xms1300M -XX:NewSize=64M -XX:+DisableExplicitGC -XX:PermSize=38M -XX:MaxPermSize=76M -XX:CMSInitiatingOccupancyFraction=60 -XX: SurvivorRatio=2 -XX:+UseCMSInitiatingOccupancyOnly -Xnoclassgc -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -verbose:gc -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+UseSplitVe rifier --------------040208080704030207060306 Content-Type: text/plain; name="hs_err_pid11218.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hs_err_pid11218.log" # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000800d6d991, pid=11218, tid=0x18510f0 # # Java VM: Diablo Java HotSpot(TM) 64-Bit Server VM (10.0-b23 mixed mode bsd-amd64) # Problematic frame: # V [libjvm.so+0x26d991] # # Please submit bug reports to freebsd-java@FreeBSD.org # --------------- T H R E A D --------------- Current thread (0x000000085beef000): VMThread [stack: 0x00007ffffeef3000,0x00007ffffeff3000] [id=25497840] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000260 Registers: RAX=0x0000000000000000, RBX=0x00007ffffeff29d0, RCX=0x0000000801830aa0, RDX=0x00007ffffeff2a10 RSP=0x00007ffffeff2840, RBP=0x00007ffffeff2850, RSI=0x000000083ca769a0, RDI=0x000000083ca713e9 R8 =0x00007ffffeff2a10, R9 =0x00007ffffeff29d0, R10=0x0000000000000000, R11=0x00000008010e56b0 R12=0x0000000000080000, R13=0x000000085dcfa160, R14=0x00007ffffeff2a10, R15=0x0000000000000000 RIP=0x0000000800d6d991, EFL=0x0000000000000000, ERR=0x0000000000000004 TRAPNO=0x000000000000000c Top of Stack: (sp=0x00007ffffeff2840) 0x00007ffffeff2840: 000000085dfba320 0000000000000002 0x00007ffffeff2850: 00007ffffeff28e0 00000008010362c3 0x00007ffffeff2860: 0000000801830cf8 0000000800651be0 0x00007ffffeff2870: 000000085dfba300 000000080082939c 0x00007ffffeff2880: 0000003000000018 00007ffffeff2970 0x00007ffffeff2890: 00007ffffeff28a0 0000000000000015 0x00007ffffeff28a0: 0000000000000000 0000000800fe0b93 0x00007ffffeff28b0: 0000000048f8f3cb 00007ffffeff2a10 0x00007ffffeff28c0: 000000085dcfa160 0000000000000000 0x00007ffffeff28d0: 00007ffffeff2920 00007ffffeff29d0 0x00007ffffeff28e0: 00007ffffeff2980 0000000801036540 0x00007ffffeff28f0: 00007ffffeff29d0 0000000000000000 0x00007ffffeff2900: 00007ffffeff2a10 0000000801830cf8 0x00007ffffeff2910: 000000085bef8c10 0000000000949cb8 0x00007ffffeff2920: 0000000000000100 0000000000000000 0x00007ffffeff2930: 0000000801801070 0000000801801000 0x00007ffffeff2940: 00007ffffeff2960 0000000801801070 0x00007ffffeff2950: 0000000048f8f3cb 0000000801830cf8 0x00007ffffeff2960: 0000000801830800 000000085dcfa160 0x00007ffffeff2970: 00007ffffeff2a10 000000085dfc21c0 0x00007ffffeff2980: 00007ffffeff2af0 0000000800d74cbd 0x00007ffffeff2990: 0000000801817330 00007ffffeff2a50 0x00007ffffeff29a0: 00007ffffeff2a80 00007ffffeff29d0 0x00007ffffeff29b0: 000000085bef8c10 000000085bef8fe8 0x00007ffffeff29c0: 000000085bef8c10 000000085bef8c00 0x00007ffffeff29d0: 00000008012b2e90 0000000801830800 0x00007ffffeff29e0: 000000080f980000 00000000097b0000 0x00007ffffeff29f0: 0000000801830aa0 0000000801830960 0x00007ffffeff2a00: 00007ffffeff2a10 000000080082939c 0x00007ffffeff2a10: 00000008012b2f30 0000000000000000 0x00007ffffeff2a20: 0000000801830800 000000080f980000 0x00007ffffeff2a30: 00000000097b0000 0000000801830aa0 Instructions: (pc=0x0000000800d6d991) 0x0000000800d6d981: 22 48 8b 7e 08 48 8b 53 30 48 83 c7 10 48 8b 07 0x0000000800d6d991: ff 90 60 02 00 00 48 8b 4b 20 48 8b 41 78 48 85 Stack: [0x00007ffffeef3000,0x00007ffffeff3000], sp=0x00007ffffeff2840, free space=1022k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x26d991] V [libjvm.so+0x5362c3] V [libjvm.so+0x536540] V [libjvm.so+0x274cbd] V [libjvm.so+0x2782f6] V [libjvm.so+0x27872c] V [libjvm.so+0x278a31] V [libjvm.so+0x615496] V [libjvm.so+0x61d2bc] V [libjvm.so+0x61be83] V [libjvm.so+0x61c5e3] V [libjvm.so+0x61c890] V [libjvm.so+0x4e53f6] VM_Operation (0x00007fffff0f3ed0): CMS_Final_Remark, mode: safepoint, requested by thread 0x000000085beee800 --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x000000085ed61000 JavaThread "Thread-25" daemon [_thread_blocked, id=25512192, stack(0x00007ffffc7cc000,0x00007ffffc8cc000)] 0x0000000861807800 JavaThread "http-8079-4" daemon [_thread_blocked, id=25511456, stack(0x00007ffffc8cd000,0x00007ffffc9cd000)] 0x0000000861e0a800 JavaThread "http-8079-3" daemon [_thread_blocked, id=25511088, stack(0x00007ffffc9ce000,0x00007ffffcace000)] 0x000000085edd6800 JavaThread "Thread-21" daemon [_thread_blocked, id=25510720, stack(0x00007ffffcacf000,0x00007ffffcbcf000)] 0x000000085edd6000 JavaThread "Thread-20" daemon [_thread_blocked, id=25510352, stack(0x00007ffffcbd0000,0x00007ffffccd0000)] 0x000000085ed62800 JavaThread "Thread-19" daemon [_thread_blocked, id=25509984, stack(0x00007ffffccd1000,0x00007ffffcdd1000)] 0x000000085ed62000 JavaThread "Thread-18" daemon [_thread_blocked, id=25506672, stack(0x00007ffffd4d9000,0x00007ffffd5d9000)] 0x000000085ed60000 JavaThread "Thread-17" daemon [_thread_blocked, id=25509616, stack(0x00007ffffcdd2000,0x00007ffffced2000)] 0x000000085ed5f800 JavaThread "Store CaptchaStoreCache Expiry Thread" daemon [_thread_blocked, id=25509248, stack(0x00007ffffced3000,0x00007ffffcfd3000)] 0x000000085ed5f000 JavaThread "Store CaptchaStoreCache Spool Thread" daemon [_thread_blocked, id=25508880, stack(0x00007ffffcfd4000,0x00007ffffd0d4000)] 0x000000085ed5e800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=25508512, stack(0x00007ffffd0d5000,0x00007ffffd1d5000)] 0x000000085ed5e000 JavaThread "Thread-16" daemon [_thread_blocked, id=25507776, stack(0x00007ffffd1d6000,0x00007ffffd2d6000)] 0x000000085ed5c800 JavaThread "Thread-15" daemon [_thread_blocked, id=25507408, stack(0x00007ffffd2d7000,0x00007ffffd3d7000)] 0x000000085ed5d000 JavaThread "Thread-14" daemon [_thread_blocked, id=25507040, stack(0x00007ffffd3d8000,0x00007ffffd4d8000)] 0x000000085ed5c000 JavaThread "Thread-13" daemon [_thread_blocked, id=25506304, stack(0x00007ffffd5da000,0x00007ffffd6da000)] 0x000000085ed5b800 JavaThread "Thread-12" daemon [_thread_blocked, id=25505936, stack(0x00007ffffd6db000,0x00007ffffd7db000)] 0x0000000861e0a000 JavaThread "http-8079-2" daemon [_thread_blocked, id=1642201744, stack(0x00007ffffd7dc000,0x00007ffffd8dc000)] 0x000000085edd8800 JavaThread "Thread-10" daemon [_thread_blocked, id=25505568, stack(0x00007ffffd8dd000,0x00007ffffd9dd000)] 0x000000085edd8000 JavaThread "Thread-9" daemon [_thread_blocked, id=25505200, stack(0x00007ffffd9de000,0x00007ffffdade000)] 0x0000000861e09800 JavaThread "http-8079-1" daemon [_thread_blocked, id=1642201376, stack(0x00007ffffdadf000,0x00007ffffdbdf000)] 0x0000000861119000 JavaThread "Thread-7" [_thread_blocked, id=1645290128, stack(0x00007ffffdbe0000,0x00007ffffdce0000)] 0x0000000861116000 JavaThread "Thread-6" daemon [_thread_blocked, id=1645289760, stack(0x00007ffffdce1000,0x00007ffffdde1000)] 0x000000085edd5800 JavaThread "http-8079-Acceptor-0" daemon [_thread_in_native, id=25504832, stack(0x00007ffffdde2000,0x00007ffffdee2000)] 0x000000085edd5000 JavaThread "http-8079-Sendfile-0" daemon [_thread_blocked, id=25504464, stack(0x00007ffffdee3000,0x00007ffffdfe3000)] 0x000000085edd3000 JavaThread "http-8079-CometPoller-0" daemon [_thread_blocked, id=25504096, stack(0x00007ffffdfe4000,0x00007ffffe0e4000)] 0x000000085edd2800 JavaThread "http-8079-Poller-0" daemon [_thread_blocked, id=25503728, stack(0x00007ffffe0e5000,0x00007ffffe1e5000)] 0x000000085edd2000 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=25503360, stack(0x00007ffffe1e6000,0x00007ffffe2e6000)] 0x000000085edd4800 JavaThread "Thread-4" [_thread_blocked, id=25502992, stack(0x00007ffffe2e7000,0x00007ffffe3e7000)] 0x000000085edd4000 JavaThread "Thread-3" [_thread_blocked, id=25502624, stack(0x00007ffffe3e8000,0x00007ffffe4e8000)] 0x000000085edd3800 JavaThread "Thread-2" [_thread_blocked, id=25502256, stack(0x00007ffffe4e9000,0x00007ffffe5e9000)] 0x000000085edd1800 JavaThread "Thread-1" [_thread_blocked, id=25501888, stack(0x00007ffffe5ea000,0x00007ffffe6ea000)] 0x000000085bef3800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=25500416, stack(0x00007ffffe7ec000,0x00007ffffe8ec000)] 0x000000085bef3000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=25500048, stack(0x00007ffffe8ed000,0x00007ffffe9ed000)] 0x000000085bef2800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=25499680, stack(0x00007ffffe9ee000,0x00007ffffeaee000)] 0x000000085bef2000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=25499312, stack(0x00007ffffeaef000,0x00007ffffebef000)] 0x000000085bef1800 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=25498944, stack(0x00007ffffebf0000,0x00007ffffecf0000)] 0x000000085bef0000 JavaThread "Finalizer" daemon [_thread_blocked, id=25498576, stack(0x00007ffffecf1000,0x00007ffffedf1000)] 0x000000085beef800 JavaThread "Reference Handler" daemon [_thread_blocked, id=25498208, stack(0x00007ffffedf2000,0x00007ffffeef2000)] 0x000000080182b800 JavaThread "main" [_thread_in_native, id=10490512, stack(0x00007fffffaff000,0x00007fffffbff000)] Other Threads: =>0x000000085beef000 VMThread [stack: 0x00007ffffeef3000,0x00007ffffeff3000] [id=25497840] 0x000000085bef4000 WatcherThread [stack: 0x00007ffffe6eb000,0x00007ffffe7eb000] [id=25500784] VM state:at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) [0x0000000801802880/0x00000008018028d0] Threads_lock - owner thread: 0x000000085beef000 [0x0000000801808800/0x0000000801816200] Heap_lock - owner thread: 0x000000085beee800 Heap par new generation total 124800K, used 61024K [0x0000000805700000, 0x000000080f980000, 0x000000080f980000) eden space 83200K, 23% used [0x0000000805700000, 0x00000008069f8278, 0x000000080a840000) from space 41600K, 100% used [0x000000080d0e0000, 0x000000080f980000, 0x000000080f980000) to space 41600K, 0% used [0x000000080a840000, 0x000000080a840000, 0x000000080d0e0000) concurrent mark-sweep generation total 1164800K, used 927057K [0x000000080f980000, 0x0000000856b00000, 0x0000000856b00000) concurrent-mark-sweep perm gen total 66848K, used 40158K [0x0000000856b00000, 0x000000085ac48000, 0x000000085b700000) Dynamic libraries: 0x0000000000400000 /usr/local/diablo-jdk1.6.0/bin/java 0x0000000800643000 /lib/libthr.so.3 0x0000000800759000 /lib/libc.so.7 0x0000000800b00000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so 0x00000008013a4000 /usr/lib/libstdc++.so.6 0x00000008015b0000 /lib/libm.so.5 0x00000008016ca000 /lib/libgcc_s.so.1 0x0000000801900000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/native_threads/libhpi.so 0x0000000801a0d000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libverify.so 0x0000000801b1e000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so 0x0000000801c52000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so 0x0000000801d5b000 /lib/libz.so.4 0x000000085ef00000 /var/ee/java/lib/libtcnative-1.so 0x000000085f020000 /usr/lib/libssl.so.5 0x000000085f16a000 /lib/libcrypto.so.5 0x000000085f3fc000 /usr/local/lib/libapr-1.so.2 0x000000085f522000 /lib/libcrypt.so.4 0x0000000861a00000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libnet.so 0x0000000862600000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libmanagement.so 0x000000085f900000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libawt.so 0x000000085fc00000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/headless/libmawt.so 0x0000000860100000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libfontmanager.so 0x0000000860500000 /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libnio.so 0x0000000800511000 /libexec/ld-elf.so.1 VM Arguments: jvm_args: -Dnull=null -Xmx1300M -Xms1300M -XX:NewSize=64M -XX:+DisableExplicitGC -XX:PermSize=38M -XX:MaxPermSize=76M -XX:CMSInitiatingOccupancyFraction=60 -XX:SurvivorRatio=2 -XX:+UseCMSInitiatingOccupancyOnly -Xnoclassgc -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -verbose:gc -Xloggc:/home/users/ee/tomcat/logs/gc.2008-10-17_12:31:09.log -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+UseSplitVerifier -XX:+PrintTenuringDistribution java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/local/diablo-jdk1.6.0 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin://bin LD_LIBRARY_PATH=/usr/local/diablo-jdk1.6.0/jre/lib/amd64/server:/usr/local/diablo-jdk1.6.0/jre/lib/amd64:/usr/local/diablo-jdk1.6.0/jre/../lib/amd64:/var/ee/java/lib HOSTTYPE=FreeBSD OSTYPE=FreeBSD MACHTYPE=unknown Signal Handlers: SIGSEGV: [libjvm.so+0x617aa0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGBUS: [libjvm.so+0x617aa0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGFPE: [libjvm.so+0x4e17a0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGPIPE: [libjvm.so+0x4e17a0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGXFSZ: [libjvm.so+0x4e17a0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGILL: [libjvm.so+0x4e17a0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x4e3fa0], sa_mask[0]=0x00000000, sa_flags=0x00000042 SIGHUP: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGTERM: [libjvm.so+0x4e2ca0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGQUIT: [libjvm.so+0x4e2ca0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 --------------- S Y S T E M --------------- OS:Bsd uname:FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 rlimit: STACK 524288k, CORE infinity, NPROC 5547, NOFILE 11095 CPU:total 8 (4 cores per cpu, 1 threads per core) family 6 model 7 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3 Memory: 4k page, physical 8073468k(2018367k free) vm_info: Diablo Java HotSpot(TM) 64-Bit Server VM (10.0-b23) for bsd-amd64 JRE (1.6.0_07-b02), built on May 12 2008 20:56:50 by "truk" with gcc 4.2.1 20070719 [FreeBSD] time: Fri Oct 17 13:21:31 2008 elapsed time: 3021 seconds --------------040208080704030207060306--