From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 9 03:25:34 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1548816A4CE for ; Wed, 9 Jun 2004 03:25:34 +0000 (GMT) Received: from wjv.com (user38.net339.fl.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48A8343D64 for ; Wed, 9 Jun 2004 03:25:33 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.12.11) with ESMTP id i593POGR058288; Tue, 8 Jun 2004 23:25:24 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.12.11/Submit) id i593PNFE058287; Tue, 8 Jun 2004 23:25:23 -0400 (EDT) (envelope-from bv) Date: Tue, 8 Jun 2004 23:25:23 -0400 From: Bill Vermillion To: Robert Huff Message-ID: <20040609032523.GB58166@wjv.com> References: <16582.26002.427722.236615@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16582.26002.427722.236615@jerusalem.litteratus.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on bilver.wjv.com cc: emulation@freebsd.org Subject: Re: problems with linux and java X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 03:25:34 -0000 It's Tue, Jun 08, 2004 at 21:19 . I'm in a small dim room with doors labeled "Dungeon" and "Forbidden". There is noise, the door marked Dungeon flies open and Robert Huff SHOUTS: > > I am working with linux-sun-jdk14 under -Current, trying to > bootstrap to the native jdk. However, running java from > linux-sun-jdk14 produces: > > huff@jerusalem> javavm > # > # 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.2_04-b05 mixed mode) > # > # Error ID: 4F533F4C494E55583F491418160E435050030B > # > > Heap at VM Abort: > Heap > > ... and the process hangs, consuming CPU until killed. > I have been told (possibly by Greg Lewis, though I cannot find > the e-mail) this is a linux emulation issue. > I have PROCFS and PSEUDOFS in the kernel, linux.ko and > linprocfs.ko loaded, and linprocfs mounted. Linux_base is 7.1_7. > I am having similar problems on 4.10. When I posted to the Java list they suggested I post to emulation. When I had the problem the first time I totally cleaned /usr/src and/usr/obj and rebuilt. I get 'bad system call' This is what I'm running now. FreeBSD bilver.wjv.com 4.10-STABLE FreeBSD 4.10-STABLE #0: Fri Jun 4 08:59:30 EDT 2004 root@bilver.wjv.com:/usr/obj/usr/src/sys/BILVER i386 Here is what I get. I had run make before and it errorer out, so I just ran script and ran it again to capture the error at the end. I also have a complete 8000 line output, but that part is not the problem, but anyone is welcome to look at it. Script started on Fri Jun 4 18:47:53 2004 root@bilver.wjv.com# make ===> jdk-1.4.2p6_4 depends on executable: gm4 - found ===> jdk-1.4.2p6_4 depends on executable: zip - found ===> jdk-1.4.2p6_4 depends on file: /usr/X11R6/lib/libXm.so - found ===> jdk-1.4.2p6_4 depends on file: /usr/local/include/nspr/prtypes.h - found ===> jdk-1.4.2p6_4 depends on file: /usr/local/linux-sun-jdk1.4.2/bin/javac - not found ===> Verifying install for /usr/local/linux-sun-jdk1.4.2/bin/javac in /usr/ports/java/linux-sun-jdk14 ====================================================================== Warning: This JDK may be unstable. You are advised to use the native FreeBSD JDK, in ports/java/jdk14. This Java VM will attempt to obtain some system information by accessing files in linux's procfs. You must install the Linux emulation procfs filesystem for this to work correctly. The JVM will exhibit various problems otherwise. This can be accomplished by adding the following line to your /etc/fstab file: linprocfs /compat/linux/proc linprocfs rw 0 0 and then, as root, executing the commands: kldload linprocfs mount /compat/linux/proc ====================================================================== ===> Extracting for linux-sun-jdk-1.4.2.04 >> Checksum OK for j2sdk-1_4_2_04-linux-i586.bin. ===> linux-sun-jdk-1.4.2.04 depends on file: /compat/linux/lib/libc.so.6 - found Bad system call (core dumped) *** Error code 140 Stop in /usr/ports/java/linux-sun-jdk14. *** Error code 1 Stop in /usr/ports/java/jdk14. root@bilver.wjv.com# exit Script done on Fri Jun 4 18:48:03 2004 I'm rebuiling one of my machines back to a 4.9-RELEASE to see if it occurs there. That will be slow as it is an old PPro 180Mhz, and this is a 2.4GHz P4. Bill -- Bill Vermillion - bv @ wjv . com