From owner-freebsd-emulation@FreeBSD.ORG Sat Jul 12 00:19:48 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8ED51065679 for ; Sat, 12 Jul 2008 00:19:48 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from hosted07.westnet.com.au (hosted07.westnet.com.au [203.10.1.223]) by mx1.freebsd.org (Postfix) with ESMTP id 1C9328FC1F for ; Sat, 12 Jul 2008 00:19:47 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from hosted07.westnet.com.au (hosted07.westnet.com.au [127.0.0.1]) by hosted07.westnet.com.au (Postfix) with SMTP id 0135633D980; Sat, 12 Jul 2008 08:19:46 +0800 (WST) Received: from baron.from.hell (dsl-220-235-227-141.vic.westnet.com.au [220.235.227.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hosted07.westnet.com.au (Postfix) with ESMTP id D5B1A33D5E9; Sat, 12 Jul 2008 08:19:43 +0800 (WST) Message-ID: <4877F898.9080905@melbpc.org.au> Date: Sat, 12 Jul 2008 00:19:36 +0000 From: Peter Kostouros Organization: Melbourne PC User Group User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Roman Divacky References: <4870260D.1080203@melbpc.org.au> <20080706094332.4de443b0@deskjail> <4871E04B.305@melbpc.org.au> <20080707111515.GA41171@freebsd.org> In-Reply-To: <20080707111515.GA41171@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Branch: TNG-Outgoing Cc: emulation@freebsd.org Subject: Re: Linux 2.6 emulation and Linux Java 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: Sat, 12 Jul 2008 00:19:48 -0000 Roman Divacky wrote: >> I used the normal kdump; unfortunately I could not install linux_kdump >> and did not persevere with it ("does not build with the default linux >> base, use the package instead" and I had a hiccup installing the >> package, too). I will look into dtrace over the weekend. >> > > try the linux_kdump... the dtrace might have problems on its own as it > is really new code... > > OK, I installed linux_kdump. >>>> 1860 java RET open 97/0x61 >>>> >>>> 1860 java CALL freebsd6_mmap(0x61, 0x2b639970, PROT_EXEC, MAP_FILE, >>>> 0xa5a5a5a5, ..., 0xa5a5a5a5, 0, ..., 0, 0xc, 0xdead0002, ... >>>> >>>> >>>> Note >>>> >>>> 1. These applications ran successfully with linux_base-fc4 and >>>> compat.linux.osrelease set to 2.4.2; >>>> 2. The success of running java applications also depends on >>>> debug.witness.watch: I get more mileage from java applications when this >>>> sysctl is 0. >>>> >>>> >>> Do you get witness warning/errors on the console? Please check and >>> report them if there are any. >>> > > a LOR could lead to a deadlock not a crash.... if you still have the ktrace.out > I believe you can put it on a web and we can run our own linux_kdump on it to > see what happened. can you make that available? > > ktrace.out is about 500MB. Anyways, one java process looks to be looping: RET linux_sys_futex -1 errno 110 Unknown error: 110 CALL linux_sys_futex(0x8092528,0x81,0x1,0xfffffffd,0x8092528,0x2affd250) RET linux_sys_futex 1 CALL linux_clock_gettime(0x1,0x2affd290) RET linux_clock_gettime 0 CALL gettimeofday(0x2affd2a8,0) RET gettimeofday 0 CALL linux_clock_gettime(0x1,0x2affd290) RET linux_clock_gettime 0 CALL linux_clock_gettime(0x1,0x2affd290) RET linux_clock_gettime 0 CALL gettimeofday(0x2affd240,0) RET gettimeofday 0 CALL linux_clock_gettime(0x1,0x2affd21c) RET linux_clock_gettime 0 CALL linux_sys_futex(0x80e0acc,0x80,0x1,0x2affd21c,0x1,0x2affd280) and another over sched_yield (although I am uncertain as I have not examined the entire dump). Let me know if you want anything from the trace.