atom feed5 messages in org.freebsd.freebsd-emulationproblems with linux and java
FromSent OnAttachments
Robert HuffJun 9, 2004 1:19 am 
Bill VermillionJun 9, 2004 3:25 am 
Dan StrickJun 9, 2004 5:44 pm 
John E HeinJun 9, 2004 6:28 pm 
Sergey PoziturinJun 10, 2004 5:26 pm 
Subject:problems with linux and java
From:Bill Vermillion (bv@wjv.com)
Date:Jun 9, 2004 3:25:13 am
List:org.freebsd.freebsd-emulation

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 ro@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 ro@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. ro@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