From owner-freebsd-java Sun Sep 8 5:38:47 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88B3A37B400 for ; Sun, 8 Sep 2002 05:38:40 -0700 (PDT) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 263B243E65 for ; Sun, 8 Sep 2002 05:38:40 -0700 (PDT) (envelope-from hwh@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (gw [210.21.6.34]) by ns.gddsn.org.cn (Postfix) with ESMTP id C331855 for ; Sun, 8 Sep 2002 20:38:33 +0800 (CST) Message-ID: <3D7B44C9.3030807@mail.gddsn.org.cn> Date: Sun, 08 Sep 2002 20:38:33 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.0.0) Gecko/20020728 X-Accept-Language: zh-cn, zh-tw, en-us MIME-Version: 1.0 To: java Subject: java core dump when using InetAddress.getHostName under current Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, The following example can cause java ( both classic and hotspot) core dump: ------------------------------------------------------------- import java.net.*; public class TestGetHostByAddr { public static void main(String[] args) throws Exception { Socket socket = new Socket("www.freebsd.org", 80); InetAddress localAddr = socket.getLocalAddress(); String host = localAddr.getHostName(); System.out.println("Local Host name is: "+ host); socket.close(); } } -------------------------------------------------------------- (gdb) run TestGetHostByAddr Starting program: /usr/local/jdk1.3.1/bin/i386/native_threads/java_g TestGetHostByAddr Program received signal SIGBUS, Bus error. 0x297ab90e in Java_java_net_InetAddressImpl_getHostByAddr (env=0x806c2b0, this=0xbfbfeddc, addr=83994816) at ../../../src/solaris/native/java/net/InetAddressImpl.c:311 311 ret = (*env)->NewStringUTF(env, hp->h_name); (gdb) print hp->h_name Error accessing memory address 0xffffffff: Bad address. (gdb) bt #0 0x297ab90e in Java_java_net_InetAddressImpl_getHostByAddr (env=0x806c2b0, this=0xbfbfeddc, addr=83994816) at ../../../src/solaris/native/java/net/InetAddressImpl.c:311 #1 0x080ee1ac in ?? () #2 0x080ea56d in ?? () #3 0x080ea56d in ?? () #4 0x080ea56d in ?? () #5 0x2863af5d in StubRoutines::_code1 () from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so #6 0x283030b9 in JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) (result=0xbfbff080, m=0xbfbfef54, args=0xbfbfef80, __the_thread__=0x806c218) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:378 #7 0x28302c54 in JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) (result=0xbfbff080, method=ABI doesn't define required function baseclass_offset ) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:287 #8 0x2830f996 in jni_invoke(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) () from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so #9 0x2832438a in jni_CallStaticVoidMethod () from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so #10 0x08049346 in main (argc=0, argv=0xbfbff9bc) at ../../../../src/share/bin/java.c:323 #11 0x08048bc1 in _start () To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Sep 8 17:42: 6 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92FDA37B400 for ; Sun, 8 Sep 2002 17:41:59 -0700 (PDT) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF0543E4A for ; Sun, 8 Sep 2002 17:41:59 -0700 (PDT) (envelope-from hwh@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (gw [210.21.6.34]) by ns.gddsn.org.cn (Postfix) with ESMTP id B06E91B; Mon, 9 Sep 2002 08:41:52 +0800 (CST) Message-ID: <3D7BEE4F.5010909@mail.gddsn.org.cn> Date: Mon, 09 Sep 2002 08:41:51 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.0.0) Gecko/20020728 X-Accept-Language: zh-cn, zh-tw, en-us MIME-Version: 1.0 To: Huang wen hui Cc: java Subject: Re: java core dump when using InetAddress.getHostName under current References: <3D7B44C9.3030807@mail.gddsn.org.cn> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Huang wen hui wrote: >hi, >The following example can cause java ( both classic and hotspot) core dump: >------------------------------------------------------------- >import java.net.*; > >public class TestGetHostByAddr { >public static void main(String[] args) throws Exception { >Socket socket = new Socket("www.freebsd.org", 80); >InetAddress localAddr = socket.getLocalAddress(); >String host = localAddr.getHostName(); >System.out.println("Local Host name is: "+ host); >socket.close(); >} >} > >-------------------------------------------------------------- >(gdb) run TestGetHostByAddr >Starting program: /usr/local/jdk1.3.1/bin/i386/native_threads/java_g >TestGetHostByAddr > >Program received signal SIGBUS, Bus error. >0x297ab90e in Java_java_net_InetAddressImpl_getHostByAddr >(env=0x806c2b0, this=0xbfbfeddc, addr=83994816) at >../../../src/solaris/native/java/net/InetAddressImpl.c:311 >311 ret = (*env)->NewStringUTF(env, hp->h_name); >(gdb) print hp->h_name >Error accessing memory address 0xffffffff: Bad address. >(gdb) bt >#0 0x297ab90e in Java_java_net_InetAddressImpl_getHostByAddr >(env=0x806c2b0, this=0xbfbfeddc, addr=83994816) >at ../../../src/solaris/native/java/net/InetAddressImpl.c:311 >#1 0x080ee1ac in ?? () >#2 0x080ea56d in ?? () >#3 0x080ea56d in ?? () >#4 0x080ea56d in ?? () >#5 0x2863af5d in StubRoutines::_code1 () from >/usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so >#6 0x283030b9 in JavaCalls::call_helper(JavaValue*, methodHandle*, >JavaCallArguments*, Thread*) (result=0xbfbff080, m=0xbfbfef54, >args=0xbfbfef80, >__the_thread__=0x806c218) at >/usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:378 >#7 0x28302c54 in JavaCalls::call(JavaValue*, methodHandle, >JavaCallArguments*, Thread*) (result=0xbfbff080, method=ABI doesn't >define required function baseclass_offset >) >at >/usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:287 >#8 0x2830f996 in jni_invoke(JNIEnv_*, JavaValue*, _jobject*, >JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) () >from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so >#9 0x2832438a in jni_CallStaticVoidMethod () from >/usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so >#10 0x08049346 in main (argc=0, argv=0xbfbff9bc) at >../../../../src/share/bin/java.c:323 >#11 0x08048bc1 in _start () > > > OK, Under -Current, InetAddress.getHostName should call gethostbyname_r in src/solaris/native/java/net/InetAddressImpl.c, but it call gethostbyname_r in /usr/src/lib/libc/net/gethostnamadr.c. --hwh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Sep 8 21: 0: 4 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06FAE37B400 for ; Sun, 8 Sep 2002 21:00:03 -0700 (PDT) Received: from nailbunny.mine.nu (pc1-cdif1-5-cust192.cdf.cable.ntl.com [80.3.216.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6661C43E4A for ; Sun, 8 Sep 2002 21:00:02 -0700 (PDT) (envelope-from rasputin@nailbunny.mine.nu) Received: from rasputin by nailbunny.mine.nu with local (Exim 3.34 #1) id 17oAmC-0000Ck-00; Sun, 08 Sep 2002 23:43:32 +0100 Date: Sun, 8 Sep 2002 23:43:32 +0100 From: Rasputin To: Mayo Cc: java@freebsd.org Subject: Re: Sun License for JDK 1.4 forces automatic updates ?!! Message-ID: <20020908224332.GA776@nailbunny.mine.nu> Reply-To: Rasputin References: <200209021317.04041.znerd@FreeBSD.org> <00ef01c255d7$261587b0$16d05982@LOONBENEDEN> <3D798F00.9030900@nfy.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D798F00.9030900@nfy.ca> User-Agent: Mutt/1.4i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Mayo [020907 10:45]: > > > > > >>I believe we should consider banning the Sun JDK 1.4 for Linux. > >With all due respect I think we should stay well and far away from > >prescribing policy the way you are suggesting. > Not that I have any say in this :) but I agree. First, the user has to > agree to the license when he installs the JDK, so if they don't agree, > all they have to do is just press N. Second, I think it's realted to > WebStart, just like it was mentioned before. Third, it does not really > bother me, because thinking logically, the SDK would have to run some > kind of daemon/service to check for updates (and it would ahve to run as > root in order to update it's files, which you can easily prevent), which > you can easily see if it is or not. Worth bearing in mind that this is probably targeted at Win** users - I can't see how Sun are going to get the permissions they need to install new classes as root, unless there are suid binaries involved in the JDK install. -- Rasputin :: Jack of All Trades - Master of Nuns To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Sep 9 7:40:20 2002 Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D2C737B400 for ; Mon, 9 Sep 2002 07:40:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA3CB43E42 for ; Mon, 9 Sep 2002 07:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g89Ee2JU012890 for ; Mon, 9 Sep 2002 07:40:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g89Ee23j012889; Mon, 9 Sep 2002 07:40:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B178F37B400 for ; Mon, 9 Sep 2002 07:30:59 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54F6143E86 for ; Mon, 9 Sep 2002 07:30:59 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g89EUwOT085471 for ; Mon, 9 Sep 2002 07:30:58 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g89EUwBA085470; Mon, 9 Sep 2002 07:30:58 -0700 (PDT) Message-Id: <200209091430.g89EUwBA085470@www.freebsd.org> Date: Mon, 9 Sep 2002 07:30:58 -0700 (PDT) From: Vassili Kokits To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: java/42595: jdk: Math.pow function from appletviewer Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42595 >Category: java >Synopsis: jdk: Math.pow function from appletviewer >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 09 07:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Vassili Kokits >Release: FreeBSD 4.6-STABLE #0: Thu Aug 1 14:19:38 CEST 2002 >Organization: Fernuni Hagen >Environment: FreeBSD host 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 14:19:38 CEST 2002 root@host:/usr/obj/usr/src/sys/KERNEL46 i386 >Description: File pow.java: public class pow extends java.applet.Applet { public void init() { body(); } public static void main(String[] arg) { body(); } public static void body() { for (int a = -6; a < 6; a += 2) for (int b = -6; b <= 8; b += 2) { double fun = Math.pow((double)a, (double)b); System.out.println("a = " + (double)a + " , b = " + (double)b + " , Math.pow(a, b) = " + fun); } }} File pow.html Math.pow Test

