Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Mar 2006 21:39:33 +0100
From:      Anatoli Klassen <anatoli@aksoft.net>
To:        Greg Lewis <glewis@eyesbeyond.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: java in jail on FreeBSD 6.1
Message-ID:  <4408A985.1010903@aksoft.net>
In-Reply-To: <20060303174856.GA80864@misty.eyesbeyond.com>
References:  <53108.217.79.183.193.1141389890.squirrel@control.26th.net> <20060303174856.GA80864@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4408A985.1010903>