From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 20:34:57 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 6824C16A417 for ; Sun, 17 Sep 2006 20:34:57 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip249.ish.de [80.69.98.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D7A043D7D for ; Sun, 17 Sep 2006 20:34:52 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 67170987 for emulation@freebsd.org; Sun, 17 Sep 2006 22:34:51 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8HKYcOZ002252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 17 Sep 2006 22:34:44 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450DB15E.1090406@SYSTEM.PL> Date: Sun, 17 Sep 2006 22:34:38 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: linux jdk 1.4.2_12 may fail with Linux procfs mounted X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2006 20:34:57 -0000 I have just installed Linux JDK 1.4.2_12 to check for various incompatibities (http://people.freebsd.org/~tjr/linux32.html) I noticed that according to comment to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4881146: In the short term, developers using this product [Rational ClearCase] can easily develop their own interposer library that will cause readlink of /proc/self/exe to fail. The java launcher does not require /proc to be present and will fallback to another mechanism when /proc is not present (chroot environments for example). And running without /proc has been fixed according to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4881146. java without /proc just issues warning message: % /usr/local/linux-sun-jdk1.4.2/bin/java -jar /usr/local/linux-sun-jdk1.4.2/demo/jfc/Java2D/Java2Demo.jar Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location but when /compat/linux/proc is mounted fails reading some values from /proc/self/stat on my machine: % /usr/local/linux-sun-jdk1.4.2/bin/java -jar /usr/local/linux-sun-jdk1.4.2/demo/jfc/Java2D/Java2Demo.jar Fatal: Stack size too small. Use 'java -Xss' to increase default stack size. The fix should be relatively easy, probably implementing some more entries in the linprocfs_doprocstat() function. Just in case somebody hits this problem... -- << Marcin Cieslak // saper@system.pl >>