From owner-freebsd-java Sun Oct 17 11:16:43 1999 Delivered-To: freebsd-java@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.prod.itd.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id AC48414D52 for ; Sun, 17 Oct 1999 11:16:34 -0700 (PDT) (envelope-from chukls@earthlink.net) Received: from chucks (sdn-ar-001txaustP008.dialsprint.net [168.191.153.16]) by gull.prod.itd.earthlink.net (8.9.3/8.9.3) with SMTP id LAA17339 for ; Sun, 17 Oct 1999 11:16:33 -0700 (PDT) Reply-To: From: "Charles Simpson" To: Subject: Port of JDK1.2 Runtime? Date: Sun, 17 Oct 1999 13:12:42 -0500 Message-ID: <001301bf18cb$34230040$1099bfa8@garden.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Importance: Normal Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Forgive me if this a FAQ, but I couldn't find an answer by searching the mailing list for the keywords jdk1.2, or java2. My company has used and recommended that our customers use FreeBSD as their operating system. We sell a product/service that makes it easy for customers to manage their web content. We recently embarked on a project to use Java as the basis of our underlying technology. After a lot of analysis we concluded that the only way to stay on the technology curve was to use Java 2 (jdk1.2.x) as our code base. There are Java 2 runtime implementations for the other platforms we support, Solaris, Windows NT, Linux. However we have heard nothing about Java 2 runtimes for FreeBSD. We like the stability of FreeBSD and the networking support, but see the lack of Java 2 support as a significant drawback. I would like to talk to someone on the FreeBSD Java team about this subject. Depending on the challenges facing your team we may be able to contribute to the effort. Please reply to the address below. Sincerely, Charles (Chuck) Simpson mailto://chuckls@adhesive.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 17 11:23:28 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 9203F14C28 for ; Sun, 17 Oct 1999 11:23:21 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id MAA00915; Sun, 17 Oct 1999 12:23:20 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id MAA13714; Sun, 17 Oct 1999 12:23:15 -0600 Date: Sun, 17 Oct 1999 12:23:15 -0600 Message-Id: <199910171823.MAA13714@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Cc: Subject: Re: Port of JDK1.2 Runtime? In-Reply-To: <001301bf18cb$34230040$1099bfa8@garden.com> References: <001301bf18cb$34230040$1099bfa8@garden.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Forgive me if this a FAQ, but I couldn't find an answer by > searching the mailing list for the keywords jdk1.2, or java2. Checkout http://www.freebsd.org/java, which is listed in the mailing lists. Also, this question has been answered numerous times in the last few weeks, so I'm suprised your search of the mailing lists didn't find the answer. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 17 23: 7:33 1999 Delivered-To: freebsd-java@freebsd.org Received: from berry.cs.brandeis.edu (berry.cs.brandeis.edu [129.64.2.5]) by hub.freebsd.org (Postfix) with ESMTP id 45F5D14CF7 for ; Sun, 17 Oct 1999 23:07:11 -0700 (PDT) (envelope-from meshko@mail.cs.brandeis.edu) Received: from daedalus.cs.brandeis.edu (daedalus.cs.brandeis.edu [129.64.3.179]) by berry.cs.brandeis.edu (8.9.1a/8.9.1a) with ESMTP id CAA22029 for ; Mon, 18 Oct 1999 02:07:30 -0400 (EDT) Received: from localhost (meshko@localhost) by daedalus.cs.brandeis.edu (8.9.1a/8.9.1) with ESMTP id CAA15482 for ; Mon, 18 Oct 1999 02:07:30 -0400 X-Authentication-Warning: daedalus.cs.brandeis.edu: meshko owned process doing -bs Date: Mon, 18 Oct 1999 02:07:30 -0400 (EDT) From: Mikhail Kruk To: java@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, sorry is this is a stupid question, and yes, I should upgrade to 1.1.8 before asking it, but upgrading over the modem is not that easy and I thought that I can ask anyway... Here we go: I have an applet. I run it on jdk 1.1.6 under 3.2-RELEASe and check some execution times. Here are the results (we are talking appletviewer) timer (initial fill): 2167 ms timer (ellipse fill): 5266 ms timer (drop): 5172 ms Now let's try the same under the appletviewer from jdk1.2 Linux port which runs fine under emulation on my box (except that green threads are very slow) timer (initial fill): 487 ms timer (ellipse fill): 1055 ms timer (drop): 1015 ms So Linux emulation gives better performance than netive port? WOuld 1.1.8 do better than that? off-topic: Would using Linux Netscape show the same order of performance boost? Right now this applet take 30 (!) seconds under FreeBSD Netscape. Compare to 1.5 seconds with Windows Netscape and 10 seconds on RedHat... I would appreciate answer to any of these questions! thank you! -m To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 18 8:28:48 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 3043815007 for ; Mon, 18 Oct 1999 08:28:45 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id JAA10297; Mon, 18 Oct 1999 09:28:44 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA16467; Mon, 18 Oct 1999 09:28:42 -0600 Date: Mon, 18 Oct 1999 09:28:42 -0600 Message-Id: <199910181528.JAA16467@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mikhail Kruk Cc: java@FreeBSD.ORG In-Reply-To: References: X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > So Linux emulation gives better performance than netive port? WOuld 1.1.8 > do better than that? Yes, but not better than the Linux port. The reason the linux port does better has *nothing* to do with emulation, but because the linux port has a good JIT, and the native port does not. > off-topic: Would using Linux Netscape show the same order of performance > boost? Right now this applet take 30 (!) seconds under FreeBSD Netscape. > Compare to 1.5 seconds with Windows Netscape and 10 seconds on RedHat... Nope, because the JIT is part of the JDK, not part of netscape. Linux netscape has no JIT, although the Windows version does. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 18 14: 5:32 1999 Delivered-To: freebsd-java@freebsd.org Received: from defiant.quansoo.com (defiant.quansoo.com [63.66.225.90]) by hub.freebsd.org (Postfix) with ESMTP id 5547414EFE for ; Mon, 18 Oct 1999 14:05:11 -0700 (PDT) (envelope-from cgriffiths@quansoo.com) Received: from localhost (cgriffiths@localhost) by defiant.quansoo.com (8.9.3/8.9.3) with ESMTP id RAA04382 for ; Mon, 18 Oct 1999 17:05:29 -0500 (CDT) (envelope-from cgriffiths@quansoo.com) X-Authentication-Warning: defiant.quansoo.com: cgriffiths owned process doing -bs Date: Mon, 18 Oct 1999 17:05:29 -0500 (CDT) From: "Christopher T. Griffiths" To: java@freebsd.org Subject: Linux JDK1.2 port Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Has anyone had any luck with the linux port for 1.2 under emulation?? I have it installed but am getting the following error when running java: /usr/bin/expr: not found Error: can't find libjava.so. I have seen in this list that people are running it so if anyone can give me some advice for getting this to run that would be great. Thanks Chris Christopher T. Griffiths Senior Network/Systems Administrator Quansoo Group Inc. cgriffiths@quansoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 18 18:55: 3 1999 Delivered-To: freebsd-java@freebsd.org Received: from ares.maths.adelaide.edu.au (ares.maths.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 93D39157CD for ; Mon, 18 Oct 1999 18:54:57 -0700 (PDT) (envelope-from glewis@ares.maths.adelaide.edu.au) Received: (from glewis@localhost) by ares.maths.adelaide.edu.au (8.9.3/8.9.3) id LAA22469; Tue, 19 Oct 1999 11:24:47 +0930 (CST) (envelope-from glewis) From: Greg Lewis Message-Id: <199910190154.LAA22469@ares.maths.adelaide.edu.au> Subject: Re: Linux JDK1.2 port In-Reply-To: from "Christopher T. Griffiths" at "Oct 18, 1999 05:05:29 pm" To: "Christopher T. Griffiths" Date: Tue, 19 Oct 1999 11:24:47 +0930 (CST) Cc: freebsd-java@freebsd.org X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Has anyone had any luck with the linux port for 1.2 under emulation?? Haven't tried it myself :). > I have it installed but am getting the following error when running java: > > /usr/bin/expr: not found There is a /compat/linux/usr/bin/expr though, which is possibly what is wanted. > Error: can't find libjava.so. Sounds like you may have this shared library (I assume it comes with the Linux JDK) somewhere the Linux loader can't find it. Try putting it in /compat/linux/usr/lib and rerunning /compat/linux/ldconfig, or else using ldconfig to get the Linux loader to search whereever you've put it. -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 18 23:39:54 1999 Delivered-To: freebsd-java@freebsd.org Received: from rztsun.rz.tu-harburg.de (rztsun.rz.tu-harburg.de [134.28.200.14]) by hub.freebsd.org (Postfix) with ESMTP id A19A315F77 for ; Mon, 18 Oct 1999 23:39:40 -0700 (PDT) (envelope-from reimers@tu-harburg.de) Received: from tu-harburg.de (data.et8.tu-harburg.de [134.28.45.64]) by rztsun.rz.tu-harburg.de (8.9.0/8.8.8) with ESMTP id IAA17255; Tue, 19 Oct 1999 08:39:37 +0200 (MET DST) Message-ID: <380C1228.92E6C7A1@tu-harburg.de> Date: Tue, 19 Oct 1999 08:39:36 +0200 From: Sven Reimers X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Christopher T. Griffiths" Cc: java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have it up and running really stable and fast, I am even using Netbeans with it. Use the diff for .java.wrapper to get rid of the error messages caused by the script. --- .java_wrapper.org Wed Jun 9 18:19:46 1999 +++ .java_wrapper Wed Jun 9 18:41:52 1999 @@ -31,8 +31,8 @@ # Resolve symlinks. See 4152645. while [ -h "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` - if /usr/bin/expr "$link" : '/' > /dev/null; then + link=`/bin/expr "$ls" : '.*-> \(.*\)$'` + if /bin/expr "$link" : '\/' > /dev/null; then PRG="$link" else PRG="`/usr/bin/dirname $PRG`/$link" (Thanks to Daichi T.GOTO -- daichi@ongs.net) Then you should use the -green option to use green threads, only those work. Try java -version so if it works. Maybe you have to update the Xlibs in the linux compat. There seem to be missing one. Wait for the special error message and see. Last thing is to get the free URW fonts to get rid of the annoying messages about missing fonts. All in all that should, at least this is all I can remember. Good luck Sven P.S. I put the JDK in /usr/local/jdk1.2 and linked the java etc. scripts in /usr/local/bin. "Christopher T. Griffiths" wrote: > Has anyone had any luck with the linux port for 1.2 under emulation?? > > I have it installed but am getting the following error when running java: > > /usr/bin/expr: not found > Error: can't find libjava.so. > > I have seen in this list that people are running it so if anyone can give > me some advice for getting this to run that would be great. > > Thanks > > Chris > > Christopher T. Griffiths > Senior Network/Systems Administrator > Quansoo Group Inc. > cgriffiths@quansoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 19 1:34:31 1999 Delivered-To: freebsd-java@freebsd.org Received: from iip-lab.ics.es.osaka-u.ac.jp (iip-lab.ics.es.osaka-u.ac.jp [133.1.12.190]) by hub.freebsd.org (Postfix) with ESMTP id 38406162C7 for ; Tue, 19 Oct 1999 01:34:18 -0700 (PDT) (envelope-from matusita@ics.es.osaka-u.ac.jp) Received: from localhost (martini.ics.es.osaka-u.ac.jp [133.1.12.150]) by iip-lab.ics.es.osaka-u.ac.jp (8.9.3/3.7W/INO-1.0v8-MASTER) with ESMTP id RAA63944 for ; Tue, 19 Oct 1999 17:34:16 +0900 (JST) In-Reply-To: <380C1228.92E6C7A1@tu-harburg.de> References: <380C1228.92E6C7A1@tu-harburg.de> X-Face: '*aj"d@ijeQ:/X}]oM5c5Uz{ZZZk90WPt>a^y4$cGQp8:!H\W=hSM;PuNiidkc]/%,;6VGu e+`&APmz|P;F~OL/QK%;P2vU>\j4X.8@i%j6[%DTs_3J,Fff0)*oHg$A.cDm&jc#pD24WK@{,"Ef!0 P\):.2}8jo-BiZ?X&t$V X-User-Agent: Mew/1.94 XEmacs/21.2 (Toshima) X-SKK-Version: 10.52 X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) X-Fingerprint: 0C AC 93 FC E3 9D 9E 5B 3D B8 AC 5C 4A 79 D8 A6 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 990905(IM130) Lines: 79 From: Makoto MATSUSHITA (=?ISO-2022-JP?B?GyRCJF4kRCQ3JD8kXiQzJEgbKEI=?=) To: java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port Date: Tue, 19 Oct 1999 17:34:14 +0900 Message-Id: <19991019173414W.matusita@ics.es.osaka-u.ac.jp> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org reimers> Use the diff for .java.wrapper to get rid of the error messages reimers> caused by the script. Why not using /compat/linux/usr/bin/expr, which is already noted by previous mail (by glewis@trc.adelaide.edu.au) ? Maybe /bin/expr works also in some cases, but our /bin/expr copy (as of FreeBSD 3.3-RELEASE) complains about this format (I dunno why). reimers> Then you should use the -green option to use green threads, reimers> only those work. Exactly. Here is a patch which contains all of above. I've tested on: - FreeBSD 3.3-RELEASE and its Linux emulation by kernel module (it's easy to do by /usr/bin/linux, and/or put linux_enable="YES" to your /etc/rc.conf or equivalent. No need to recompile your customized/default kernel) - FreeBSD packages linux_base-5.2 for Linux environment (It's the latest version of ports/emulators/linux_base, and included package collections for FreeBSD 3.3-RELEASE) - JDK 1.2pre-v2 by Java-Linux Porting Team at blackdown.org (See ) Hope this helps... --- bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 +++ bin/.java_wrapper Thu Oct 14 19:17:11 1999 @@ -31,8 +31,8 @@ # Resolve symlinks. See 4152645. while [ -h "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` - if /usr/bin/expr "$link" : '/' > /dev/null; then + link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'` + if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then PRG="$link" else PRG="`/usr/bin/dirname $PRG`/$link" @@ -63,7 +63,7 @@ # Select vm type (if classic vm, also select thread type). unset vmtype unset ttype -DEFAULT_THREADS_FLAG=native +DEFAULT_THREADS_FLAG=green if [ "x$1" = "x-hotspot" ]; then vmtype=hotspot ttype=native_threads --- jre/bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 +++ jre/bin/.java_wrapper Thu Oct 14 19:32:06 1999 @@ -31,8 +31,8 @@ # Resolve symlinks. See 4152645. while [ -h "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` - if /usr/bin/expr "$link" : '/' > /dev/null; then + link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'` + if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then PRG="$link" else PRG="`/usr/bin/dirname $PRG`/$link" @@ -63,7 +63,7 @@ # Select vm type (if classic vm, also select thread type). unset vmtype unset ttype -DEFAULT_THREADS_FLAG=native +DEFAULT_THREADS_FLAG=green if [ "x$1" = "x-hotspot" ]; then vmtype=hotspot ttype=native_threads BTW, is there any report about this JDK1.2 works on recent (yes, the time after sigset_t changes) 4.0-CURRENT ? I've tried, but no helps (the process hungs up). -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 19 7: 7:52 1999 Delivered-To: freebsd-java@freebsd.org Received: from defiant.quansoo.com (defiant.quansoo.com [63.66.225.90]) by hub.freebsd.org (Postfix) with ESMTP id 167251717E for ; Tue, 19 Oct 1999 07:07:48 -0700 (PDT) (envelope-from cgriffiths@quansoo.com) Received: from localhost (cgriffiths@localhost) by defiant.quansoo.com (8.9.3/8.9.3) with ESMTP id KAA00842; Tue, 19 Oct 1999 10:07:20 -0500 (CDT) (envelope-from cgriffiths@quansoo.com) X-Authentication-Warning: defiant.quansoo.com: cgriffiths owned process doing -bs Date: Tue, 19 Oct 1999 10:07:20 -0500 (CDT) From: "Christopher T. Griffiths" To: Sven Reimers Cc: java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port In-Reply-To: <380C1228.92E6C7A1@tu-harburg.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Great, Thanks for the help! Chris On Tue, 19 Oct 1999, Sven Reimers wrote: > Hi, > > I have it up and running really stable and fast, > I am even using Netbeans with it. > > Use the diff for .java.wrapper to get rid of the error messages > caused by the script. > > --- .java_wrapper.org Wed Jun 9 18:19:46 1999 > +++ .java_wrapper Wed Jun 9 18:41:52 1999 > @@ -31,8 +31,8 @@ > # Resolve symlinks. See 4152645. > while [ -h "$PRG" ]; do > ls=`/bin/ls -ld "$PRG"` > - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > - if /usr/bin/expr "$link" : '/' > /dev/null; then > + link=`/bin/expr "$ls" : '.*-> \(.*\)$'` > + if /bin/expr "$link" : '\/' > /dev/null; then > PRG="$link" > else > PRG="`/usr/bin/dirname $PRG`/$link" > > (Thanks to Daichi T.GOTO -- daichi@ongs.net) > > Then you should use the -green option to use green threads, > only those work. > > Try java -version so if it works. > > Maybe you have to update the Xlibs in the linux compat. There > seem to be missing one. Wait for the special error message and see. > > Last thing is to get the free URW fonts to get rid of the annoying > messages about missing fonts. > > All in all that should, at least this is all I can remember. > > Good luck > > Sven > > P.S. > > I put the JDK in /usr/local/jdk1.2 and linked the java etc. scripts in > /usr/local/bin. > > > > "Christopher T. Griffiths" wrote: > > > Has anyone had any luck with the linux port for 1.2 under emulation?? > > > > I have it installed but am getting the following error when running java: > > > > /usr/bin/expr: not found > > Error: can't find libjava.so. > > > > I have seen in this list that people are running it so if anyone can give > > me some advice for getting this to run that would be great. > > > > Thanks > > > > Chris > > > > Christopher T. Griffiths > > Senior Network/Systems Administrator > > Quansoo Group Inc. > > cgriffiths@quansoo.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 19 9: 2:51 1999 Delivered-To: freebsd-java@freebsd.org Received: from defiant.quansoo.com (defiant.quansoo.com [63.66.225.90]) by hub.freebsd.org (Postfix) with ESMTP id 87BE617577 for ; Tue, 19 Oct 1999 09:02:46 -0700 (PDT) (envelope-from cgriffiths@quansoo.com) Received: from localhost (cgriffiths@localhost) by defiant.quansoo.com (8.9.3/8.9.3) with ESMTP id MAA02522; Tue, 19 Oct 1999 12:02:34 -0500 (CDT) (envelope-from cgriffiths@quansoo.com) X-Authentication-Warning: defiant.quansoo.com: cgriffiths owned process doing -bs Date: Tue, 19 Oct 1999 12:02:34 -0500 (CDT) From: "Christopher T. Griffiths" To: matusita@ics.es.osaka-u.ac.jp Cc: java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port In-Reply-To: <19991019173414W.matusita@ics.es.osaka-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have setup jdk1.2 in my /opt directory and I have run the patch with the /compat/linux for /usr/bin/expr I also added the following to ld.so.conf in /compat/linux/etc/ /opt/jdk1.2/jre/lib/i386 /opt/jdk1.2/jre/lib/i386/green_threads /opt/jdk1.2/jre/lib/i386/classic I am now getting the following error with a core dump: Segmentation fault /opt/jdk1.2/bin/i386/green_threads/java: error in loading shared libraries /opt/jdk1.2/jre/lib/i386/classic/libjvm.so: undefined symbol: __bzero Oct 19 12:01:43 defiant /kernel: pid 2512 (realpath), uid 1000: exited on signal 11 Any suggestions would be a great help Chris On Tue, 19 Oct 1999, it was written: > > reimers> Use the diff for .java.wrapper to get rid of the error messages > reimers> caused by the script. > > Why not using /compat/linux/usr/bin/expr, which is already noted by > previous mail (by glewis@trc.adelaide.edu.au) ? Maybe /bin/expr works > also in some cases, but our /bin/expr copy (as of FreeBSD 3.3-RELEASE) > complains about this format (I dunno why). > > reimers> Then you should use the -green option to use green threads, > reimers> only those work. > > Exactly. Here is a patch which contains all of above. I've tested on: > > - FreeBSD 3.3-RELEASE and its Linux emulation by kernel module > (it's easy to do by /usr/bin/linux, and/or put > linux_enable="YES" to your /etc/rc.conf or equivalent. No > need to recompile your customized/default kernel) > > - FreeBSD packages linux_base-5.2 for Linux environment > (It's the latest version of ports/emulators/linux_base, and > included package collections for FreeBSD 3.3-RELEASE) > > - JDK 1.2pre-v2 by Java-Linux Porting Team at blackdown.org > (See ) > > Hope this helps... > > --- bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 > +++ bin/.java_wrapper Thu Oct 14 19:17:11 1999 > @@ -31,8 +31,8 @@ > # Resolve symlinks. See 4152645. > while [ -h "$PRG" ]; do > ls=`/bin/ls -ld "$PRG"` > - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > - if /usr/bin/expr "$link" : '/' > /dev/null; then > + link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > + if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then > PRG="$link" > else > PRG="`/usr/bin/dirname $PRG`/$link" > @@ -63,7 +63,7 @@ > # Select vm type (if classic vm, also select thread type). > unset vmtype > unset ttype > -DEFAULT_THREADS_FLAG=native > +DEFAULT_THREADS_FLAG=green > if [ "x$1" = "x-hotspot" ]; then > vmtype=hotspot > ttype=native_threads > --- jre/bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 > +++ jre/bin/.java_wrapper Thu Oct 14 19:32:06 1999 > @@ -31,8 +31,8 @@ > # Resolve symlinks. See 4152645. > while [ -h "$PRG" ]; do > ls=`/bin/ls -ld "$PRG"` > - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > - if /usr/bin/expr "$link" : '/' > /dev/null; then > + link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > + if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then > PRG="$link" > else > PRG="`/usr/bin/dirname $PRG`/$link" > @@ -63,7 +63,7 @@ > # Select vm type (if classic vm, also select thread type). > unset vmtype > unset ttype > -DEFAULT_THREADS_FLAG=native > +DEFAULT_THREADS_FLAG=green > if [ "x$1" = "x-hotspot" ]; then > vmtype=hotspot > ttype=native_threads > > BTW, is there any report about this JDK1.2 works on recent (yes, the > time after sigset_t changes) 4.0-CURRENT ? I've tried, but no helps > (the process hungs up). > > -- - > Makoto `MAR' MATSUSHITA > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > Christopher T. Griffiths Senior Network/Systems Administrator Quansoo Group Inc. cgriffiths@quansoo.com Phone: (302) 777-4141 Fax: (302) 777-4142 Mobile: (302) 521-3436 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 19 9:16:34 1999 Delivered-To: freebsd-java@freebsd.org Received: from defiant.quansoo.com (defiant.quansoo.com [63.66.225.90]) by hub.freebsd.org (Postfix) with ESMTP id 8342217607 for ; Tue, 19 Oct 1999 09:16:25 -0700 (PDT) (envelope-from cgriffiths@quansoo.com) Received: from localhost (cgriffiths@localhost) by defiant.quansoo.com (8.9.3/8.9.3) with ESMTP id MAA02699; Tue, 19 Oct 1999 12:16:01 -0500 (CDT) (envelope-from cgriffiths@quansoo.com) X-Authentication-Warning: defiant.quansoo.com: cgriffiths owned process doing -bs Date: Tue, 19 Oct 1999 12:16:00 -0500 (CDT) From: "Christopher T. Griffiths" To: Sven Reimers Cc: java@freebsd.org Subject: Re: Linux JDK1.2 port In-Reply-To: <380C980B.6D7FE482@tu-harburg.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Sorry, I am using 3.3stable with linux_base and linux_devtools with linux emulation running. I am trying to run java -version. Chris On Tue, 19 Oct 1999, Sven Reimers wrote: > Maybe you could be a bit more precise. > > What system version, what command you are trying ... > > Sven > > > "Christopher T. Griffiths" wrote: > > > I have setup jdk1.2 in my /opt directory and I have run the patch with the > > /compat/linux for /usr/bin/expr > > > > I also added the following to ld.so.conf in /compat/linux/etc/ > > > > /opt/jdk1.2/jre/lib/i386 > > /opt/jdk1.2/jre/lib/i386/green_threads > > /opt/jdk1.2/jre/lib/i386/classic > > > > I am now getting the following error with a core dump: > > > > Segmentation fault > > /opt/jdk1.2/bin/i386/green_threads/java: error in loading shared libraries > > /opt/jdk1.2/jre/lib/i386/classic/libjvm.so: undefined symbol: __bzero > > > > Oct 19 12:01:43 defiant /kernel: pid 2512 (realpath), uid 1000: exited on > > signal 11 > > > > Any suggestions would be a great help > > > > Chris > > > > On Tue, 19 Oct 1999, it was written: > > > > > > > > reimers> Use the diff for .java.wrapper to get rid of the error messages > > > reimers> caused by the script. > > > > > > Why not using /compat/linux/usr/bin/expr, which is already noted by > > > previous mail (by glewis@trc.adelaide.edu.au) ? Maybe /bin/expr works > > > also in some cases, but our /bin/expr copy (as of FreeBSD 3.3-RELEASE) > > > complains about this format (I dunno why). > > > > > > reimers> Then you should use the -green option to use green threads, > > > reimers> only those work. > > > > > > Exactly. Here is a patch which contains all of above. I've tested on: > > > > > > - FreeBSD 3.3-RELEASE and its Linux emulation by kernel module > > > (it's easy to do by /usr/bin/linux, and/or put > > > linux_enable="YES" to your /etc/rc.conf or equivalent. No > > > need to recompile your customized/default kernel) > > > > > > - FreeBSD packages linux_base-5.2 for Linux environment > > > (It's the latest version of ports/emulators/linux_base, and > > > included package collections for FreeBSD 3.3-RELEASE) > > > > > > - JDK 1.2pre-v2 by Java-Linux Porting Team at blackdown.org > > > (See ) > > > > > > Hope this helps... > > > > > > --- bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 > > > +++ bin/.java_wrapper Thu Oct 14 19:17:11 1999 > > > @@ -31,8 +31,8 @@ > > > # Resolve symlinks. See 4152645. > > > while [ -h "$PRG" ]; do > > > ls=`/bin/ls -ld "$PRG"` > > > - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > > > - if /usr/bin/expr "$link" : '/' > /dev/null; then > > > + link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > > > + if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then > > > PRG="$link" > > > else > > > PRG="`/usr/bin/dirname $PRG`/$link" > > > @@ -63,7 +63,7 @@ > > > # Select vm type (if classic vm, also select thread type). > > > unset vmtype > > > unset ttype > > > -DEFAULT_THREADS_FLAG=native > > > +DEFAULT_THREADS_FLAG=green > > > if [ "x$1" = "x-hotspot" ]; then > > > vmtype=hotspot > > > ttype=native_threads > > > --- jre/bin/.java_wrapper.dist Thu Jun 3 01:14:34 1999 > > > +++ jre/bin/.java_wrapper Thu Oct 14 19:32:06 1999 > > > @@ -31,8 +31,8 @@ > > > # Resolve symlinks. See 4152645. > > > while [ -h "$PRG" ]; do > > > ls=`/bin/ls -ld "$PRG"` > > > - link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > > > - if /usr/bin/expr "$link" : '/' > /dev/null; then > > > + link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'` > > > + if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then > > > PRG="$link" > > > else > > > PRG="`/usr/bin/dirname $PRG`/$link" > > > @@ -63,7 +63,7 @@ > > > # Select vm type (if classic vm, also select thread type). > > > unset vmtype > > > unset ttype > > > -DEFAULT_THREADS_FLAG=native > > > +DEFAULT_THREADS_FLAG=green > > > if [ "x$1" = "x-hotspot" ]; then > > > vmtype=hotspot > > > ttype=native_threads > > > > > > BTW, is there any report about this JDK1.2 works on recent (yes, the > > > time after sigset_t changes) 4.0-CURRENT ? I've tried, but no helps > > > (the process hungs up). > > > > > > -- - > > > Makoto `MAR' MATSUSHITA > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-java" in the body of the message > > > > > > > Christopher T. Griffiths > > Senior Network/Systems Administrator > > Quansoo Group Inc. > > cgriffiths@quansoo.com > > Phone: (302) 777-4141 > > Fax: (302) 777-4142 > > Mobile: (302) 521-3436 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-java" in the body of the message > Christopher T. Griffiths Senior Network/Systems Administrator Quansoo Group Inc. cgriffiths@quansoo.com Phone: (302) 777-4141 Fax: (302) 777-4142 Mobile: (302) 521-3436 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 19 9:36:44 1999 Delivered-To: freebsd-java@freebsd.org Received: from rztsun.rz.tu-harburg.de (rztsun.rz.tu-harburg.de [134.28.200.14]) by hub.freebsd.org (Postfix) with ESMTP id 60B5E17692 for ; Tue, 19 Oct 1999 09:36:40 -0700 (PDT) (envelope-from reimers@tu-harburg.de) Received: from tu-harburg.de (data.et8.tu-harburg.de [134.28.45.64]) by rztsun.rz.tu-harburg.de (8.9.0/8.8.8) with ESMTP id SAA21865; Tue, 19 Oct 1999 18:36:36 +0200 (MET DST) Message-ID: <380C9E14.61A02935@tu-harburg.de> Date: Tue, 19 Oct 1999 18:36:36 +0200 From: Sven Reimers X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Christopher T. Griffiths" Cc: java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hm, I think /compat/linux/sbin/ldconfig -p shows that jdk-libs are in the ldconfig of linux I think that is not necessary, since it is set in the script! So remove this and try again. Sven P.S I have no mentioning of JDK-libs in either ldconfig. "Christopher T. Griffiths" wrote: > Sorry, > > I am using 3.3stable with linux_base and linux_devtools with linux > emulation running. > I am trying to run java -version. > > Chris > > On Tue, 19 Oct 1999, Sven Reimers wrote: > > > Maybe you could be a bit more precise. > > > > What system version, what command you are trying ... > > > > Sven > > > > > > "Christopher T. Griffiths" wrote: > > > > > I have setup jdk1.2 in my /opt directory and I have run the patch with the > > > /compat/linux for /usr/bin/expr > > > > > > I also added the following to ld.so.conf in /compat/linux/etc/ > > > > > > /opt/jdk1.2/jre/lib/i386 > > > /opt/jdk1.2/jre/lib/i386/green_threads > > > /opt/jdk1.2/jre/lib/i386/classic > > > > > > I am now getting the following error with a core dump: > > > > > > Segmentation fault > > > /opt/jdk1.2/bin/i386/green_threads/java: error in loading shared libraries > > > /opt/jdk1.2/jre/lib/i386/classic/libjvm.so: undefined symbol: __bzero > > > > > > Oct 19 12:01:43 defiant /kernel: pid 2512 (realpath), uid 1000: exited on > > > signal 11 > > > > > > Any suggestions would be a great help > > > > > > Chris [snipped] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 20 7:17:49 1999 Delivered-To: freebsd-java@freebsd.org Received: from defiant.quansoo.com (defiant.quansoo.com [63.66.225.90]) by hub.freebsd.org (Postfix) with ESMTP id B80B51B9E2 for ; Wed, 20 Oct 1999 07:17:44 -0700 (PDT) (envelope-from cgriffiths@quansoo.com) Received: from localhost (cgriffiths@localhost) by defiant.quansoo.com (8.9.3/8.9.3) with ESMTP id JAA00825; Wed, 20 Oct 1999 09:16:52 -0400 (EDT) (envelope-from cgriffiths@quansoo.com) X-Authentication-Warning: defiant.quansoo.com: cgriffiths owned process doing -bs Date: Wed, 20 Oct 1999 09:16:52 -0400 (EDT) From: "Christopher T. Griffiths" To: alex.boisvert@gel.usherb.CA Cc: matusita@ics.es.osaka-u.ac.jp, java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Yes unfortunatly I am still getting the same errors. I even cvsup yesterday and did a buildworld just in case. Still getting the core dump as well as the undefined symbol. Chris On Wed, 20 Oct 1999, Alex Boisvert wrote: > On Tue, 19 Oct 1999, Christopher T. Griffiths wrote: > > > I have setup jdk1.2 in my /opt directory and I have run the patch with the > > /compat/linux for /usr/bin/expr > > > > I also added the following to ld.so.conf in /compat/linux/etc/ > > > > /opt/jdk1.2/jre/lib/i386 > > /opt/jdk1.2/jre/lib/i386/green_threads > > /opt/jdk1.2/jre/lib/i386/classic > > > > > > I am now getting the following error with a core dump: > > > > Segmentation fault > > /opt/jdk1.2/bin/i386/green_threads/java: error in loading shared libraries > > /opt/jdk1.2/jre/lib/i386/classic/libjvm.so: undefined symbol: __bzero > > > > Oct 19 12:01:43 defiant /kernel: pid 2512 (realpath), uid 1000: exited on > > signal 11 > > > > I will drop in... because I'm experiencing the same thing. > > I was also getting this error (/jdk1.2/jre/bin/realpath doing a segfault). > I fixed it by changing the realpath program with a simple script but I > am still getting the "undefined symbol: __bzero" error. > > BTW, I do not have an LD_LIBRARY_PATH environment variable set. > > Alex. > Christopher T. Griffiths Senior Network/Systems Administrator Quansoo Group Inc. cgriffiths@quansoo.com Phone: (302) 777-4141 Fax: (302) 777-4142 Mobile: (302) 521-3436 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 20 9:14:26 1999 Delivered-To: freebsd-java@freebsd.org Received: from student.uci.agh.edu.pl (student.uci.agh.edu.pl [149.156.98.60]) by hub.freebsd.org (Postfix) with ESMTP id AB63314BF1 for ; Wed, 20 Oct 1999 09:14:15 -0700 (PDT) (envelope-from bizonl@student.uci.agh.edu.pl) Received: from localhost (bizonl@localhost) by student.uci.agh.edu.pl (8.8.7/8.8.5/ts-tmpl.970124+rchk1.22) with ESMTP id SAA06087; Wed, 20 Oct 1999 18:13:16 +0200 (MET DST) Date: Wed, 20 Oct 1999 18:13:15 +0200 (MET DST) From: Leszek Bizon To: "Christopher T. Griffiths" Cc: alex.boisvert@gel.usherb.CA, matusita@ics.es.osaka-u.ac.jp, java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 20 Oct 1999, Christopher T. Griffiths wrote: > Yes unfortunatly I am still getting the same errors. I even cvsup while compiling or running? > yesterday and did a buildworld just in case. > > Still getting the core dump as well as the undefined symbol. > > Chris > > On Wed, 20 Oct 1999, Alex Boisvert wrote: > > > On Tue, 19 Oct 1999, Christopher T. Griffiths wrote: > > > > > I have setup jdk1.2 in my /opt directory and I have run the patch with the > > > /compat/linux for /usr/bin/expr > > > > > > I also added the following to ld.so.conf in /compat/linux/etc/ > > > > > > /opt/jdk1.2/jre/lib/i386 > > > /opt/jdk1.2/jre/lib/i386/green_threads > > > /opt/jdk1.2/jre/lib/i386/classic > > > > > > > > > I am now getting the following error with a core dump: > > > > > > Segmentation fault > > > /opt/jdk1.2/bin/i386/green_threads/java: error in loading shared libraries > > > /opt/jdk1.2/jre/lib/i386/classic/libjvm.so: undefined symbol: __bzero > > > > > > Oct 19 12:01:43 defiant /kernel: pid 2512 (realpath), uid 1000: exited on > > > signal 11 > > > > > > > I will drop in... because I'm experiencing the same thing. > > > > I was also getting this error (/jdk1.2/jre/bin/realpath doing a segfault). > > I fixed it by changing the realpath program with a simple script but I > > am still getting the "undefined symbol: __bzero" error. > > > > BTW, I do not have an LD_LIBRARY_PATH environment variable set. > > > > Alex. > > > > Christopher T. Griffiths > Senior Network/Systems Administrator > Quansoo Group Inc. > cgriffiths@quansoo.com > Phone: (302) 777-4141 > Fax: (302) 777-4142 > Mobile: (302) 521-3436 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > I had got the same problem. I 've installed jdk 1.1.7 - and its now ok ! Greetz! L. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 20 9:20:56 1999 Delivered-To: freebsd-java@freebsd.org Received: from defiant.quansoo.com (defiant.quansoo.com [63.66.225.90]) by hub.freebsd.org (Postfix) with ESMTP id 01FE814A00 for ; Wed, 20 Oct 1999 09:20:52 -0700 (PDT) (envelope-from cgriffiths@quansoo.com) Received: from localhost (cgriffiths@localhost) by defiant.quansoo.com (8.9.3/8.9.3) with ESMTP id LAA02212; Wed, 20 Oct 1999 11:19:34 -0400 (EDT) (envelope-from cgriffiths@quansoo.com) X-Authentication-Warning: defiant.quansoo.com: cgriffiths owned process doing -bs Date: Wed, 20 Oct 1999 11:19:34 -0400 (EDT) From: "Christopher T. Griffiths" To: Leszek Bizon Cc: alex.boisvert@gel.usherb.CA, matusita@ics.es.osaka-u.ac.jp, java@FreeBSD.ORG Subject: Re: Linux JDK1.2 port In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Yes I have used 1.1.7 for linux as well as the native release for FBSD. Unfortunatly I need to do some work that requires JDK1.2. Since we are still a few weeks away from a native version of this port (IE: from the update on http://www.freebsd.org/java) I would like to get the blackdown port working for the time being. Thanks Chris On Wed, 20 Oct 1999, Leszek Bizon wrote: > > I had got the same problem. > I 've installed jdk 1.1.7 - and its now ok ! > > Greetz! > L. > Christopher T. Griffiths Senior Network/Systems Administrator Quansoo Group Inc. cgriffiths@quansoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 20 16:55:58 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 7E47E14DD4 for ; Wed, 20 Oct 1999 16:55:52 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id RAA09341 for ; Wed, 20 Oct 1999 17:55:51 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id RAA26976; Wed, 20 Oct 1999 17:55:50 -0600 Date: Wed, 20 Oct 1999 17:55:50 -0600 Message-Id: <199910202355.RAA26976@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: freebsd-java@FreeBSD.org Subject: Interesting JIT X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Unfortunately, it's only for UltraSparc's at this point, but others may find this interesting.... LaTTe : A Fast and Efficient Java VM Just-in-Time Compiler http://latte.snu.ac.kr/ Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Oct 23 12:50:40 1999 Delivered-To: freebsd-java@freebsd.org Received: from moe.nycrc.net (gabriel.nycrc.net [209.73.202.66]) by hub.freebsd.org (Postfix) with SMTP id 0335714A07 for ; Sat, 23 Oct 1999 12:50:34 -0700 (PDT) (envelope-from vince@nycrc.net) Received: (qmail 1421 invoked by uid 1001); 23 Oct 1999 19:50:32 -0000 Date: Sat, 23 Oct 1999 15:50:32 -0400 From: Vince Gonzalez To: freebsd-java@freebsd.org Subject: Illegal instruction Message-ID: <19991023155032.A1350@moe.nycrc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm not sure if this is a bug or not, but it sure looks like one. I wrote some code like this: public class MyPanel extends JPanel { public Component add(Component c) { doSomeStuff(); return add(c); // This is incorrect on purpose } } I know the line I've commented is incorrect (it should say super.add(c)). When this code is run, java_X bombs out with SIGILL and dumps core. I'm thinking that it should instead die with StackOverflowError. I can reproduce this very easily, with code very much like the above. {13}{vince@moe}$ java -version java_X version "1.1.8" {14}{vince@moe}$ uname -a FreeBSD moe.nycrc.net 3.3-RELEASE FreeBSD 3.3-RELEASE #1: Tue Oct 5 19:16:55 EDT 1999 root@moe.nycrc.net:/usr/src/sys/compile/MOE i386 Of course the answer might just be 'So don't do that.'. But I thought I'd post anyway. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Oct 23 13: 7:10 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id EDF4114C40 for ; Sat, 23 Oct 1999 13:07:08 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id OAA15283; Sat, 23 Oct 1999 14:07:08 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id OAA09075; Sat, 23 Oct 1999 14:07:06 -0600 Date: Sat, 23 Oct 1999 14:07:06 -0600 Message-Id: <199910232007.OAA09075@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Vince Gonzalez Cc: freebsd-java@FreeBSD.ORG Subject: Re: Illegal instruction In-Reply-To: <19991023155032.A1350@moe.nycrc.net> References: <19991023155032.A1350@moe.nycrc.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I wrote some code like this: > > public class MyPanel extends JPanel { > public Component add(Component c) { > doSomeStuff(); > return add(c); // This is incorrect on purpose > } > } > > I know the line I've commented is incorrect (it should say super.add(c)). > When this code is run, java_X bombs out with SIGILL and dumps core. Hmm, it shouldn't SIGILL, but is should recognize this. Can you produce a very small application that does this? > {13}{vince@moe}$ java -version > java_X version "1.1.8" How about java -fullversion? Thanks! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Oct 23 13:34:43 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 48AA614E40 for ; Sat, 23 Oct 1999 13:34:38 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id OAA15465; Sat, 23 Oct 1999 14:34:38 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id OAA09116; Sat, 23 Oct 1999 14:34:37 -0600 Date: Sat, 23 Oct 1999 14:34:37 -0600 Message-Id: <199910232034.OAA09116@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Vince Gonzalez Cc: freebsd-java@FreeBSD.ORG Subject: Re: Illegal instruction In-Reply-To: <19991023155032.A1350@moe.nycrc.net> References: <19991023155032.A1350@moe.nycrc.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I wrote some code like this: > > public class MyPanel extends JPanel { > public Component add(Component c) { > doSomeStuff(); > return add(c); // This is incorrect on purpose > } > } > > I know the line I've commented is incorrect (it should say super.add(c)). > When this code is run, java_X bombs out with SIGILL and dumps core. I'm > thinking that it should instead die with StackOverflowError. I can reproduce > this very easily, with code very much like the above. I attemped to reproduce this with the following trivial example, and Java behaves as expected with the StackOverflowError. public class Extended extends Base { public static void main(String args[]) { new Extended().foo(new Object()); } public Object foo(Object a) { return foo(a); } } public class Base { public Object foo(Object a) { return foo(a); } } % java -fullversion java_X full version "jdk1.1.8-FreeBSD:1999/9/22" % uname -a FreeBSD moth.mt.sri.com 2.2.8-STABLE FreeBSD 2.2.8-STABLE #4: Tue Jan 26 16:02:55 MST 1999 nate@moth.mt.sri.com:/opt/src/sys/compile/MOTH i386 % [ Note, it's possible that this bug was fixed in the most recent JDK release, hence my earlier question about java -fullversion.... ] Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Oct 23 14:59:38 1999 Delivered-To: freebsd-java@freebsd.org Received: from moe.nycrc.net (gabriel.nycrc.net [209.73.202.66]) by hub.freebsd.org (Postfix) with SMTP id 20E9914E61 for ; Sat, 23 Oct 1999 14:59:36 -0700 (PDT) (envelope-from vince@nycrc.net) Received: (qmail 2537 invoked by uid 1001); 23 Oct 1999 21:59:34 -0000 Date: Sat, 23 Oct 1999 17:59:34 -0400 From: Vince Gonzalez To: Nate Williams Cc: freebsd-java@FreeBSD.ORG Subject: Re: Illegal instruction Message-ID: <19991023175934.A2331@moe.nycrc.net> References: <19991023155032.A1350@moe.nycrc.net> <199910232034.OAA09116@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199910232034.OAA09116@mt.sri.com>; from Nate Williams on Sat, Oct 23, 1999 at 02:34:37PM -0600 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Oct 23, 1999 at 02:34:37PM -0600, Nate Williams wrote: > I attemped to reproduce this with the following trivial example, and > Java behaves as expected with the StackOverflowError. Hmmm, I notice the same thing when I try to run similar code in isolation. I'll break the offending code out of my application and try to get it to break. Failing that, I'll see about sending the actual code (my bosses may not like that). --vince To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message