From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 06:25:01 2007 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86DF216A400 for ; Fri, 9 Mar 2007 06:25:01 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from vscan03.westnet.com.au (vscan03.westnet.com.au [203.10.1.142]) by mx1.freebsd.org (Postfix) with ESMTP id E658F13C481 for ; Fri, 9 Mar 2007 06:25:00 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id F3E46B606E2; Fri, 9 Mar 2007 15:24:58 +0900 (WST) Received: from vscan03.westnet.com.au ([127.0.0.1]) by localhost (vscan03.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17755-06-2; Fri, 9 Mar 2007 15:24:58 +0900 (WST) Received: from [192.168.0.2] (dsl-220-235-90-38.vic.westnet.com.au [220.235.90.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vscan03.westnet.com.au (Postfix) with ESMTP id 612E3B601DF; Fri, 9 Mar 2007 15:24:58 +0900 (WST) Message-ID: <45F0FDB9.1010007@melbpc.org.au> Date: Fri, 09 Mar 2007 17:24:57 +1100 From: Peter Kostouros Organization: Melbourne PC User Group User-Agent: Thunderbird 1.5.0.9 (X11/20070101) MIME-Version: 1.0 To: Jung-uk Kim References: <45C46416.3020406@melbpc.org.au> <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> <200703061137.04993.jkim@FreeBSD.org> <200703061807.05744.jkim@FreeBSD.org> In-Reply-To: <200703061807.05744.jkim@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Leidinger , freebsd-emulation@FreeBSD.org Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kpeter@melbpc.org.au List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 06:25:01 -0000 Jung-uk Kim wrote: > On Tuesday 06 March 2007 11:37 am, Jung-uk Kim wrote: > >> On Tuesday 06 March 2007 08:06 am, Alexander Leidinger wrote: >> >>> Quoting Peter Kostouros (from Sat, 03 Feb >>> 2007 >>> >>> 21:29:42 +1100): >>> >>>> Hi >>>> >>>> On my system (CURRENT as of 03FEB2007) linux-sun-jdk1.5.0 and >>>> linux-sun-jdk1.6.0 applications do not run under linux 2.6.16 >>>> emulation whereas they do under linux 2.4.2 emulation. >>>> >>> Could you please update to a recent current and check if this >>> problem is still there or not? >>> >> As far as I know, they don't work, i.e., they crash with internal >> error. Both require sched_getaffinity (and maybe more) and that is >> not implemented. I believe JDK breakage is serious blocker for the >> 2.6.16. Since we cannot support the syscall directly (i.e., we >> don't have user process affinity), we may have to fake it. >> > > FYI, it's fixed in perforce. > > Jung-uk Kim > > Hi I applied linuxolator-p4.diff to CURRENT (as of about 24 hours ago). Unfortunately the patch did not apply cleanly, so the rejected files were replaced by appropriate p4 files. Unfortunately I still had the same problem that I originally reported. Over this code base, I copied what I thought were the relevant files from p4 that provided support for (linux_)sched_getaffinity as mentined by jkim. I had positive results with this setup! However, I also have some odd observations: 1. Compiling using javac ends in a signal 9 even though it looks like the program successfully completed compilation. 2. Running sample applications, e.g., demo/jfc/SwingSet2/SwingSet2.jar, results in an empty pane, where it was expected to be populated with controls (not sure if this is a toolkit problem); applications also core dump. 3. Running ftpserver (java application) displays a GUI window but terminates abruptly when the server is started (syscall epoll_create not implemented). Everything seems to run OK with compat.linux.osrelease to 2.4.2. Note that due to the nature of the build, it could be that some files are not correctly synchronised, so I will wait for the next patch set. Let me know if you would like further information or want me to try anything else. -- Regards Peter As always the organisation disavows knowledge of this email