From owner-freebsd-java@FreeBSD.ORG Mon Jan 28 11:06:46 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A7C4591E for ; Mon, 28 Jan 2013 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 81270CD8 for ; Mon, 28 Jan 2013 11:06:46 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0SB6kTW034603 for ; Mon, 28 Jan 2013 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0SB6krr034597 for freebsd-java@FreeBSD.org; Mon, 28 Jan 2013 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Jan 2013 11:06:46 GMT Message-Id: <201301281106.r0SB6krr034597@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 Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 11:06:46 -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 ports/175300 java java/jamvm fails to compile on ARM6 (raspberry-pi) o ports/174826 java java/openjdk6: gmake[5]: *** [/usr/ports/java/openjdk6 o ports/174825 java java/openjdk6: fails to build on i386 (64-bit mode not o java/173981 java Vuze and Java Errors o ports/173603 java java/icedtea-web starts javaws incorrectly o java/173592 java java/openjdk6 fails on FreeBSD_9_1_RC2 o ports/173210 java java/openjdk6 - use better src placement o java/172962 java Sig11 while compiling OpenJDK6-b26 using clang o ports/171014 java [patch] Correct java/openjdk6 Dependency Declaration o ports/167903 java [PATCH] java/openjdk6: Fix build failure in 8.3 jail r o ports/164941 java [UPDATE] [NEW PORTS] java/classpath-initial, including o ports/162991 java java/openjdk6 fails to build o java/162522 java OpenJDK 6 is not setting close on exec o java/160553 java Jaikoz java based audio tagger core dumps o ports/159787 java java/openjdk6 nio muti-thread bug o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c f java/147512 java Crash of RXTX-2.1-7 on AMD64 system o java/140002 java java/openjdk6: jconsole dumps tomcat when contacting j o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to 24 problems total. From owner-freebsd-java@FreeBSD.ORG Tue Jan 29 20:47:46 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 86AA32EE for ; Tue, 29 Jan 2013 20:47:46 +0000 (UTC) (envelope-from pphillips@experts-exchange.com) Received: from mail.l3.redsrci.com (mail.pub.l3.redsrci.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 6C6B6740 for ; Tue, 29 Jan 2013 20:47:46 +0000 (UTC) Received: from mail.l3.redsrci.com (localhost [127.0.0.1]) by mail.l3.redsrci.com (Postfix) with ESMTP id CD2EC6F1B99 for ; Tue, 29 Jan 2013 12:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= experts-exchange.com; h=content-transfer-encoding:content-type :content-type:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=ee; t=1359492459; x= 1361306859; bh=Rdx0rSWoyaZM7lZjhKfwc2SK1+q2vWyOu+4LjvoVl44=; b=o pFc6Bq3hCyKZoDSvq8R2b8IjHwwp6/DGPbSPne3dTEy/GRkQoqEzjYnBG8VsHKbe eBa56bCATq6ZKHoAjnlKlUhZ0JUXMjuIwMwTwwbd1oPagb72Df06h2R2zDiNNXGS 0UpyRMb6A3HpUePCN4YpkdN/GOQZmcvLJGNE2Lqb8Y= X-Virus-Scanned: amavisd-new at redsrci.com Received: from mail.l3.redsrci.com ([127.0.0.1]) by mail.l3.redsrci.com (mail.l3.redsrci.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PlnM6E3wSbin for ; Tue, 29 Jan 2013 12:47:39 -0800 (PST) Received: from [192.168.103.98] (fw1.pub.noc.redsrci.com [72.29.164.238]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pphillips) by mail.l3.redsrci.com (Postfix) with ESMTPSA id A39106F1B98 for ; Tue, 29 Jan 2013 12:47:39 -0800 (PST) Message-ID: <5108356B.1060008@experts-exchange.com> Date: Tue, 29 Jan 2013 12:47:39 -0800 From: Phil Phillips User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: OpenJDK7: libnet.so getting closed twice Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 20:47:46 -0000 Hey all, I have some code running on the latest version of OpenJDK7. In one thread, it opens a ServerSocket. In another, it loads a configuration file. Once in a while, the config file fails to load with: Caused by: java.io.FileNotFoundException: global.properties (Bad file descriptor) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:97) at java.io.FileReader.(FileReader.java:58) Digging in a little deeper with truss, I see something like: open("/usr/local/openjdk7/jre/lib/amd64/libnet.so",O_RDONLY,01) = 63 (0x3f) close(63) = 0 (0x0) close(63) ERR#9 'Bad file descriptor'\ ... open("global.properties",O_RDONLY,00) = 63 (0x3f) fstat(63,{ mode=-rw-rw-r-- ,inode=32200398,size=18260,blksize=16384 }) = 0 (0x0) fcntl(63,F_GETFD,) libnet.so is getting opened (interestingly, not read - though it was read previously) and then closed *twice*. It looks like there's a race condition that can cause the "bad file descriptor" error if: 1) libnet.so opened 2) libnet.so closed (1st time) 3) config file opened (inherits now-free file descriptor) 4) libnet.so closed (2nd time - invalidates file descriptor for config file) I don't see this kind of behavior in OpenJDK6. Does anyone know what might cause libnet.so to be closed twice in OpenJDK7? Thanks, Phil From owner-freebsd-java@FreeBSD.ORG Wed Jan 30 20:54:40 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A4198D9C for ; Wed, 30 Jan 2013 20:54:40 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with ESMTP id 153E8684 for ; Wed, 30 Jan 2013 20:54:39 +0000 (UTC) Received: (qmail 6587 invoked by uid 80); 30 Jan 2013 20:54:38 -0000 Received: from dsdf-4db52923.pool.mediaWays.net (dsdf-4db52923.pool.mediaWays.net [77.181.41.35]) by avocado.salatschuessel.net (Horde Framework) with HTTP; Wed, 30 Jan 2013 21:54:38 +0100 Date: Wed, 30 Jan 2013 21:54:38 +0100 Message-ID: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> From: Oliver Lehmann To: java@freebsd.org Subject: migration diablo-jre openjdk-jre User-Agent: Internet Messaging Program (IMP) H5 (6.0.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 20:54:40 -0000 Hi, I'm running pms (playstation media server) inside a jail on one of my systems. I used diablo-jre until now but wanting to migrate to openjdk as diablo-jre is no longer available. But - for unknown reasons - when I start "pms" with openjdk-jre, it does not do any network communication. When started with diablo-jre I can capture with tcpdump the following data: 21:49:48.822292 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 292 21:49:48.850628 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp v3 report, 1 group record(s) 21:49:49.050622 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp v3 report, 1 group record(s) 21:49:49.506727 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 292 21:49:50.255947 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 301 21:49:50.351726 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 301 21:49:50.701894 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 344 21:49:51.105729 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 344 21:49:51.446907 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 356 21:49:52.137731 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 356 21:49:52.969897 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 358 21:49:53.114726 IP bigoli.salatschuessel.net.45304 > 239.255.255.250.1900: UDP, length 358 21:49:53.855629 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp v3 report, 1 group record(s) 21:49:54.055628 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp v3 report, 1 group record(s) 21:49:57.058625 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp v3 report, 1 group record(s) bigoli is the jail gurke-re0 is the host system. So far so good - when started with openjdk 6 (jre), it does not send anything over the network while the software itself claims to send ALIVE signals without any indication of an error. Is there something I could debug to find out what is going on with openjdk on FreeBSD? PS: please keep me CCed. From owner-freebsd-java@FreeBSD.ORG Wed Jan 30 23:06:18 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BB4EE90 for ; Wed, 30 Jan 2013 23:06:18 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from cpsmtpb-ews10.kpnxchange.com (cpsmtpb-ews10.kpnxchange.com [213.75.39.15]) by mx1.freebsd.org (Postfix) with ESMTP id 1EDDFC1D for ; Wed, 30 Jan 2013 23:06:17 +0000 (UTC) Received: from cpsps-ews26.kpnxchange.com ([10.94.84.192]) by cpsmtpb-ews10.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 31 Jan 2013 00:03:57 +0100 Received: from CPSMTPM-TLF101.kpnxchange.com ([195.121.3.4]) by cpsps-ews26.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 31 Jan 2013 00:03:57 +0100 Received: from sjakie.klop.ws ([212.182.167.131]) by CPSMTPM-TLF101.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 31 Jan 2013 00:05:09 +0100 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 268731908; Thu, 31 Jan 2013 00:05:10 +0100 (CET) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: java@freebsd.org, "Oliver Lehmann" Subject: Re: migration diablo-jre openjdk-jre References: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> Date: Thu, 31 Jan 2013 00:05:09 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> User-Agent: Opera Mail/12.12 (FreeBSD) X-OriginalArrivalTime: 30 Jan 2013 23:05:09.0974 (UTC) FILETIME=[408E5F60:01CDFF3E] X-RcptDomain: freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 23:06:18 -0000 On Wed, 30 Jan 2013 21:54:38 +0100, Oliver Lehmann wrote: > Hi, > > I'm running pms (playstation media server) inside a jail on one of my > systems. > I used diablo-jre until now but wanting to migrate to openjdk as > diablo-jre is > no longer available. > But - for unknown reasons - when I start "pms" with openjdk-jre, it does > not > do any network communication. > > When started with diablo-jre I can capture with tcpdump the following > data: > > > 21:49:48.822292 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 292 > 21:49:48.850628 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp > v3 report, 1 group record(s) > 21:49:49.050622 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp > v3 report, 1 group record(s) > 21:49:49.506727 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 292 > 21:49:50.255947 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 301 > 21:49:50.351726 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 301 > 21:49:50.701894 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 344 > 21:49:51.105729 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 344 > 21:49:51.446907 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 356 > 21:49:52.137731 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 356 > 21:49:52.969897 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 358 > 21:49:53.114726 IP bigoli.salatschuessel.net.45304 > > 239.255.255.250.1900: UDP, length 358 > 21:49:53.855629 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp > v3 report, 1 group record(s) > 21:49:54.055628 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp > v3 report, 1 group record(s) > 21:49:57.058625 IP gurke-re0.salatschuessel.net > igmp.mcast.net: igmp > v3 report, 1 group record(s) > > > bigoli is the jail gurke-re0 is the host system. > > So far so good - when started with openjdk 6 (jre), it does not send > anything over the network while the software itself claims to send ALIVE > signals without any indication of an error. Is there something I could > debug to find out what is going on with openjdk on FreeBSD? > > PS: please keep me CCed. Does netstat -p or sockstat show any binded ports from your program? At what IP address? Ronald. PS: please do not CC me. I am already on this list. ;-) From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 06:30:48 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 04ABBCEC for ; Thu, 31 Jan 2013 06:30:48 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with ESMTP id 607C7E15 for ; Thu, 31 Jan 2013 06:30:46 +0000 (UTC) Received: (qmail 23954 invoked by uid 80); 31 Jan 2013 06:30:44 -0000 Received: from 164.61.223.12 ([164.61.223.12]) by avocado.salatschuessel.net (Horde Framework) with HTTP; Thu, 31 Jan 2013 07:30:44 +0100 Date: Thu, 31 Jan 2013 07:30:44 +0100 Message-ID: <20130131073044.Horde.26xAh7xsQ27FI55KT1eoWg9@avocado.salatschuessel.net> From: Oliver Lehmann To: Ronald Klop Subject: Re: migration diablo-jre openjdk-jre References: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H5 (6.0.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Cc: java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 06:30:48 -0000 Ronald Klop wrote: > Does netstat -p or sockstat show any binded ports from your program? > At what IP address? "-p" is not a valid netstat switch. diablo-jre: fstat (executed on host) root java 27856 text /usr 1754748 -rwxr-xr-x 95014 r root java 27856 wd /usr 1706459 drwxr-xr-x 2560 r root java 27856 root /usr 1657601 drwxr-xr-x 512 r root java 27856 jail /usr 1657601 drwxr-xr-x 512 r root java 27856 0 /usr/JAILS/bigoli/dev 21 crw-rw-rw- null r root java 27856 1 /usr/JAILS/bigoli/dev 21 crw-rw-rw- null w root java 27856 2 /usr/JAILS/bigoli/dev 21 crw-rw-rw- null w root java 27856 3 /usr 1755014 -rw-r--r-- 49062836 r root java 27856 4 /usr 1706566 -rwxrwxrwx 33514259 r root java 27856 5 /usr 1705271 -rw-r--r-- 6768 w root java 27856 6 /usr 1705262 -rw-r--r-- 8472 w root java 27856 7 /usr 1754970 -rw-r--r-- 313976 r root java 27856 8* internet stream tcp fffffe0052d5fb70 root java 27856 10* pipe fffffe000687e2d8 <-> fffffe000687e430 0 rw root java 27856 11* internet stream tcp root java 27856 12* pipe fffffe000687e430 <-> fffffe000687e2d8 0 rw root java 27856 13* internet dgram udp fffffe0052bb0310 root java 27856 14 /usr/JAILS/bigoli/dev 25 crw-rw-rw- random r root java 27856 15 /usr/JAILS/bigoli/dev 25 crw-rw-rw- random r sockstat (executed on host) root java 27856 8 tcp4 10.0.0.23:5001 *:* root java 27856 13 udp4 10.0.0.23:1900 *:* openjdk6-jre: fstat (executed on host) root java 36598 text /usr 2002099 -r-xr-xr-x 56460 r root java 36598 wd /usr 1706459 drwxr-xr-x 2560 r root java 36598 root /usr 1657601 drwxr-xr-x 512 r root java 36598 jail /usr 1657601 drwxr-xr-x 512 r root java 36598 0 /usr/JAILS/bigoli/dev 21 crw-rw-rw- null r root java 36598 1 /usr/JAILS/bigoli/dev 21 crw-rw-rw- null w root java 36598 2 /usr/JAILS/bigoli/dev 21 crw-rw-rw- null w root java 36598 3 /usr 2002155 -r--r--r-- 52984843 r root java 36598 4 /usr 1706566 -rwxrwxrwx 33514259 r root java 36598 5 /usr 1705271 -rw-r--r-- 6634 w root java 36598 6 /usr 1705271 -rw-r--r-- 6634 w root java 36598 7 /usr 2002161 -r--r--r-- 449182 r root java 36598 8 /usr/JAILS/bigoli/dev 25 crw-rw-rw- random r root java 36598 9 /usr/JAILS/bigoli/dev 25 crw-rw-rw- random r root java 36598 10* internet stream tcp fffffe0052a487a0 root java 36598 12* pipe fffffe001d1f1000 <-> fffffe001d1f1158 0 rw root java 36598 13* internet stream tcp root java 36598 14* pipe fffffe001d1f1158 <-> fffffe001d1f1000 0 rw root java 36598 15 root java 36598 16* internet dgram udp fffffe0006928188 sockstat (executed on host) root java 36598 10 tcp4 10.0.0.23:5001 *:* root java 36598 16 udp4 10.0.0.23:1900 *:* From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 09:39:46 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B66152C8 for ; Thu, 31 Jan 2013 09:39:46 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 517057C5 for ; Thu, 31 Jan 2013 09:39:45 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1U0qcK-0002J3-Il; Thu, 31 Jan 2013 10:39:37 +0100 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1U0qcK-0004L7-Mp; Thu, 31 Jan 2013 10:39:36 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: "Oliver Lehmann" Subject: Re: migration diablo-jre openjdk-jre References: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> <20130131073044.Horde.26xAh7xsQ27FI55KT1eoWg9@avocado.salatschuessel.net> Date: Thu, 31 Jan 2013 10:39:36 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <20130131073044.Horde.26xAh7xsQ27FI55KT1eoWg9@avocado.salatschuessel.net> User-Agent: Opera Mail/12.13 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.0 X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.1 X-Scan-Signature: 9484ae446d4f83cee8bf28db5146d16c Cc: java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 09:39:46 -0000 On Thu, 31 Jan 2013 07:30:44 +0100, Oliver Lehmann wrote: > > Ronald Klop wrote: > >> Does netstat -p or sockstat show any binded ports from your program? At >> what IP address? > > "-p" is not a valid netstat switch. Oh, sorry that is on Windows or Linux to print the program name. I confused the options. > > diablo-jre: > > fstat (executed on host) > root java 27856 text /usr 1754748 -rwxr-xr-x 95014 r > root java 27856 wd /usr 1706459 drwxr-xr-x 2560 r > root java 27856 root /usr 1657601 drwxr-xr-x 512 r > root java 27856 jail /usr 1657601 drwxr-xr-x 512 r > root java 27856 0 /usr/JAILS/bigoli/dev 21 crw-rw-rw- > null r > root java 27856 1 /usr/JAILS/bigoli/dev 21 crw-rw-rw- > null w > root java 27856 2 /usr/JAILS/bigoli/dev 21 crw-rw-rw- > null w > root java 27856 3 /usr 1755014 -rw-r--r-- 49062836 r > root java 27856 4 /usr 1706566 -rwxrwxrwx 33514259 r > root java 27856 5 /usr 1705271 -rw-r--r-- 6768 w > root java 27856 6 /usr 1705262 -rw-r--r-- 8472 w > root java 27856 7 /usr 1754970 -rw-r--r-- 313976 r > root java 27856 8* internet stream tcp fffffe0052d5fb70 > root java 27856 10* pipe fffffe000687e2d8 <-> > fffffe000687e430 0 rw > root java 27856 11* internet stream tcp > root java 27856 12* pipe fffffe000687e430 <-> > fffffe000687e2d8 0 rw > root java 27856 13* internet dgram udp fffffe0052bb0310 > root java 27856 14 /usr/JAILS/bigoli/dev 25 crw-rw-rw- > random r > root java 27856 15 /usr/JAILS/bigoli/dev 25 crw-rw-rw- > random r > > sockstat (executed on host) > root java 27856 8 tcp4 10.0.0.23:5001 *:* > root java 27856 13 udp4 10.0.0.23:1900 *:* > > > > > > openjdk6-jre: > > fstat (executed on host) > root java 36598 text /usr 2002099 -r-xr-xr-x 56460 r > root java 36598 wd /usr 1706459 drwxr-xr-x 2560 r > root java 36598 root /usr 1657601 drwxr-xr-x 512 r > root java 36598 jail /usr 1657601 drwxr-xr-x 512 r > root java 36598 0 /usr/JAILS/bigoli/dev 21 crw-rw-rw- > null r > root java 36598 1 /usr/JAILS/bigoli/dev 21 crw-rw-rw- > null w > root java 36598 2 /usr/JAILS/bigoli/dev 21 crw-rw-rw- > null w > root java 36598 3 /usr 2002155 -r--r--r-- 52984843 r > root java 36598 4 /usr 1706566 -rwxrwxrwx 33514259 r > root java 36598 5 /usr 1705271 -rw-r--r-- 6634 w > root java 36598 6 /usr 1705271 -rw-r--r-- 6634 w > root java 36598 7 /usr 2002161 -r--r--r-- 449182 r > root java 36598 8 /usr/JAILS/bigoli/dev 25 crw-rw-rw- > random r > root java 36598 9 /usr/JAILS/bigoli/dev 25 crw-rw-rw- > random r > root java 36598 10* internet stream tcp fffffe0052a487a0 > root java 36598 12* pipe fffffe001d1f1000 <-> > fffffe001d1f1158 0 rw > root java 36598 13* internet stream tcp > root java 36598 14* pipe fffffe001d1f1158 <-> > fffffe001d1f1000 0 rw > root java 36598 15 > root java 36598 16* internet dgram udp fffffe0006928188 > > > sockstat (executed on host) > root java 36598 10 tcp4 10.0.0.23:5001 *:* > root java 36598 16 udp4 10.0.0.23:1900 *:* Looks quite the same. I have no further clue than to debug with truss or ktrace or maybe dtrace or a java debugger. You can compile the java port with debug symbols also. Ronald. From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 13:40:44 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 21334F79 for ; Thu, 31 Jan 2013 13:40:44 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with ESMTP id 6F0627FE for ; Thu, 31 Jan 2013 13:40:43 +0000 (UTC) Received: (qmail 37998 invoked by uid 80); 31 Jan 2013 13:40:41 -0000 Received: from 164.61.223.12 ([164.61.223.12]) by avocado.salatschuessel.net (Horde Framework) with HTTP; Thu, 31 Jan 2013 14:40:41 +0100 Date: Thu, 31 Jan 2013 14:40:41 +0100 Message-ID: <20130131144041.Horde.Iz5-mKJH1WTSM_-JX3KKpQ5@avocado.salatschuessel.net> From: Oliver Lehmann To: java@freebsd.org Subject: Re: migration diablo-jre openjdk-jre References: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> <20130131073044.Horde.26xAh7xsQ27FI55KT1eoWg9@avocado.salatschuessel.net> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H5 (6.0.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 13:40:44 -0000 I think I found the problem, but not what is causing it. diable-jre sends out the data using my interface re0, and the address "10.0.0.23". openjdk seems to send out the data somehow through my tun0 interface with the address "10.0.0.23". This of course is complete nonsense. My firewall blocks this traffic: Jan 31 14:29:31 gurke kernel: ipfw: 6004 Deny UDP 10.0.0.23:33104 239.255.255.250:1900 in via tun0 Jan 31 14:29:35 gurke last message repeated 9 times Jan 31 14:29:46 gurke kernel: ipfw: 6004 Deny UDP 10.0.0.23:33892 239.255.255.250:1900 in via tun0 Jan 31 14:29:50 gurke last message repeated 9 times Jan 31 14:30:10 gurke kernel: ipfw: 6004 Deny UDP 10.0.0.23:20827 239.255.255.250:1900 in via tun0 tun0 is my PPP device to the "outside" world - no idea why it is picked up. The program itself also outputs that it is using the right interface: [main] INFO 14:37:18.681 Scanning network interface re0 / re0 [main] INFO 14:37:18.695 Using forced address 10.0.0.23 [main] INFO 14:37:18.699 Created socket: /10.0.0.23:5001 [main] DEBUG 14:37:19.367 Sending ALIVE... Incoming data on my PPP interface from a jail on the same host this is.... wow - crazy ;) relevant truss output for diablo: http://pastebin.com/RLiFBZTa relevant truss output for openjdk: http://pastebin.com/WHZnKnAS From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 14:36:35 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B9A73F30 for ; Thu, 31 Jan 2013 14:36:35 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with ESMTP id 13B9FA84 for ; Thu, 31 Jan 2013 14:36:34 +0000 (UTC) Received: (qmail 39682 invoked by uid 80); 31 Jan 2013 14:36:34 -0000 Received: from 164.61.223.12 ([164.61.223.12]) by avocado.salatschuessel.net (Horde Framework) with HTTP; Thu, 31 Jan 2013 15:36:34 +0100 Date: Thu, 31 Jan 2013 15:36:34 +0100 Message-ID: <20130131153634.Horde.2Y-Ufe9TALDb0pg4oii-Lg5@avocado.salatschuessel.net> From: Oliver Lehmann To: java@freebsd.org Subject: Re: migration diablo-jre openjdk-jre References: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> <20130131073044.Horde.26xAh7xsQ27FI55KT1eoWg9@avocado.salatschuessel.net> <20130131144041.Horde.Iz5-mKJH1WTSM_-JX3KKpQ5@avocado.salatschuessel.net> In-Reply-To: <20130131144041.Horde.Iz5-mKJH1WTSM_-JX3KKpQ5@avocado.salatschuessel.net> User-Agent: Internet Messaging Program (IMP) H5 (6.0.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 14:36:35 -0000 Ok.... nailed it down a bit further. The following testcode: http://pastebin.com/xcdvmfTB # /usr/local/bootstrap-openjdk/bin/javac test.java # /usr/local/bootstrap-openjdk/bin/jar -cfv test.jar Main.class Manifest wurde hinzugef=C3=BCgt. Hinzuf=C3=BCgen von: Main.class (ein =3D 2433) (aus =3D 1262) (komprimiert = 48 %) # /usr/local/bootstrap-openjdk/bin/java -classpath .:test.jar Main name:re0 (re0) Sending message from multicast socket on network interface: name:null Multicast socket is on interface: /0.0.0.0 Socket Timeout: 0 Socket TTL: 1 # /usr/local/diablo-jre1.6.0/bin/java -classpath .:test.jar Main name:re0 (re0) index: 1 addresses: /10.0.0.23; Sending message from multicast socket on network interface: name:null index: -1 addresses: /10.0.0.1; Multicast socket is on interface: /10.0.0.1 Socket Timeout: 0 Socket TTL: 32 # It looks like NetworkInterface.getByInetAddress(InetAddress.getByName(hostname)); works differently between openjdk and diablojdk. Even when I execute it on the host (outside the jail) it is wrong too - so this does not seem to be a jail problem?! From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 15:40:02 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7CDC6440 for ; Thu, 31 Jan 2013 15:40:02 +0000 (UTC) (envelope-from dmk@ncf.ca) Received: from mail.ncf.ca (mail.ncf.ca [134.117.136.45]) by mx1.freebsd.org (Postfix) with ESMTP id 595EFE9D for ; Thu, 31 Jan 2013 15:40:02 +0000 (UTC) Received: from mail.ncf.ca (localhost [127.0.0.1]) by mail.ncf.ca (Postfix) with ESMTP id 6F4639F164 for ; Thu, 31 Jan 2013 10:34:32 -0500 (EST) Received: from hudson.private.lan (CPE0014040bf903-CM0014e887dd48.cpe.net.cable.rogers.com [174.115.250.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: du880) by mail.ncf.ca (Postfix) with ESMTPSA id 491949F328 for ; Thu, 31 Jan 2013 10:34:32 -0500 (EST) From: Dwayne MacKinnon To: freebsd-java@freebsd.org Subject: Problem with libsplashscreen.so Date: Thu, 31 Jan 2013 10:34:31 -0500 Message-ID: <11009716.OCkRm4GAce@hudson.private.lan> User-Agent: KMail/4.8.4 (FreeBSD/9.1-RELEASE; KDE/4.8.4; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-NCF-Filtered: By ProxSMTP on pallando Thu Jan 31 10:34:32 2013 -0500 (EST) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 15:40:02 -0000 Hi, I've run into this bug using openjdk-7.11.21_1 on 9.1-RELEASE, both i386 and amd64. I was attempting to run anathema (http://anathema.github.com/) and got the following errors: Java version 1.7.0_011 detected in /usr/local/openjdk7/jre/bin/java... Running Anathema from /usr/home/dwayne/bin/anathema with repository /home/dwayne/.anathema/repository 17:35:41.061 [main] INFO net.sf.anathema.Anathema - Launching Anathema 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 net.sf.anathema.AnathemaBootLoader.main(AnathemaBootLoader.java:19) Caused by: java.lang.UnsatisfiedLinkError: /usr/local/openjdk7/jre/lib/amd64/libsplashscreen.so: /usr/local/openjdk7/jre/lib/amd64/libsplashscreen.so: Undefined symbol "jpeg_resync_to_restart" at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47) at java.security.AccessController.doPrivileged(Native Method) at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:121) at net.sf.anathema.AnathemaSplashscreen.hasSplashscreen(AnathemaSplashscreen.java:71) at net.sf.anathema.AnathemaSplashscreen.(AnathemaSplashscreen.java:21) at net.sf.anathema.ProxySplashscreen.(ProxySplashscreen.java:6) at net.sf.anathema.ProxySplashscreen.(ProxySplashscreen.java:5) at net.sf.anathema.Anathema.displayStatus(Anathema.java:61) at net.sf.anathema.Anathema.loadPreferences(Anathema.java:28) at net.sf.anathema.Anathema.startApplication(Anathema.java:22) ... 5 more I think this might be related to java/119654, but my java skills are somewhat shaky. Running the same application using the linux jre from sun/oracle works perfectly. Cheers, DMK From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 16:13:59 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C2008E71 for ; Thu, 31 Jan 2013 16:13:59 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with ESMTP id 1571ED4 for ; Thu, 31 Jan 2013 16:13:58 +0000 (UTC) Received: (qmail 42480 invoked by uid 80); 31 Jan 2013 16:13:52 -0000 Received: from dsdf-4db53ced.pool.mediaWays.net (dsdf-4db53ced.pool.mediaWays.net [77.181.60.237]) by avocado.salatschuessel.net (Horde Framework) with HTTP; Thu, 31 Jan 2013 17:13:52 +0100 Date: Thu, 31 Jan 2013 17:13:52 +0100 Message-ID: <20130131171352.Horde.tojtom5hFrNhx1COyR-zhA7@avocado.salatschuessel.net> From: Oliver Lehmann To: java@freebsd.org Subject: Re: migration diablo-jre openjdk-jre References: <20130130215438.Horde.qgCXWh6W7_lYONXtU4_9Og3@avocado.salatschuessel.net> <20130131073044.Horde.26xAh7xsQ27FI55KT1eoWg9@avocado.salatschuessel.net> <20130131144041.Horde.Iz5-mKJH1WTSM_-JX3KKpQ5@avocado.salatschuessel.net> <20130131153634.Horde.2Y-Ufe9TALDb0pg4oii-Lg5@avocado.salatschuessel.net> In-Reply-To: <20130131153634.Horde.2Y-Ufe9TALDb0pg4oii-Lg5@avocado.salatschuessel.net> User-Agent: Internet Messaging Program (IMP) H5 (6.0.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 16:13:59 -0000 Would be cool if someone could test this as well. Source: http://pastebin.com/x7itK6E3 (change the IP adress to something you have on your system) Output: diablo-jre6: Sending message from multicast socket on network interface: name:re1 (re1) index: 2 addresses: /10.0.1.1; openjdk6 + openjdk7: Sending message from multicast socket on network interface: name:null linux-sun-jre1.6.0 + linux-sun-jre1.7.0: Exception in thread "main" java.net.SocketException: Cannot assign requested address at java.net.PlainDatagramSocketImpl.socketGetOption(Native Method) at java.net.PlainDatagramSocketImpl.getOption(Unknown Source) at java.net.MulticastSocket.getNetworkInterface(Unknown Source) at Main.main(test.java:13) on Windows running Oracles JRE 1.7_u11: Sending message from multicast socket on network interface: name:eth3 (Realtek PCIe GBE Family Controller) From owner-freebsd-java@FreeBSD.ORG Thu Jan 31 19:01:04 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0FFAE628 for ; Thu, 31 Jan 2013 19:01:04 +0000 (UTC) (envelope-from pphillips@experts-exchange.com) Received: from mail.l3.redsrci.com (mail.pub.l3.redsrci.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id E9E67ADF for ; Thu, 31 Jan 2013 19:01:03 +0000 (UTC) Received: from mail.l3.redsrci.com (localhost [127.0.0.1]) by mail.l3.redsrci.com (Postfix) with ESMTP id 60C946F129B for ; Thu, 31 Jan 2013 11:01:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= experts-exchange.com; h=content-transfer-encoding:content-type :content-type:in-reply-to:references:subject:subject :mime-version:user-agent:from:from:date:date:message-id:received :received; s=ee; t=1359658863; x=1361473263; bh=ahtYufcNnUkuRf4Q RkVbMVZprLjdWTMZjQ3Z2qE5r4o=; b=LHQXPXm75QcBvLgP0svOHNnFjzmfVFP+ /uafh57vgN+P7WuyOv+QUP+H8NyXY5e1rzCeFc5UB25+59hpUNOaIrvPHq++Per+ EYu500qSgFwcc2nfG+4vUIl/24YlThuKs5pE5kE7GB2ybDVq0xmtVH8s9QQrzY/D tvrqYALqdaU= X-Virus-Scanned: amavisd-new at redsrci.com Received: from mail.l3.redsrci.com ([127.0.0.1]) by mail.l3.redsrci.com (mail.l3.redsrci.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oyLTiLwFVQPA for ; Thu, 31 Jan 2013 11:01:03 -0800 (PST) Received: from [192.168.103.98] (fw1.pub.noc.redsrci.com [72.29.164.238]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pphillips) by mail.l3.redsrci.com (Postfix) with ESMTPSA id AF6D86ED34B for ; Thu, 31 Jan 2013 11:01:02 -0800 (PST) Message-ID: <510ABF6E.8050404@experts-exchange.com> Date: Thu, 31 Jan 2013 11:01:02 -0800 From: Phil Phillips User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Re: OpenJDK7: libnet.so getting closed twice References: <5108356B.1060008@experts-exchange.com> In-Reply-To: <5108356B.1060008@experts-exchange.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 19:01:04 -0000 It turns out that this bug seems to be release-specific. The double close() behavior is consistent on FreeBSD 7, but I have yet to see it happen on FreeBSD 8. My only hunch is that this has something to do with OpenJDK7 having more of the system calls "restartable" (interrupted system calls getting retried). Maybe there's something not quite right with FreeBSD 7 reporting EINTR - perhaps specifically when there's an open() / close() with no read()? That's all just speculation, though. In any event, this is probably not too big of an issue, considering FreeBSD 7 is approaching end-of-life. -Phil From owner-freebsd-java@FreeBSD.ORG Fri Feb 1 08:03:22 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3D56CDDB for ; Fri, 1 Feb 2013 08:03:22 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with ESMTP id 8369E1D1 for ; Fri, 1 Feb 2013 08:03:21 +0000 (UTC) Received: (qmail 75080 invoked by uid 80); 1 Feb 2013 08:03:19 -0000 Received: from dsdf-4db53ced.pool.mediaWays.net (dsdf-4db53ced.pool.mediaWays.net [77.181.60.237]) by avocado.salatschuessel.net (Horde Framework) with HTTP; Fri, 01 Feb 2013 09:03:19 +0100 Date: Fri, 01 Feb 2013 09:03:19 +0100 Message-ID: <20130201090319.Horde.UUrN0L_jSn_qp6MZj0-Wig1@avocado.salatschuessel.net> From: Oliver Lehmann To: bsd-port-dev@openjdk.java.net Subject: Re: MulticastSocket problem on FreeBSD References: <20130131192629.Horde.ZGX-g9D9tu8aDwt6XwEMuw5@avocado.salatschuessel.net> <510B378A.8090603@intricatesoftware.com> In-Reply-To: <510B378A.8090603@intricatesoftware.com> User-Agent: Internet Messaging Program (IMP) H5 (6.0.3) Content-Type: multipart/mixed; boundary="=_k3vvjMO63ViirVJmerBAzg1" MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: java@freebsd.org, Kurt Miller X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 08:03:22 -0000 This message is in MIME format. --=_k3vvjMO63ViirVJmerBAzg1 Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes Content-Disposition: inline Hi, I patched openjdk7. Attached you'll find the patch. It is now possible (at least for me) to use MulticastSocket. I know the patch is not ready for checkin, but I guess you'll get the idea and know how to do it properly as I don't know the correct defines to check. (The first two chunks in the patch are probably already in HG as the patch is based on u6 code) Basically I just replaced the MACOSX check with __FreeBSD__ and it works now: root@bigoli test> /usr/local/bootstrap-openjdk/bin/javac test.java root@bigoli test> /usr/local/bootstrap-openjdk/bin/jar -cf test.jar Main.class root@bigoli test> /usr/local/openjdk7/bin/java -classpath .:test.jar Main network interface: name:null interface: /10.0.1.1 Java is still not able to detect my network interface name, but this was also not working in Diablo JRE and I don't need it. At least I'm now getting the correct Multicast Address back (10.0.1.1 and not 0.0.0.0) Please consider fixing this upstream. PS: Sorry for top-post but I'm CCing FreeBSDs java@ list Kurt Miller wrote: > Hi Oliver, > > On 01/31/13 13:26, Oliver Lehmann wrote: >> Hi, >> >> I encountered a bug while migrating from FreeBSDs old "Diablo jre" >> to openjdk-jre version 6. >> >> I'm running a software using multicast communication and it fails >> on FreeBSD when using openjdk6. >> >> example code: >> >> import java.io.IOException; >> import java.net.InetAddress; >> import java.net.MulticastSocket; >> import java.net.SocketException; >> import java.net.UnknownHostException; >> >> >> class Main { >> static String hostname = new String("10.0.1.1"); >> >> public static void main(String args[]) throws >> SocketException, UnknownHostException, IOException{ >> InetAddress ia = InetAddress.getByName(hostname); >> MulticastSocket ssdpSocket = new MulticastSocket(); >> >> ssdpSocket.setInterface(ia); >> >> System.out.println("network interface: " + >> ssdpSocket.getNetworkInterface()); >> System.out.println("interface: " + ssdpSocket.getInterface()); >> } >> } >> >> >> The output of the old "Diablo JRE" is: >> >> network interface: name:null index: -1 addresses: >> /10.0.1.1; >> >> interface: /10.0.1.1 >> >> >> The output of openJDK6 is: >> >> network interface: name:null >> interface: /0.0.0.0 >> >> It always returns this information. >> For comparison - openjdk on Linux: >> >> network interface: name:eth0 (eth0) >> interface: /10.0.1.54 >> >> Oracle 7 VM on Windows: >> >> network interface: name:eth3 (Realtek PCIe GBE Family Controller) >> interface: /10.0.1.51 > > I can confirm this is a problem for bsd-port (openjdk7) > on OpenBSD too. > >> For me this seems to be an implementation bug of... I don't know? >> PlainDatagramSocketImpl.c maybe? >> >> I tried to debug this further, but did not succeeded to find out if >> either setInterface() failed to set it correctly, or somewhere in >> getInterface() an early return() happens. I tried to remotly debug >> this using Eclipse, but only saw the private variables of ssdpSocket >> which didn't indicated something obvious. Breakpoints inside >> java.net.MulticastSocket would have helped ;) >> >> --=_k3vvjMO63ViirVJmerBAzg1-- From owner-freebsd-java@FreeBSD.ORG Fri Feb 1 18:00:07 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 87673D4A for ; Fri, 1 Feb 2013 18:00:07 +0000 (UTC) (envelope-from kurt@intricatesoftware.com) Received: from mail1.intricatesoftware.com (cl-245.bos-01.us.sixxs.net [IPv6:2001:4830:1100:f4::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0944F69B for ; Fri, 1 Feb 2013 18:00:06 +0000 (UTC) Received: from localhost (relay@mail1.intricatesoftware.com [127.0.0.1]) by mail1.intricatesoftware.com (8.14.5/8.14.3) with ESMTP id r11HxqNh011173; Fri, 1 Feb 2013 12:59:53 -0500 (EST) From: Kurt Miller To: bsd-port-dev@openjdk.java.net Subject: Re: MulticastSocket problem on FreeBSD Date: Fri, 1 Feb 2013 12:59:52 -0500 User-Agent: KMail/1.9.10 References: <20130131192629.Horde.ZGX-g9D9tu8aDwt6XwEMuw5@avocado.salatschuessel.net> <510B378A.8090603@intricatesoftware.com> <20130201090319.Horde.UUrN0L_jSn_qp6MZj0-Wig1@avocado.salatschuessel.net> In-Reply-To: <20130201090319.Horde.UUrN0L_jSn_qp6MZj0-Wig1@avocado.salatschuessel.net> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_ZKADRynliH8KyFM" Message-Id: <201302011259.53214.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,T_FRT_STOCK2 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -2.9 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.6 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: java@freebsd.org, Oliver Lehmann X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 18:00:07 -0000 --Boundary-00=_ZKADRynliH8KyFM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Oliver, On Friday 01 February 2013 03:03:19 am Oliver Lehmann wrote: > Hi, > > I patched openjdk7. Attached you'll find the patch. > It is now possible (at least for me) to use MulticastSocket. > I know the patch is not ready for checkin, but I guess you'll get > the idea and know how to do it properly as I don't know the correct > defines to check. (The first two chunks in the patch are probably > already in HG as the patch is based on u6 code) Right those parts are already there. > > Basically I just replaced the MACOSX check with __FreeBSD__ and > it works now: The last chunk of the diff is not needed for this problem and is incomplete. It is for the problem described here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7144274 http://hg.openjdk.java.net/bsd-port/bsd-port/jdk/rev/99cc5c9ef200 I have not yet checked to see if we need this fix in addition to the problem you noted. However, if we do need it then we to change MACOSX to _ALLBSD_SOURCE in both PlainDatagramSocketImpl.c mcast_join_leave() and net_util_md.c setDefaultScopeID() I am attaching patches for both openjdk6 and openjdk7 that should fix the problem you initially reported and will apply to FreeBSD's ports cleanly. Thanks for reporting the problem and tracking the correction down. -Kurt > root@bigoli test> /usr/local/bootstrap-openjdk/bin/javac test.java > root@bigoli test> /usr/local/bootstrap-openjdk/bin/jar -cf test.jar Main.class > root@bigoli test> /usr/local/openjdk7/bin/java -classpath .:test.jar Main > network interface: name:null > interface: /10.0.1.1 > > Java is still not able to detect my network interface name, but this > was also not working in Diablo JRE and I don't need it. At least I'm > now getting the correct Multicast Address back (10.0.1.1 and not 0.0.0.0) > > Please consider fixing this upstream. > > PS: Sorry for top-post but I'm CCing FreeBSDs java@ list > > > Kurt Miller wrote: > > > Hi Oliver, > > > > On 01/31/13 13:26, Oliver Lehmann wrote: > >> Hi, > >> > >> I encountered a bug while migrating from FreeBSDs old "Diablo jre" > >> to openjdk-jre version 6. > >> > >> I'm running a software using multicast communication and it fails > >> on FreeBSD when using openjdk6. > >> > >> example code: > >> > >> import java.io.IOException; > >> import java.net.InetAddress; > >> import java.net.MulticastSocket; > >> import java.net.SocketException; > >> import java.net.UnknownHostException; > >> > >> > >> class Main { > >> static String hostname = new String("10.0.1.1"); > >> > >> public static void main(String args[]) throws > >> SocketException, UnknownHostException, IOException{ > >> InetAddress ia = InetAddress.getByName(hostname); > >> MulticastSocket ssdpSocket = new MulticastSocket(); > >> > >> ssdpSocket.setInterface(ia); > >> > >> System.out.println("network interface: " + > >> ssdpSocket.getNetworkInterface()); > >> System.out.println("interface: " + ssdpSocket.getInterface()); > >> } > >> } > >> > >> > >> The output of the old "Diablo JRE" is: > >> > >> network interface: name:null index: -1 addresses: > >> /10.0.1.1; > >> > >> interface: /10.0.1.1 > >> > >> > >> The output of openJDK6 is: > >> > >> network interface: name:null > >> interface: /0.0.0.0 > >> > >> It always returns this information. > >> For comparison - openjdk on Linux: > >> > >> network interface: name:eth0 (eth0) > >> interface: /10.0.1.54 > >> > >> Oracle 7 VM on Windows: > >> > >> network interface: name:eth3 (Realtek PCIe GBE Family Controller) > >> interface: /10.0.1.51 > > > > I can confirm this is a problem for bsd-port (openjdk7) > > on OpenBSD too. > > > >> For me this seems to be an implementation bug of... I don't know? > >> PlainDatagramSocketImpl.c maybe? > >> > >> I tried to debug this further, but did not succeeded to find out if > >> either setInterface() failed to set it correctly, or somewhere in > >> getInterface() an early return() happens. I tried to remotly debug > >> this using Eclipse, but only saw the private variables of ssdpSocket > >> which didn't indicated something obvious. Breakpoints inside > >> java.net.MulticastSocket would have helped ;) > >> > >> > > > --Boundary-00=_ZKADRynliH8KyFM-- From owner-freebsd-java@FreeBSD.ORG Fri Feb 1 22:35:53 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C24EFDF8 for ; Fri, 1 Feb 2013 22:35:53 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with ESMTP id 1AF671E2 for ; Fri, 1 Feb 2013 22:35:52 +0000 (UTC) Received: (qmail 970 invoked by uid 80); 1 Feb 2013 22:35:45 -0000 Received: from dsdf-4db50d27.pool.mediaWays.net (dsdf-4db50d27.pool.mediaWays.net [77.181.13.39]) by avocado.salatschuessel.net (Horde Framework) with HTTP; Fri, 01 Feb 2013 23:35:45 +0100 Date: Fri, 01 Feb 2013 23:35:45 +0100 Message-ID: <20130201233545.Horde._2oqHuhW_1GqoNXuJQq12w1@avocado.salatschuessel.net> From: Oliver Lehmann To: Kurt Miller Subject: Re: MulticastSocket problem on FreeBSD References: <20130131192629.Horde.ZGX-g9D9tu8aDwt6XwEMuw5@avocado.salatschuessel.net> <510B378A.8090603@intricatesoftware.com> <20130201090319.Horde.UUrN0L_jSn_qp6MZj0-Wig1@avocado.salatschuessel.net> <201302011259.53214.kurt@intricatesoftware.com> In-Reply-To: <201302011259.53214.kurt@intricatesoftware.com> User-Agent: Internet Messaging Program (IMP) H5 (6.0.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Cc: java@freebsd.org, bsd-port-dev@openjdk.java.net X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 22:35:53 -0000 Hi Kurt, Kurt Miller wrote: > I am attaching patches for both openjdk6 and openjdk7 > that should fix the problem you initially reported and will apply to > FreeBSD's ports cleanly. I now compiled openjdk6 and 7 ports with your patches in place and the problem goes away. Any chance they get committed to HQ? From owner-freebsd-java@FreeBSD.ORG Fri Feb 1 23:44:01 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 247FDCAD for ; Fri, 1 Feb 2013 23:44:01 +0000 (UTC) (envelope-from kurt@intricatesoftware.com) Received: from mail1.intricatesoftware.com (cl-245.bos-01.us.sixxs.net [IPv6:2001:4830:1100:f4::2]) by mx1.freebsd.org (Postfix) with ESMTP id 61619636 for ; Fri, 1 Feb 2013 23:44:00 +0000 (UTC) Received: from localhost (relay@mail1.intricatesoftware.com [127.0.0.1]) by mail1.intricatesoftware.com (8.14.5/8.14.3) with ESMTP id r11NhJZ1026268; Fri, 1 Feb 2013 18:43:29 -0500 (EST) From: Kurt Miller To: bsd-port-dev@openjdk.java.net Subject: Re: MulticastSocket problem on FreeBSD Date: Fri, 1 Feb 2013 18:43:19 -0500 User-Agent: KMail/1.9.10 References: <20130131192629.Horde.ZGX-g9D9tu8aDwt6XwEMuw5@avocado.salatschuessel.net> <201302011259.53214.kurt@intricatesoftware.com> <20130201233545.Horde._2oqHuhW_1GqoNXuJQq12w1@avocado.salatschuessel.net> In-Reply-To: <20130201233545.Horde._2oqHuhW_1GqoNXuJQq12w1@avocado.salatschuessel.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201302011843.19938.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: -2.9 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.6 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: java@freebsd.org, Oliver Lehmann X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 23:44:01 -0000 Hi Oliver, On Friday 01 February 2013 05:35:45 pm Oliver Lehmann wrote: > Hi Kurt, > > Kurt Miller wrote: > > > I am attaching patches for both openjdk6 and openjdk7 > > that should fix the problem you initially reported and will apply to > > FreeBSD's ports cleanly. > > I now compiled openjdk6 and 7 ports with your patches in place and > the problem goes away. Any chance they get committed to HQ? Great. I can take care of bsd-port. Probably Greg or other FreeBSD commters will review and commit them to the FreeBSD's ports tree. Regards, -Kurt