From owner-freebsd-java@FreeBSD.ORG Fri Mar 3 20:39:39 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 8F1AE16A420 for ; Fri, 3 Mar 2006 20:39:39 +0000 (GMT) (envelope-from anatoli@aksoft.net) Received: from 26th.net (26th.net [217.79.183.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC00943D5E for ; Fri, 3 Mar 2006 20:39:35 +0000 (GMT) (envelope-from anatoli@aksoft.net) Received: from [192.168.0.26] (t54fc451a.pool.terralink.de [84.252.69.26]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by 26th.net (Postfix) with ESMTP id 311CF20B418; Fri, 3 Mar 2006 21:39:34 +0100 (CET) Message-ID: <4408A985.1010903@aksoft.net> Date: Fri, 03 Mar 2006 21:39:33 +0100 From: Anatoli Klassen User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Greg Lewis References: <53108.217.79.183.193.1141389890.squirrel@control.26th.net> <20060303174856.GA80864@misty.eyesbeyond.com> In-Reply-To: <20060303174856.GA80864@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: java in jail on FreeBSD 6.1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 20:39:39 -0000 Greg Lewis wrote: > On Fri, Mar 03, 2006 at 01:44:50PM +0100, Anatoli Klassen wrote: >> I cann't start jdk-1.5.0p2_6 in jail on FreeBSD 6.1-PRERELEASE: >> >> # java -version >> Error: could not find libjava.so >> Error: could not find Java 2 Runtime Environment. >> >> but the same package works fine without jail. And it worked in jail on 5.4. >> >> Does somebody know what going wrong? > > Use ktrace and see if its looking in the right place for libjava.so. > As I can see it even doesn't open the file, it just tries to get a current process file (/proc/curproc/file). The traces for jailed and non-jailed calls are here (taken on two weeks old CURRENT, but 6.1 has the same problem): http://www.26th.net/public/transfer/java-trace.tar.bz2 If I do same think by hand I see the difference: Inside jail: $ ls -l /proc/curproc/file lr--r--r-- 1 user users 0 Mar 3 21:26 /proc/curproc/file -> unknown Outside jail: $ ls -l /proc/curproc/file lr--r--r-- 1 user users 0 Mar 3 21:27 /proc/curproc/file -> /bin/ls Looks like kernel bug. Can somebody confirm the issue? Regards, Anatoli