I have jdk-1.3.1p7 Java Development Kit 1.3 compiling of the pow.java: /usr/local/jdk1.3.1/bin/javac pow.java -> OK 1. start with java: /usr/local/jdk1.3.1/bin/java pow a = -6.0 , b = -6.0 , Math.pow(a, b) = 2.143347050754458E-5 a = -6.0 , b = -4.0 , Math.pow(a, b) = 7.716049382716049E-4 a = -6.0 , b = -2.0 , Math.pow(a, b) = 0.027777777777777776 a = -6.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = -6.0 , b = 2.0 , Math.pow(a, b) = 36.0 a = -6.0 , b = 4.0 , Math.pow(a, b) = 1296.0 a = -6.0 , b = 6.0 , Math.pow(a, b) = 46656.0 a = -6.0 , b = 8.0 , Math.pow(a, b) = 1679616.0 a = -4.0 , b = -6.0 , Math.pow(a, b) = 2.44140625E-4 a = -4.0 , b = -4.0 , Math.pow(a, b) = 0.00390625 a = -4.0 , b = -2.0 , Math.pow(a, b) = 0.0625 a = -4.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = -4.0 , b = 2.0 , Math.pow(a, b) = 16.0 a = -4.0 , b = 4.0 , Math.pow(a, b) = 256.0 a = -4.0 , b = 6.0 , Math.pow(a, b) = 4096.0 a = -4.0 , b = 8.0 , Math.pow(a, b) = 65536.0 a = -2.0 , b = -6.0 , Math.pow(a, b) = 0.015625 a = -2.0 , b = -4.0 , Math.pow(a, b) = 0.0625 a = -2.0 , b = -2.0 , Math.pow(a, b) = 0.25 a = -2.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = -2.0 , b = 2.0 , Math.pow(a, b) = 4.0 a = -2.0 , b = 4.0 , Math.pow(a, b) = 16.0 a = -2.0 , b = 6.0 , Math.pow(a, b) = 64.0 a = -2.0 , b = 8.0 , Math.pow(a, b) = 256.0 a = 0.0 , b = -6.0 , Math.pow(a, b) = Infinity a = 0.0 , b = -4.0 , Math.pow(a, b) = Infinity a = 0.0 , b = -2.0 , Math.pow(a, b) = Infinity a = 0.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = 0.0 , b = 2.0 , Math.pow(a, b) = 0.0 a = 0.0 , b = 4.0 , Math.pow(a, b) = 0.0 a = 0.0 , b = 6.0 , Math.pow(a, b) = 0.0 a = 0.0 , b = 8.0 , Math.pow(a, b) = 0.0 a = 2.0 , b = -6.0 , Math.pow(a, b) = 0.015625 a = 2.0 , b = -4.0 , Math.pow(a, b) = 0.0625 a = 2.0 , b = -2.0 , Math.pow(a, b) = 0.25 a = 2.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = 2.0 , b = 2.0 , Math.pow(a, b) = 4.0 a = 2.0 , b = 4.0 , Math.pow(a, b) = 16.0 a = 2.0 , b = 6.0 , Math.pow(a, b) = 64.0 a = 2.0 , b = 8.0 , Math.pow(a, b) = 256.0 a = 4.0 , b = -6.0 , Math.pow(a, b) = 2.44140625E-4 a = 4.0 , b = -4.0 , Math.pow(a, b) = 0.00390625 a = 4.0 , b = -2.0 , Math.pow(a, b) = 0.0625 a = 4.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = 4.0 , b = 2.0 , Math.pow(a, b) = 16.0 a = 4.0 , b = 4.0 , Math.pow(a, b) = 256.0 a = 4.0 , b = 6.0 , Math.pow(a, b) = 4096.0 a = 4.0 , b = 8.0 , Math.pow(a, b) = 65536.0 OK! 2. start with appletviewer /usr/local/jdk1.3.1/bin/appletviewer pow.html a = -6.0 , b = -6.0 , Math.pow(a, b) = 2.143347050754458E-5 a = -6.0 , b = -4.0 , Math.pow(a, b) = 7.716049382716049E-4 a = -6.0 , b = -2.0 , Math.pow(a, b) = 0.027777777777777776 a = -6.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = -6.0 , b = 2.0 , Math.pow(a, b) = 36.0 a = -6.0 , b = 4.0 , Math.pow(a, b) = 1296.0 a = -6.0 , b = 6.0 , Math.pow(a, b) = 46656.0 a = -6.0 , b = 8.0 , Math.pow(a, b) = 1679616.0 a = -4.0 , b = -6.0 , Math.pow(a, b) = 2.44140625E-4 a = -4.0 , b = -4.0 , Math.pow(a, b) = 0.00390625 a = -4.0 , b = -2.0 , Math.pow(a, b) = 0.0625 a = -4.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = -4.0 , b = 2.0 , Math.pow(a, b) = 16.0 a = -4.0 , b = 4.0 , Math.pow(a, b) = 256.0 a = -4.0 , b = 6.0 , Math.pow(a, b) = 4096.0 a = -4.0 , b = 8.0 , Math.pow(a, b) = 65536.0 a = -2.0 , b = -6.0 , Math.pow(a, b) = 0.015625 a = -2.0 , b = -4.0 , Math.pow(a, b) = 0.0625 a = -2.0 , b = -2.0 , Math.pow(a, b) = 0.25 a = -2.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = -2.0 , b = 2.0 , Math.pow(a, b) = 4.0 a = -2.0 , b = 4.0 , Math.pow(a, b) = 16.0 a = -2.0 , b = 6.0 , Math.pow(a, b) = 64.0 a = -2.0 , b = 8.0 , Math.pow(a, b) = 256.0 a = 0.0 , b = -6.0 , Math.pow(a, b) = Infinity a = 0.0 , b = -4.0 , Math.pow(a, b) = Infinity a = 0.0 , b = -2.0 , Math.pow(a, b) = Infinity a = 0.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = 0.0 , b = 2.0 , Math.pow(a, b) = 0.0 a = 0.0 , b = 4.0 , Math.pow(a, b) = 0.0 a = 0.0 , b = 6.0 , Math.pow(a, b) = 0.0 a = 0.0 , b = 8.0 , Math.pow(a, b) = 0.0 a = 2.0 , b = -6.0 , Math.pow(a, b) = 0.0 a = 2.0 , b = -4.0 , Math.pow(a, b) = 0.0 a = 2.0 , b = -2.0 , Math.pow(a, b) = 0.0 a = 2.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = 2.0 , b = 2.0 , Math.pow(a, b) = 4.0 a = 2.0 , b = 4.0 , Math.pow(a, b) = 0.0 a = 2.0 , b = 6.0 , Math.pow(a, b) = 0.0 a = 2.0 , b = 8.0 , Math.pow(a, b) = 0.0 a = 4.0 , b = -6.0 , Math.pow(a, b) = 0.0 a = 4.0 , b = -4.0 , Math.pow(a, b) = 0.0 a = 4.0 , b = -2.0 , Math.pow(a, b) = 0.0 a = 4.0 , b = 0.0 , Math.pow(a, b) = 1.0 a = 4.0 , b = 2.0 , Math.pow(a, b) = 16.0 a = 4.0 , b = 4.0 , Math.pow(a, b) = 0.0 a = 4.0 , b = 6.0 , Math.pow(a, b) = 0.0 a = 4.0 , b = 8.0 , Math.pow(a, b) = 0.0 STOP!!!! Function Math.pow(a, b) not working under appletviewer with a > 0 && b > 0 (b != 2), but working under browser or as application. But I need appletviewer for debuggung of the applets. >How-To-Repeat: >Fix: Using of linux-sun-jdk-1.3.1 - Sun Java Development Kit 1.3 for Linux ... Any idea for jdk-1.3.1p7 (p6, p5 ...)? >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 10 5:56:59 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C20637B400 for ; Tue, 10 Sep 2002 05:56:56 -0700 (PDT) Received: from csp.ru (ns.comch.ru [213.24.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5215643E3B for ; Tue, 10 Sep 2002 05:56:54 -0700 (PDT) (envelope-from alec@compunet.comch.ru) Received: from [213.24.92.44] (HELO compunet.comch.ru) by csp.ru (CommuniGate Pro SMTP 3.5.6) with ESMTP id 1888532 for java@freebsd.org; Tue, 10 Sep 2002 16:56:51 +0400 Received: from [192.168.55.23] (HELO alec.server.compunet.ru) by compunet.comch.ru (CommuniGate Pro SMTP 3.5.3) with ESMTP id 911319 for java@freebsd.org; Tue, 10 Sep 2002 16:26:25 +0400 Date: Tue, 10 Sep 2002 16:22:36 +0400 From: Alec Kalinin X-Mailer: The Bat! (v1.51) Personal Reply-To: Alec Kalinin Organization: Compunet X-Priority: 3 (Normal) Message-ID: <11924974070.20020910162236@compunet.comch.ru> To: java@freebsd.org Subject: Probably Process.waitFor() bug in jdk1.3.1p7 MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Доброго утра/вечера/ночи java! I tried following code in jdk1.2.2 and jdk1.3.1p7 on FreeBSD 4.3-RELEASE: ============ public class ProcessTest { private final String[] CMD_ARRAY = new String[] { "tar", "--to-stdout", "-xpzf", "/usr/ports/distfiles/gmake-3.78.1.tgz" }; private final int COUNT = 1; public static void main(String[] args) { ProcessTest pt = new ProcessTest(); pt.run(); } public void run() { try { for (int i = 0; i < COUNT; i++) { Process p = Runtime.getRuntime().exec(CMD_ARRAY); p.waitFor(); } } catch (Exception excp) { excp.printStackTrace(); } } } ============ The jdk1.2.2 successfully executed this program, but in jdk1.3.1p7 this program not finished. I got an endless loop, probably at p.waitFor() instruction. -- Удачи, Alec mailto:alec@compunet.comch.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 10 8:49:10 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5F3B37B400; Tue, 10 Sep 2002 08:49:05 -0700 (PDT) Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0784243E6A; Tue, 10 Sep 2002 08:49:05 -0700 (PDT) (envelope-from Ranjith.Mandala@Sun.COM) Received: from ha2sca-mail1.SFBay.Sun.COM ([129.145.155.62]) by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA02736; Tue, 10 Sep 2002 08:48:55 -0700 (PDT) Received: from antmonster (d-usca14-133-206 [129.145.133.206]) by ha2sca-mail1.SFBay.Sun.COM (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with ESMTP id g8AFmt229988; Tue, 10 Sep 2002 08:48:55 -0700 (PDT) Date: Tue, 10 Sep 2002 08:48:55 -0700 (PDT) Message-ID: <12556672.1031672786595.JavaMail.Administrator@ha2sca-mail1.sfbay.sun.com> From: Ranjith Mandala To: freebsd-java@freebsd.org Subject: Re: (Review ID: 164268) HotSpot Virtual Machine Error, Internal Error; Error ID: 4F533F4C494E55580E43505 Cc: java-port@freebsd.org, Ranjith.Mandala@Sun.COM Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: postEmail @(#) PostEmail.java 1.14 00/01/27 10:09:23 X-IM-Review-ID: 164268 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, This Bug Report was submitted from http://java.sun.com/cgi-bin/bugreport.cgi and is being forwarded to you on behalf of jstreff@olivet.edu. If you would like to respond. Please send an e-mail to the address listed at the end of this report. Regards, Ranjith ----------------- Original Bug Report------------------- category : hotspot release : 1.4 subcategory : other type : bug synopsis : HotSpot Virtual Machine Error, Internal Error; Error ID: 4F533F4C494E55580E43505 description : FULL PRODUCT VERSION : ? when i type either, it tells me that command not found FULL OPERATING SYSTEM VERSION : FreeBSD 4.6 ADDITIONAL OPERATING SYSTEMS : A DESCRIPTION OF THE PROBLEM : i run bluej as user, and.... -bash-2.05b$ /usr/local/bluej/bluej # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode) # # Error ID: 4F533F4C494E55580E43505002AB # Abort trap i run it as root, and the splash screen comes up, but then just freezes there. I check the processes and it has spawned around 17 instances of itself. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. use freebsd and get the files that the ports tree tells you to get 2. install bluej through the ports 3. run: /usr/local/bluej/bluej EXPECTED VERSUS ACTUAL BEHAVIOR : that bluej would open and run ERROR MESSAGES/STACK TRACES THAT OCCUR : -bash-2.05b$ /usr/local/bluej/bluej # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode) # # Error ID: 4F533F4C494E55580E43505002AB # Abort trap REPRODUCIBILITY : This bug can be reproduced always. workaround : suggested_val : cust_name : Jason Streff cust_email : jstreff@olivet.edu jdcid : keyword : webbug company : Olivet Nazarene University hardware : x86 OSversion : Linux bugtraqID : 0 dateCreated : 2002-09-09 23:42:10.9 dateEvaluated : 2002-09-10 09:44:03.640 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Sep 10 12:13:43 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 934D437B400 for ; Tue, 10 Sep 2002 12:13:38 -0700 (PDT) Received: from smtp-remote.Stanford.EDU (smtp-remote.Stanford.EDU [171.64.14.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 199C243E6A for ; Tue, 10 Sep 2002 12:13:38 -0700 (PDT) (envelope-from zpincus@stanford.edu) Received: from axlotl.local. (adsl-66.218.46.225.dslextreme.com [66.218.46.225]) by smtp-remote.Stanford.EDU (8.11.6/8.11.6) with ESMTP id g8AJDUv05892 for ; Tue, 10 Sep 2002 12:13:32 -0700 (PDT) Date: Tue, 10 Sep 2002 12:13:28 -0700 Mime-Version: 1.0 (Apple Message framework v543) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: UDP Broadcast Failure: bug returns in JDK 1.3.1 patchlevel 7 From: Zachary Pincus To: freebsd-java@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <63403012-C4F1-11D6-B550-000502AD507F@stanford.edu> X-Mailer: Apple Mail (2.543) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I seem to have run across a problem with UDP broadcast in the JDK1.3.1-7. It doesn't appear to be a known issue, so here's what I have found out. Problem Summary --------------- Running the patchlevel 7 JDK 1.3.1 on FreeBSD 4.6, any attempts to send a datagram to the broadcast address fail with a "Permission Denied" IOException. Also, this error also occurs with a patchlevel 6 JDK 1.3.1 -- this problem was *not* introduced by the 7th patchset. I don't know about previous patchlevels. Problem History --------------- This error cropped up in JDK 1.8.1 (freebsd-java mailing list posting: http://www.geocrawler.com/archives/3/162/1998/4/0/808473/ ) but was repaired with a small bugfix ( http://www.geocrawler.com/archives/3/162/1999/6/0/2228696/ ). This problem with JDK 1.3.1 was alluded to early last month by Michael Allen, the jCIFS maintainer ( http://www.geocrawler.com/lists/3/FreeBSD/162/0/9237607/ ). There does not appear to have been any followup on this issue, nor was it confirmed until now, I think. (jCIFS is a java implementation of SMB/CIFS client libraries which depends on UDP broadcast for certain functionality.) Problem Regression ------------------ Test Code: TestDatagram.java (adapted from Mike Allen's code): // usage: java TestDatagram broadcast-address destination-port import java.net.*; public class TestDatagram { public static void main( String[] argv ) throws Exception { String broadcastAddress = argv[0]; int destPort = Integer.parseInt(argv[1]); DatagramPacket packet = new DatagramPacket( "hello, world".getBytes(), 12, InetAddress.getByName(broadcastAddress), destPort ); DatagramSocket socket = new DatagramSocket(); socket.send( packet ); System.out.println("Sent"); } } Code Output (compiled with javac from JDK 1.8.1, results unchanged by other compiler versions): jefferson:~>/usr/local/jdk1.1.8/bin/java TestDatagram 192.168.0.255 137 Sent jefferson:~>/usr/local/linux-sun-jdk1.3.1/bin/java TestDatagram 192.168.0.255 137 Sent jefferson:~>/usr/local/jdk1.3.1/bin/java TestDatagram 192.168.0.255 137 Exception in thread "main" java.io.IOException: Permission denied at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:321) at TestDatagram.main(TestDatagram.java:12) These results are independent of the destination port. Setting that above 1024 doesn't change anything (not that it should...). And yes, 192.168.0.255 is the proper broadcast address: jefferson:~>ifconfig fxp0 inet fxp0: flags=8843 mtu 1500 inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255 Hope this helps, Zach Pincus Program in Biomedical Informatics Stanford University --------------------------------- zpincus_at_stanford_dot_edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Sep 12 17:23:45 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DC6437B400; Thu, 12 Sep 2002 17:23:41 -0700 (PDT) Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB03443E42; Thu, 12 Sep 2002 17:23:40 -0700 (PDT) (envelope-from Ranjith.Mandala@Sun.COM) Received: from ha2sca-mail1.SFBay.Sun.COM ([129.145.155.62]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id SAA23435; Thu, 12 Sep 2002 18:23:40 -0600 (MDT) Received: from antmonster (d-usca14-133-206 [129.145.133.206]) by ha2sca-mail1.SFBay.Sun.COM (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with ESMTP id g8D0Nd214769; Thu, 12 Sep 2002 17:23:39 -0700 (PDT) Date: Thu, 12 Sep 2002 17:23:39 -0700 (PDT) Message-ID: <6673144.1031876523613.JavaMail.Administrator@ha2sca-mail1.sfbay.sun.com> From: Ranjith Mandala To: freebsd-java@freebsd.org Subject: Re: (Review ID: 163981) HotSpot VM Internal Error ID: 4F533F4C49E55580E43505002D7 Cc: java-port@freebsd.org, Ranjith.Mandala@Sun.COM Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: postEmail @(#) PostEmail.java 1.14 00/01/27 10:09:23 X-IM-Review-ID: 163981 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi , This Bug Report was submitted from http://java.sun.com/cgi-bin/bugreport.cgi and is being forwarded to you on behalf of sun@ankon.cjb.net. If you would like to respond. Please send an e-mail to the address listed at the end of this report. Regards, Ranjith ----------------- Original Bug Report------------------- category : java release : hopper-rc subcategory : runtime type : bug synopsis : HotSpot VM Internal Error ID: 4F533F4C49E55580E43505002D7 description : FULL PRODUCT VERSION : java -version won't work, same error happens. This is j2sdk-1_4_1-rc-linux-i586.bin downloaded 2002-09-03, 1400 CEST. Java HotSpot(TM) Client VM (1.4.1-rc-b19 mixed mode) FULL OPERATING SYSTEM VERSION : FreeBSD 4.6, Linux Base(RedHat): 7.1, glibc 2.2.2-10 As java is using Linux Emulation on FreeBSD, I choose Linux as OS. A DESCRIPTION OF THE PROBLEM : HotSpot Virtual Machine Error, Internal Error Error ID: 4F533F4C49E55580E43505002D7 happens on execution of java. Actually, java ran earlier today, that same version. As I didnt do anything bad (only closed terminal window, left the computer for 1h, and started java again, I have really no idea what might have happend. $CLASSPATH, $PATH are set. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. run java EXPECTED VERSUS ACTUAL BEHAVIOR : Expected: java runs Actual: Internal Error as above. ERROR MESSAGES/STACK TRACES THAT OCCUR : Internal Error told me to report it. Exact error code see above. REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- Not needed. ---------- END SOURCE ---------- CUSTOMER WORKAROUND : not yet, but will try with different versions workaround : suggested_val : cust_name : Andreas Kohn cust_email : sun@ankon.cjb.net jdcid : keyword : webbug company : N/A (Student) hardware : x86 OSversion : Linux bugtraqID : 0 dateCreated : 2002-09-03 10:13:58.9 dateEvaluated : 2002-09-12 18:20:51.820 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 13 0:45: 7 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD01B37B400 for ; Fri, 13 Sep 2002 00:45:05 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4431143E3B for ; Fri, 13 Sep 2002 00:45:05 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 17pl8C-0001EV-00; Fri, 13 Sep 2002 00:44:48 -0700 Date: Fri, 13 Sep 2002 00:44:48 -0700 To: Huang wen hui Cc: Huang wen hui , java , "Bill Huey (Hui)" Subject: Re: classloader do not search jre/lib/ext using hotspot vm. Message-ID: <20020913074448.GA4720@gnuppy.monkey.org> References: <3D7A934F.7070503@mail.gddsn.org.cn> <20020908005724.GA3457@gnuppy.monkey.org> <3D7AB2FE.6030903@mail.gddsn.org.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D7AB2FE.6030903@mail.gddsn.org.cn> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Sep 08, 2002 at 10:16:30AM +0800, Huang wen hui wrote: My development environment is up and running again and... > Well, It is very stable. I can use JB7 under -current without any > problem. > I still got some problem with hotspot: > > 1. thread.sleep() not work correctly. I just wrote up a thread/sleep test program and all the periodic threads work correctly that I have tested. > 2. tomcat accept user request very slowly, also because thread.sleep(). Do you have an example of this code ? bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 13 3:50:31 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66F5537B400 for ; Fri, 13 Sep 2002 03:50:27 -0700 (PDT) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4C4643E6E for ; Fri, 13 Sep 2002 03:50:26 -0700 (PDT) (envelope-from hwh@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (gw [210.21.6.34]) by ns.gddsn.org.cn (Postfix) with ESMTP id 44B3A38CBD0; Fri, 13 Sep 2002 18:50:20 +0800 (CST) Message-ID: <3D81C2EB.4030706@mail.gddsn.org.cn> Date: Fri, 13 Sep 2002 18:50:19 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.0.0) Gecko/20020728 X-Accept-Language: zh-cn, zh-tw, en-us MIME-Version: 1.0 To: "Bill Huey (Hui)" Cc: Huang wen hui , java Subject: Re: classloader do not search jre/lib/ext using hotspot vm. References: <3D7A934F.7070503@mail.gddsn.org.cn> <20020908005724.GA3457@gnuppy.monkey.org> <3D7AB2FE.6030903@mail.gddsn.org.cn> <20020913074448.GA4720@gnuppy.monkey.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bill Huey (Hui) wrote: >On Sun, Sep 08, 2002 at 10:16:30AM +0800, Huang wen hui wrote: > >My development environment is up and running again and... > > > >>Well, It is very stable. I can use JB7 under -current without any >>problem. >>I still got some problem with hotspot: >> >>1. thread.sleep() not work correctly. >> >> > >I just wrote up a thread/sleep test program and all the periodic threads >work correctly that I have tested. > > > >>2. tomcat accept user request very slowly, also because thread.sleep(). >> >> > >Do you have an example of this code ? > Install tomcat from /usr/ports/www/jakarta-tomcat3, and then open "http://localhost:8080". I found that the open operation is very slowly. After I remove all Thread.sleep() in tomcat source, tomcat works fine again. That is all. --hwh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 13 12:48: 0 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69D2337B400 for ; Fri, 13 Sep 2002 12:47:58 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E47343E75 for ; Fri, 13 Sep 2002 12:47:57 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds69-45.dial.hccnet.nl [62.251.45.69] with SMTP id VAA05260 (8.8.8/1.13); Fri, 13 Sep 2002 21:47:45 +0200 (MET DST) Message-Id: <200209131947.VAA05260@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: "Jeroen C. van Gelderen" , Subject: Re: Sun License for JDK 1.4 forces automatic updates ?!! Date: Fri, 13 Sep 2002 21:47:44 +0200 X-Mailer: KMail [version 1.3.2] References: <200209021317.04041.znerd@FreeBSD.org> <00ef01c255d7$261587b0$16d05982@LOONBENEDEN> In-Reply-To: <00ef01c255d7$261587b0$16d05982@LOONBENEDEN> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > I believe we should consider banning the Sun JDK 1.4 for Linux. > > With all due respect I think we should stay well and far away from > prescribing policy the way you are suggesting. It is exclusively up to the > user to decide whether using products covered by the Sun license is > acceptable or not. I agree, we should just print an extra warning informing the user of this. Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 13 12:49:40 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DF8937B400; Fri, 13 Sep 2002 12:49:39 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E9F343E42; Fri, 13 Sep 2002 12:49:38 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds69-45.dial.hccnet.nl [62.251.45.69] with SMTP id VAA05731 (8.8.8/1.13); Fri, 13 Sep 2002 21:49:36 +0200 (MET DST) Message-Id: <200209131949.VAA05731@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: Alexey Zelkin Subject: Re: JDK 1.4.1 rc1 Date: Fri, 13 Sep 2002 21:49:35 +0200 X-Mailer: KMail [version 1.3.2] Cc: java@FreeBSD.ORG References: <200208271006.35360.znerd@FreeBSD.org> <20020827114831.A99065@phantom.cris.net> In-Reply-To: <20020827114831.A99065@phantom.cris.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Alexey, > I will give a chance for 1.4.1rc1 as soon as my development hardware > changes settled up. Actually instability of linux's jdk 1.4.0 under > emulation forced me to start native 1.4 port, so maybe I'll have no more > reason to continue :-) Did you have any chance of looking at the 1.4.1 RC1 yet ? :-) Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 13 13: 2:18 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E73EC37B401; Fri, 13 Sep 2002 13:02:10 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id F062843E42; Fri, 13 Sep 2002 13:01:52 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds69-45.dial.hccnet.nl [62.251.45.69] with SMTP id WAA09258 (8.8.8/1.13); Fri, 13 Sep 2002 22:01:49 +0200 (MET DST) Message-Id: <200209132001.WAA09258@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: audit@FreeBSD.org Subject: daemonctl.c: setuid/setgid Date: Fri, 13 Sep 2002 22:01:48 +0200 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Ari Suutari , Kris Kennaway , java@FreeBSD.org Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear audit :) Hereby I request a review of a patch for a daemon control program. The file in question is: ports/www/jakarta-tomcat4/files/daemonctl.c This program is specifically written for controlling the starting and stopping of Java-based web servers and application servers. The idea is that anyone in a certain group (typically group 'www') can call this program. The program will then assume a certain identity (typically user 'www') before starting the Java virtual machine. The daemonctl program is installed as both setuid and setgid. This daemonctl program is first preprocessed by the makefile to customize it for a certain web/application server. The daemonctl program is used for these ports: o Tomcat 3.x (www/jakarta-tomcat3) o Tomcat 4.0.x (www/jakarta-tomcat4) o Tomcat 4.1.x (www/jakarta-tomcat41) o Orion/stable (www/orion) o Orion/current (www/orion-devel) o JBoss 2.x (java/jboss2) o JBoss 3.x (java/jboss3) The problem is that a number of Java virtual machines need an environment to be set up before starting up. This includes the native FreeBSD JDK 1.3.1 (from ports/java/jdk13). A suggested solution (by Ari Suutari) is that at the beginning of the daemonctl program the following code is executed: setuid(geteuid()); setgid(getegid()) (Just above the ``argument = argv[1];'' line). I ask for this review because I don't know what the exact consequences of this are. Kris suggested that I should get this reviewed by audit. Is it okay to commit these changes or would they impact security? SEE ALSO: 1. The thread about this subject on freebsd-java: http://www.geocrawler.com/mail/thread.php3?subject=Jboss3ctl+update+%28I+think+I+know+the+problem%29&list=162 2. The CVS log for daemonctl.c: http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/jakarta-tomcat4/files/daemonctl.c -- E: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 13 14:14:13 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AC3B37B400; Fri, 13 Sep 2002 14:14:12 -0700 (PDT) Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7159443E42; Fri, 13 Sep 2002 14:13:44 -0700 (PDT) (envelope-from phantom@ark.cris.net) Received: from ark.cris.net (root@ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id AAA36829; Sat, 14 Sep 2002 00:13:33 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.11.1/8.11.1) id g8DLDZt18282; Sat, 14 Sep 2002 00:13:35 +0300 (EEST) Date: Sat, 14 Sep 2002 00:13:35 +0300 From: Alexey Zelkin To: Ernst de Haan Cc: java@FreeBSD.org Subject: Re: JDK 1.4.1 rc1 Message-ID: <20020914001335.A17588@ark.cris.net> References: <200208271006.35360.znerd@FreeBSD.org> <20020827114831.A99065@phantom.cris.net> <200209131949.VAA05731@smtp.hccnet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200209131949.VAA05731@smtp.hccnet.nl>; from znerd@FreeBSD.org on Fri, Sep 13, 2002 at 09:49:35PM +0200 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, On Fri, Sep 13, 2002 at 09:49:35PM +0200, Ernst de Haan wrote: > > I will give a chance for 1.4.1rc1 as soon as my development hardware > > changes settled up. Actually instability of linux's jdk 1.4.0 under > > emulation forced me to start native 1.4 port, so maybe I'll have no more > > reason to continue :-) > > Did you have any chance of looking at the 1.4.1 RC1 yet ? :-) Unfortunatelly no. I hope to get next week machine that will be dedicated to my expirements only. Ping me late next week with this issue. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Sep 13 16:28:23 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A10737B400; Fri, 13 Sep 2002 16:28:19 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 664A843E81; Fri, 13 Sep 2002 16:28:18 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 17pzrE-0000Vb-00; Fri, 13 Sep 2002 16:28:16 -0700 Date: Fri, 13 Sep 2002 16:28:16 -0700 To: Ernst de Haan Cc: audit@FreeBSD.org, Ari Suutari , Kris Kennaway , java@FreeBSD.org Subject: Re: daemonctl.c: setuid/setgid Message-ID: <20020913232816.GA1933@gnuppy.monkey.org> References: <200209132001.WAA09258@smtp.hccnet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209132001.WAA09258@smtp.hccnet.nl> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Sep 13, 2002 at 10:01:48PM +0200, Ernst de Haan wrote: > Dear audit :) > > Hereby I request a review of a patch for a daemon control program. > > The file in question is: ports/www/jakarta-tomcat4/files/daemonctl.c I was just looking at it last night and the first thing that came to mind was the hard coded JVM path. I'd like that turned into a macro or something that's command line specifiable at startup. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message