From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 28 23:23:57 2007 Return-Path: X-Original-To: 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 BFB1716A401 for ; Sun, 28 Jan 2007 23:23:57 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.freebsd.org (Postfix) with ESMTP id 3DE3B13C494 for ; Sun, 28 Jan 2007 23:23:54 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([85.172.12.41]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id l0SNNWFH052920; Mon, 29 Jan 2007 02:23:43 +0300 (MSK) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HBJML-0000Gr-IT; Mon, 29 Jan 2007 02:22:53 +0300 To: Divacky Roman References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> From: Boris Samorodov Date: Mon, 29 Jan 2007 02:22:53 +0300 In-Reply-To: <20070122164926.GA8146@stud.fit.vutbr.cz> (Divacky Roman's message of "Mon, 22 Jan 2007 17:49:26 +0100") Message-ID: <24984594@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org, netchild@freebsd.org, current@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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, 28 Jan 2007 23:23:57 -0000 On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: > On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: > > today I committed the last fixes for the showstopper problems (panics) > > in the linux 2.6.16 emulation. I intend to switch the default version > > to 2.6.16 on i386 "soon" (see below), so please help testing it. > to be more precise.. we want testing on -current on i386... > any other report is useles. except for reports from p4 linuxulator > branch on 2.6/amd64.. Here are some test results (for 2.6.16 linux emulation) at: $ uname -a FreeBSD bsam.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jan 24 01:58:12 MSK 2007 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 ...and linux_base-fc6 (a port from my repository), other port dependencies are from FC4: 1. Just work (sometimes messages about an unimplemented syscall(s) do appear): - print/acroread7 - www/linux-opera - www/linux-firefox - www/linux-flashplugin7 - mail/linux-thunderbird - multimedia/linux-realplayer 2. Works but coredumps when exitting: - net/skype 3. Is not executed (some new... or old libraries are needed): - www/linux-mozilla. Sometimes (not stable result) I get the following LOR. This one I got while testing net/skype: ----- Jan 28 21:11:31 bsam kernel: lock order reversal: Jan 28 21:11:31 bsam kernel: 1st 0xc0bd58e0 emuldata lock (emuldata lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_emul.c:67 Jan 28 21:11:31 bsam kernel: 2nd 0xc0bd58a0 emuldata->shared lock (emuldata->shared lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c:1613 Jan 28 21:11:31 bsam kernel: KDB: stack backtrace: Jan 28 21:11:31 bsam kernel: db_trace_self_wrapper(c09442e5) at db_trace_self_wrapper+0x25 Jan 28 21:11:31 bsam kernel: kdb_backtrace(0,ffffffff,c0a525f8,c0a525d0,c09ed16c,...) at kdb_backtrace+0x29 Jan 28 21:11:31 bsam kernel: witness_checkorder(c0bd58a0,1,c0bd2671,64d) at witness_checkorder+0x586 Jan 28 21:11:31 bsam kernel: _sx_slock(c0bd58a0,c0bd2671,64d,0,c49366c0,...) at _sx_slock+0x4c Jan 28 21:11:31 bsam kernel: linux_exit_group(c49366c0,e69dfd00) at linux_exit_group+0x3f Jan 28 21:11:31 bsam kernel: syscall(e69dfd38) at syscall+0x256 Jan 28 21:11:31 bsam kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20 Jan 28 21:11:31 bsam kernel: --- syscall (5, Linux ELF, linux_open), eip = 0x2, esp = 0x246, ebp = 0x2825427c --- Jan 28 21:12:57 bsam kernel: pid 1733 (skype_bin), uid 1001: exited on signal 11 (core dumped) ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 00:05:10 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 44A3016A407 for ; Mon, 29 Jan 2007 00:05:10 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from ms-smtp-04.rdc-nyc.rr.com (ms-smtp-04.rdc-nyc.rr.com [24.29.109.8]) by mx1.freebsd.org (Postfix) with ESMTP id F2B7113C467 for ; Mon, 29 Jan 2007 00:05:09 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost (cpe-74-73-145-181.nyc.res.rr.com [74.73.145.181]) by ms-smtp-04.rdc-nyc.rr.com (8.13.4/8.13.4) with ESMTP id l0SNWUE2017701 for ; Sun, 28 Jan 2007 18:32:30 -0500 (EST) Date: Sun, 28 Jan 2007 18:32:30 -0500 From: Scott Robbins To: freebsd-emulation@freebsd.org Message-ID: <20070128233230.GA4347@mail.scottro.net> Mail-Followup-To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: linux 2.6.16 causes zombie processes with linux-opera 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: Mon, 29 Jan 2007 00:05:10 -0000 As near as I can determine, this only happens if I set the sysctl compat.linux.osrelease to 2.6.16. This is on a system running CURRENT (7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Jan 25 20:30:57 EST 2007) When I close linux opera, a zombied process remains. The parent PID is 1. Each time I open and then close opera, one and sometimes two, zombied processes remain. Therefore, if I've been browsing the web on and off for awhile, and do a pgrep opera, I might have a list of 20 or more PIDs, all zombies. Removing the compat.linux.osrelease=2.6.16 line in /etc/sysctl.conf fixes the problem. (I haven't had this issue with acrobat or any other linux based processes--hrm, on the other hand, I think the only ones I use are opera and acrobat. ) Thanks for any pointers. At present, I've simply commented out the line in /etc/sysctl.conf -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 00:49:33 2007 Return-Path: X-Original-To: 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 B748A16A401 for ; Mon, 29 Jan 2007 00:49:33 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9320D13C491 for ; Mon, 29 Jan 2007 00:49:33 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from [10.0.3.231] ([70.21.176.159]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JCL00G55U9ZYUY0@vms044.mailsrvcs.net> for emulation@freebsd.org; Sun, 28 Jan 2007 18:49:25 -0600 (CST) Date: Sun, 28 Jan 2007 19:48:57 -0500 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> To: Alexander Leidinger Message-id: <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> MIME-version: 1.0 X-Mailer: Evolution 2.8.2.1 FreeBSD GNOME Team Port Content-type: text/plain Content-transfer-encoding: 7bit References: <20070120170723.34c223fb@Magellan.Leidinger.net> <1169604069.1132.3.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124090227.GA71602@stud.fit.vutbr.cz> <1169642370.1132.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124143357.GA24993@stud.fit.vutbr.cz> <1169686662.33062.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> Cc: emulation@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 00:49:33 -0000 On Thu, 2007-01-25 at 08:25 +0100, Alexander Leidinger wrote: > Quoting "Alexandre \Sunny\ Kovalenko" > (from Wed, 24 Jan 2007 19:57:41 -0500): > > I can't test myself ATM, is there some text in dmesg / on the console > after doing the ping? Could you please run the LTP tests (described at > http://wiki.FreeBSD.org/linux-kernel) on your SMP system and compare > it with the results we have (http://wiki.FreeBSD.org/linux-kernel/ltp)? Is there any way to get to your raw LTP logs (as opposed to the pretty page)? At the moment, I have 130 failures in 2.4 mode and 138 failures in 2.6 mode. I can post logs and/or diffs someplace if they are of any interest. My system is current as 01/23/2007. I have also contracted panic while running 'growfiles' test in 2.4 mode, but I was not able to repeat that, and I was running some other stuff on the background, so it might not have been related to the linuxolator. If you'd like kernel dump from that, I can post it somewhere as well. I will go on to doing some emerges next -- I have built kernel with the WITNESS, so, hopefully, I will be able to nail down the hang which occured last time around. -- Alexandre "Sunny" Kovalenko From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 09:04:49 2007 Return-Path: X-Original-To: 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 B9F7016A401 for ; Mon, 29 Jan 2007 09:04:49 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 49ACC13C46B for ; Mon, 29 Jan 2007 09:04:48 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0T94l3E019007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Jan 2007 10:04:47 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0T94lnb019006; Mon, 29 Jan 2007 10:04:47 +0100 (CET) Date: Mon, 29 Jan 2007 10:04:47 +0100 From: Divacky Roman To: Alexandre Sunny Kovalenko Message-ID: <20070129090447.GA18900@stud.fit.vutbr.cz> References: <20070120170723.34c223fb@Magellan.Leidinger.net> <1169604069.1132.3.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124090227.GA71602@stud.fit.vutbr.cz> <1169642370.1132.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124143357.GA24993@stud.fit.vutbr.cz> <1169686662.33062.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: emulation@freebsd.org, Alexander Leidinger Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 09:04:49 -0000 On Sun, Jan 28, 2007 at 07:48:57PM -0500, Alexandre Sunny Kovalenko wrote: > On Thu, 2007-01-25 at 08:25 +0100, Alexander Leidinger wrote: > > Quoting "Alexandre \Sunny\ Kovalenko" > > (from Wed, 24 Jan 2007 19:57:41 -0500): > > > > > I can't test myself ATM, is there some text in dmesg / on the console > > after doing the ping? Could you please run the LTP tests (described at > > http://wiki.FreeBSD.org/linux-kernel) on your SMP system and compare > > it with the results we have (http://wiki.FreeBSD.org/linux-kernel/ltp)? > Is there any way to get to your raw LTP logs (as opposed to the pretty > page)? At the moment, I have 130 failures in 2.4 mode and 138 failures > in 2.6 mode. I can post logs and/or diffs someplace if they are of any > interest. My system is current as 01/23/2007. > > I have also contracted panic while running 'growfiles' test in 2.4 mode, > but I was not able to repeat that, and I was running some other stuff on > the background, so it might not have been related to the linuxolator. If > you'd like kernel dump from that, I can post it somewhere as well. I am definitely interested in the panic backtrace. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 09:10:08 2007 Return-Path: X-Original-To: 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 E7E1F16A403; Mon, 29 Jan 2007 09:10:07 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE8C13C494; Mon, 29 Jan 2007 09:10:07 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0T9A6ZD019786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Jan 2007 10:10:06 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0T9A6K3019785; Mon, 29 Jan 2007 10:10:06 +0100 (CET) Date: Mon, 29 Jan 2007 10:10:06 +0100 From: Divacky Roman To: Boris Samorodov Message-ID: <20070129091006.GA19174@stud.fit.vutbr.cz> References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24984594@bsam.ru> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: emulation@freebsd.org, netchild@freebsd.org, current@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 09:10:08 -0000 On Mon, Jan 29, 2007 at 02:22:53AM +0300, Boris Samorodov wrote: > On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: > > On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: > > > > today I committed the last fixes for the showstopper problems (panics) > > > in the linux 2.6.16 emulation. I intend to switch the default version > > > to 2.6.16 on i386 "soon" (see below), so please help testing it. > > > to be more precise.. we want testing on -current on i386... > > any other report is useles. except for reports from p4 linuxulator > > branch on 2.6/amd64.. > > Here are some test results (for 2.6.16 linux emulation) at: > $ uname -a > FreeBSD bsam.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jan 24 01:58:12 MSK 2007 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 > > ...and linux_base-fc6 (a port from my repository), other port > dependencies are from FC4: > > 1. Just work (sometimes messages about an unimplemented syscall(s) do > appear): > - print/acroread7 > - www/linux-opera > - www/linux-firefox > - www/linux-flashplugin7 > - mail/linux-thunderbird > - multimedia/linux-realplayer please post those messages about unimplemented syscalls, thnx > 2. Works but coredumps when exitting: > - net/skype cant reproduce that. I have proceses left when I "click on exit in skype" but I guess its normal as skype wants to be able to answer a phone call. > 3. Is not executed (some new... or old libraries are needed): > - www/linux-mozilla. but this doesnt relate to 2.6 emulation, right? > Sometimes (not stable result) I get the following LOR. This one I got > while testing net/skype: > ----- > Jan 28 21:11:31 bsam kernel: lock order reversal: > Jan 28 21:11:31 bsam kernel: 1st 0xc0bd58e0 emuldata lock (emuldata lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_emul.c:67 > Jan 28 21:11:31 bsam kernel: 2nd 0xc0bd58a0 emuldata->shared lock (emuldata->shared lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c:1613 > Jan 28 21:11:31 bsam kernel: KDB: stack backtrace: > Jan 28 21:11:31 bsam kernel: db_trace_self_wrapper(c09442e5) at db_trace_self_wrapper+0x25 > Jan 28 21:11:31 bsam kernel: kdb_backtrace(0,ffffffff,c0a525f8,c0a525d0,c09ed16c,...) at kdb_backtrace+0x29 > Jan 28 21:11:31 bsam kernel: witness_checkorder(c0bd58a0,1,c0bd2671,64d) at witness_checkorder+0x586 > Jan 28 21:11:31 bsam kernel: _sx_slock(c0bd58a0,c0bd2671,64d,0,c49366c0,...) at _sx_slock+0x4c > Jan 28 21:11:31 bsam kernel: linux_exit_group(c49366c0,e69dfd00) at linux_exit_group+0x3f > Jan 28 21:11:31 bsam kernel: syscall(e69dfd38) at syscall+0x256 > Jan 28 21:11:31 bsam kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20 > Jan 28 21:11:31 bsam kernel: --- syscall (5, Linux ELF, linux_open), eip = 0x2, esp = 0x246, ebp = 0x2825427c --- > Jan 28 21:12:57 bsam kernel: pid 1733 (skype_bin), uid 1001: exited on signal 11 (core dumped) I'll investigate that. thnx From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 10:32:21 2007 Return-Path: X-Original-To: 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 817E716A401 for ; Mon, 29 Jan 2007 10:32:21 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 0F38E13C441 for ; Mon, 29 Jan 2007 10:32:21 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5D5E9.dip.t-dialin.net [84.165.213.233]) by redbull.bpaserver.net (Postfix) with ESMTP id EB16C2E204; Mon, 29 Jan 2007 11:43:00 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id B68165B4873; Mon, 29 Jan 2007 11:32:12 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l0TAWCLu049435; Mon, 29 Jan 2007 11:32:12 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 29 Jan 2007 11:32:12 +0100 Message-ID: <20070129113212.n1gepp2tuss4488c@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 29 Jan 2007 11:32:12 +0100 From: Alexander Leidinger To: Divacky Roman References: <20070120170723.34c223fb@Magellan.Leidinger.net> <1169604069.1132.3.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124090227.GA71602@stud.fit.vutbr.cz> <1169642370.1132.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124143357.GA24993@stud.fit.vutbr.cz> <1169686662.33062.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070129090447.GA18900@stud.fit.vutbr.cz> In-Reply-To: <20070129090447.GA18900@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org, Alexandre Sunny Kovalenko Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 10:32:21 -0000 Quoting Divacky Roman (from Mon, 29 Jan =20 2007 10:04:47 +0100): > On Sun, Jan 28, 2007 at 07:48:57PM -0500, Alexandre Sunny Kovalenko wrote: >> On Thu, 2007-01-25 at 08:25 +0100, Alexander Leidinger wrote: >> > Quoting "Alexandre \Sunny\ Kovalenko" >> > (from Wed, 24 Jan 2007 19:57:41 -0500): >> > >> >> > I can't test myself ATM, is there some text in dmesg / on the console >> > after doing the ping? Could you please run the LTP tests (described at >> > http://wiki.FreeBSD.org/linux-kernel) on your SMP system and compare >> > it with the results we have (http://wiki.FreeBSD.org/linux-kernel/ltp)? >> Is there any way to get to your raw LTP logs (as opposed to the pretty >> page)? At the moment, I have 130 failures in 2.4 mode and 138 failures >> in 2.6 mode. I can post logs and/or diffs someplace if they are of any >> interest. My system is current as 01/23/2007. >> >> I have also contracted panic while running 'growfiles' test in 2.4 mode, >> but I was not able to repeat that, and I was running some other stuff on >> the background, so it might not have been related to the linuxolator. If >> you'd like kernel dump from that, I can post it somewhere as well. > > I am definitely interested in the panic backtrace. Probably the same as I did see. Alan didn't committed the fix so far =20 (AFAIK). Alexandre, it's some VM related panic, I assume. In GNATS =20 there should be a an open PR: From netchild@FreeBSD.org and maybe =20 assigned to alc@. Bye, Alexander. --=20 QOTD: =09"It's sort of a threat, you see. I've never been very good at =09them myself, but I'm told they can be very effective." http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 10:36:30 2007 Return-Path: X-Original-To: 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 15DE516A403 for ; Mon, 29 Jan 2007 10:36:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id BD91613C461 for ; Mon, 29 Jan 2007 10:36:29 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5D5E9.dip.t-dialin.net [84.165.213.233]) by redbull.bpaserver.net (Postfix) with ESMTP id D1F072E204; Mon, 29 Jan 2007 11:47:11 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 902C35B4873; Mon, 29 Jan 2007 11:36:23 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l0TAaNxG050199; Mon, 29 Jan 2007 11:36:23 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 29 Jan 2007 11:36:23 +0100 Message-ID: <20070129113623.ct7s0y9xno88k48k@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 29 Jan 2007 11:36:23 +0100 From: Alexander Leidinger To: "Alexandre \\\\Sunny\\\\ Kovalenko" References: <20070120170723.34c223fb@Magellan.Leidinger.net> <1169604069.1132.3.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124090227.GA71602@stud.fit.vutbr.cz> <1169642370.1132.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124143357.GA24993@stud.fit.vutbr.cz> <1169686662.33062.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> In-Reply-To: <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 10:36:30 -0000 Quoting "Alexandre \Sunny\ Kovalenko" (from Sun, 28 Jan 2007 19:48:57 -0500): > Is there any way to get to your raw LTP logs (as opposed to the pretty > page)? At the moment, I have 130 failures in 2.4 mode and 138 failures > in 2.6 mode. I can post logs and/or diffs someplace if they are of any > interest. My system is current as 01/23/2007. For the public: I did send the files from the results/ directory in private mails directly from the command line instead of using my MUA. Bye, Alexander. -- Leona, I want to CONFESS things to you ... I want to WRAP you in a SCARLET ROBE trimmed with POLYVINYL CHLORIDE ... I want to EMPTY your ASHTRAYS ... http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 11:08:26 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 98F8716A402 for ; Mon, 29 Jan 2007 11:08:26 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 87DE713C4A3 for ; Mon, 29 Jan 2007 11:08:26 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0TB8Qmi042016 for ; Mon, 29 Jan 2007 11:08:26 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0TB8PTl042012 for freebsd-emulation@FreeBSD.org; Mon, 29 Jan 2007 11:08:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Jan 2007 11:08:25 GMT Message-Id: <200701291108.l0TB8PTl042012@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 29 Jan 2007 11:08:26 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/77710 emulation [linux] Linux page fault sigcontext information is wro o kern/101453 emulation [linux] [patch] linprocfs disallows non-zero file offs o kern/102956 emulation [linux] [patch] Add partial support for SO_PEERCRED in 4 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] feature request: easier wine/w23 support o kern/55835 emulation [linux] [patch] Linux IPC emulation missing SETALL sys a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula 8 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 12:16:50 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 24E6716A403; Mon, 29 Jan 2007 12:16:50 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id B3B7C13C4B7; Mon, 29 Jan 2007 12:16:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.227] (helo=fw.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1HBVAs-000H1Y-Bs; Mon, 29 Jan 2007 13:59:58 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id l0TBxhL9029470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Jan 2007 13:59:43 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8) with ESMTP id l0TBxh0g073759; Mon, 29 Jan 2007 13:59:43 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8/Submit) id l0TBxgBA073758; Mon, 29 Jan 2007 13:59:42 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 29 Jan 2007 13:59:42 +0200 From: Kostik Belousov To: Jung-uk Kim Message-ID: <20070129115942.GA56152@deviant.kiev.zoral.com.ua> References: <200701261821.12274.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <200701261821.12274.jkim@FreeBSD.org> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=ALL_TRUSTED,SPF_NEUTRAL autolearn=failed version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on fw.zoral.com.ua X-Scanner-Signature: feb28a81ec0850514d099b7346a2573b X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 720 [Jan 28 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: load_fs() and load_gs() 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: Mon, 29 Jan 2007 12:16:50 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 26, 2007 at 06:21:09PM -0500, Jung-uk Kim wrote: > I have been chasing TLS problem for Linuxulator/amd64. The whole=20 > thing actually boils down to the following simulation: >=20 > ---------------- > #include > #include > #include > #include >=20 > static __thread u_int tls =3D 0xdeadbeef; >=20 > int > main(void) > { > #if defined(__amd64__) > u_int fs; > uint64_t fsbase; >=20 > fs =3D rfs(); > if (sysarch(AMD64_GET_FSBASE, &fsbase)) > return (-1); > printf("fsbase =3D 0x%lx, %%fs: 0x%08x, tls =3D 0x%x\n", > fsbase, fs, tls); >=20 > /* > * glibc does the following two calls. > * Note: Actually we don't do anything here > * but writing them back. > */ > if (sysarch(AMD64_SET_FSBASE, &fsbase)) > return (-1); > load_fs(fs); According to Intel docs, In 64-bit mode, memory accesses using FS-segment and GS-segment overrides are not checked for a runtime limit nor subjected to attribute-checking. Normal segment loads (MOV to Sreg and POP Sreg) into FS and GS load a standard 32-bit base value in the hidden portion of the segment descriptor register. The base address bits above the standard 32 bits are cleared to 0 to allow consistency for implementations that use less than 64 bits. So, by executing load_fs(fs), you effectively load some low (<=3D 2^32) val= ue into fs base (I suspect that it is just 0, since GUDATA_SEL has 0 as segment base, see gdt_segs in amd64/machdep.c). And then, mov %fs:0x0,%rax instruction just dereferences 0 instead of TLS. I suspect that Linux does not use that code sequence too, since behaviour on the segment register load in 64-bit mode is defined by CPU. >=20 > if (sysarch(AMD64_GET_FSBASE, &fsbase)) > return (-1); > printf("fsbase =3D 0x%lx, %%fs: 0x%08x, tls =3D 0x%x\n", > fsbase, rfs(), tls); > #elif defined(__i386__) > u_int gs; > uint32_t gsbase; >=20 > gs =3D rgs(); > if (sysarch(I386_GET_GSBASE, &gsbase)) > return (-1); > printf("gsbase =3D 0x%lx, %%gs: 0x%08x, tls =3D 0x%x\n", > gsbase, gs, tls); >=20 > /* > * glibc does the following two calls. > * Note: Actually we don't do anything here > * but writing them back. > */ > if (sysarch(I386_SET_GSBASE, &gsbase)) > return (-1); > load_gs(gs); Again, this load segment base hidden register from the segment descriptor in memory, that is 0. Access to tls would dereference NULL pointer. In 32-bit mode, the problem is that FreeBSD does not support segmentation (yet ?). >=20 > if (sysarch(I386_GET_GSBASE, &gsbase)) > return (-1); > printf("gsbase =3D 0x%lx, %%gs: 0x%08x, tls =3D 0x%x\n", > gsbase, rgs(), tls); > #endif >=20 > return (0); > } > ---------------- >=20 > If you run it on amd64 (both amd64 and i386 binaries), it segfaults=20 > at: >=20 > mov %fs:0x0,%rax (amd64) >=20 > or >=20 > mov %gs:0x0,%eax (i386) >=20 > which is basically reading tls. Why does it segfaults when we just=20 > read and write them back? Can anyone enlighten me? In normal situation, when segment registers are not reloaded, the IA32_FS_BASE and IA32_GS_BASE MSRs define the actual base used when fs: or gs: segment override is supplied (that is set by sysarch(XXX_SET_XSBASE) syscalls). In fact, it seems that kernel uses only gs: for per-cpu data, and completely ignores fs base. Due to this, IA32_FS_BASE is changed only on thread context switch. --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFveGtC3+MBN1Mb4gRApCgAKDXNPUkS5liGv8wCFiNCALKKbvvmACdEEDF Iei4lesQuXChJalTg+4M2RM= =2hyj -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy-- From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 12:38:44 2007 Return-Path: X-Original-To: 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 C865D16A402; Mon, 29 Jan 2007 12:38:44 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from ms-smtp-02.rdc-nyc.rr.com (ms-smtp-02.rdc-nyc.rr.com [24.29.109.6]) by mx1.freebsd.org (Postfix) with ESMTP id 880D813C474; Mon, 29 Jan 2007 12:38:44 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost (cpe-74-73-145-181.nyc.res.rr.com [74.73.145.181]) by ms-smtp-02.rdc-nyc.rr.com (8.13.6/8.13.6) with ESMTP id l0TBGffA006465; Mon, 29 Jan 2007 06:16:45 -0500 (EST) Date: Mon, 29 Jan 2007 06:16:40 -0500 From: Scott Robbins To: Divacky Roman Message-ID: <20070129111640.GA24427@mail.scottro.net> Mail-Followup-To: Divacky Roman , Boris Samorodov , emulation@freebsd.org, netchild@freebsd.org, current@freebsd.org References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> <20070129091006.GA19174@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070129091006.GA19174@stud.fit.vutbr.cz> User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: emulation@freebsd.org, netchild@freebsd.org, current@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 12:38:44 -0000 On Mon, Jan 29, 2007 at 10:10:06AM +0100, Divacky Roman wrote: > On Mon, Jan 29, 2007 at 02:22:53AM +0300, Boris Samorodov wrote: > > On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: > > > On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: > > > > > > today I committed the last fixes for the showstopper problems (panics) > > > > in the linux 2.6.16 emulation. I intend to switch the default version > > > > to 2.6.16 on i386 "soon" (see below), so please help testing it. > > > > > to be more precise.. we want testing on -current on i386... > > > any other report is useles. except for reports from p4 linuxulator > > > branch on 2.6/amd64.. I don't use too many Linux applications, however acroread worked without problem. My linux-opera seemed to work without problems, however, after awhile, I noticed that each time I closed it, it was leaving a zombied process, coming from parent PID 1. Therefore, (as I hadn't noticed this in the beginning) one day it seemed to be taking a long time to open--doing a pgrep opera showed about 20-25 zombied PIDS. When I started watching for it, I realized that every time I opened, then closed it, it would leave one and sometimes two zombied PIDs. (I sent a quick post about this to emulation, but I haven't seen it yet.) Changing the sysctl compat.linux.osrelease back to 2.4.2 fixed the problem. This is on a recently built CURRENT. uname -a FreeBSD mail.scottro.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Jan 25 20:30:57 EST 2007 scottro@mail.scottro.net:/usr/obj/usr/src/sys/S11 i386 -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Spike: Whatcha doin', love? Drusilla: I'm naming the stars. Spike: You can't see the stars, love. That's the ceiling. Also it's day. Drusilla: No, I can see them. But I've named them all the same name, and there's terrible confusion. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 14:29:35 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 B68E216A401 for ; Mon, 29 Jan 2007 14:29:35 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4EE2213C4A8 for ; Mon, 29 Jan 2007 14:29:35 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0TETXqk069183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 29 Jan 2007 15:29:33 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0TETXSa069182 for freebsd-emulation@freebsd.org; Mon, 29 Jan 2007 15:29:33 +0100 (CET) Date: Mon, 29 Jan 2007 15:29:33 +0100 From: Divacky Roman To: freebsd-emulation@freebsd.org Message-ID: <20070129142933.GA66869@stud.fit.vutbr.cz> References: <20070128233230.GA4347@mail.scottro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070128233230.GA4347@mail.scottro.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Subject: [PANIC]: a showstopper before switch to 2.6 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: Mon, 29 Jan 2007 14:29:35 -0000 On Sun, Jan 28, 2007 at 06:32:30PM -0500, Scott Robbins wrote: > As near as I can determine, this only happens if I set the sysctl > compat.linux.osrelease to 2.6.16. > > This is on a system running CURRENT > > (7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Jan 25 20:30:57 EST 2007) > > When I close linux opera, a zombied process remains. The parent PID is > 1. > > Each time I open and then close opera, one and sometimes two, zombied > processes remain. I have like 8 zombies or something... and some plugin thing is coredumping. the worse thing is that it lets me kldunload linux while those zombies are running and then it panics... this looks very bad. can someone confirm this behaviour: set 2.6 emulation (sysctl compat.linux.osrelease=2.6.16) run opera exit opera ps ax to see if there are zombies left (in my case they were descendant of tcsh - fbsd tcsh) kldunload linux PANIC :) I was running p4 src but I am sure plain -current is vulnerable too. This is a showstopper for the planned switch to default 2.6 emulation in -current. I plan to work on it "soon" (this thursday or weekend hopefully). I already solved all LORs I am aware of so I fully focus on this. I hope to get most of the fixes commited this week (thursday). scott thank you for the report roman From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 15:47:36 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 BF7D016A400 for ; Mon, 29 Jan 2007 15:47:36 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 7784413C471 for ; Mon, 29 Jan 2007 15:47:36 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5D5E9.dip.t-dialin.net [84.165.213.233]) by redbull.bpaserver.net (Postfix) with ESMTP id B01A92E1AD; Mon, 29 Jan 2007 16:58:20 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0E5A75B4873; Mon, 29 Jan 2007 16:47:19 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l0TFlIZh001878; Mon, 29 Jan 2007 16:47:18 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 29 Jan 2007 16:47:18 +0100 Message-ID: <20070129164718.blg11kvrkcckcssw@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 29 Jan 2007 16:47:18 +0100 From: Alexander Leidinger To: Divacky Roman References: <20070128233230.GA4347@mail.scottro.net> <20070129142933.GA66869@stud.fit.vutbr.cz> In-Reply-To: <20070129142933.GA66869@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: [PANIC]: a showstopper before switch to 2.6 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: Mon, 29 Jan 2007 15:47:36 -0000 Quoting Divacky Roman (from Mon, 29 Jan 2007 15:29:33 +0100): > the worse thing is that it lets me kldunload linux while those zombies > are running and then it panics... this looks very bad. can someone confirm > this behaviour: I can confirm that unloading the linux module panics the system if there's a linux process still around (I know about this since several months, remember my problems with realplayer when it didn't played a video). This should also be true for the 2.4.2 emulation. So the main question is: why are there still some zombies around... Bye, Alexander. -- Are you mentally here at Pizza Hut?? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 20:11:18 2007 Return-Path: X-Original-To: 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 6D9BA16A402 for ; Mon, 29 Jan 2007 20:11:18 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from ms-smtp-03.rdc-nyc.rr.com (ms-smtp-03.rdc-nyc.rr.com [24.29.109.7]) by mx1.freebsd.org (Postfix) with ESMTP id 31EF113C494 for ; Mon, 29 Jan 2007 20:11:18 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost (cpe-74-73-145-181.nyc.res.rr.com [74.73.145.181]) by ms-smtp-03.rdc-nyc.rr.com (8.13.6/8.13.6) with ESMTP id l0TKBCG5006989; Mon, 29 Jan 2007 15:11:16 -0500 (EST) Date: Mon, 29 Jan 2007 15:11:12 -0500 From: Scott Robbins To: Divacky Roman Message-ID: <20070129201112.GA27149@mail.scottro.net> Mail-Followup-To: Divacky Roman , emulation@freebsd.org References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> <20070129091006.GA19174@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070129091006.GA19174@stud.fit.vutbr.cz> User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: emulation@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 20:11:18 -0000 On Mon, Jan 29, 2007 at 10:10:06AM +0100, Divacky Roman wrote: > On Mon, Jan 29, 2007 at 02:22:53AM +0300, Boris Samorodov wrote: > > On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: > > > On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: > > Trying 2.6.16 emulation (via sysctl again) on a STABLE machine FreeBSD uws1.starlofashions.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon Jan 29 14:32:19 EST 2007 scottro@uws1.starlofashions.com:/usr/obj/usr/src/sys/UWS1 i386 In this case, acroread gave me an error on startup. /usr/X11R6/bin/acroread: fork: Invalid argument. I couldn't get linux-opera to start either. I get segmentation fault (core dumped). Again, changing sysctl back to 2.4.2 fixes the problem with both applications. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Spike: Whatcha doin', love? Drusilla: I'm naming the stars. Spike: You can't see the stars, love. That's the ceiling. Also it's day. Drusilla: No, I can see them. But I've named them all the same name, and there's terrible confusion. From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 20:23:41 2007 Return-Path: X-Original-To: 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 668ED16A403; Mon, 29 Jan 2007 20:23:41 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.freebsd.org (Postfix) with ESMTP id 962AB13C467; Mon, 29 Jan 2007 20:23:38 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([85.172.12.131]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id l0TKNIXG032747; Mon, 29 Jan 2007 23:23:28 +0300 (MSK) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HBd1P-0000DI-WA; Mon, 29 Jan 2007 23:22:35 +0300 To: Divacky Roman References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> <20070129091006.GA19174@stud.fit.vutbr.cz> From: Boris Samorodov Date: Mon, 29 Jan 2007 23:22:35 +0300 In-Reply-To: <20070129091006.GA19174@stud.fit.vutbr.cz> (Divacky Roman's message of "Mon, 29 Jan 2007 10:10:06 +0100") Message-ID: <91054724@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org, current@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 20:23:41 -0000 On Mon, 29 Jan 2007 10:10:06 +0100 Divacky Roman wrote: > On Mon, Jan 29, 2007 at 02:22:53AM +0300, Boris Samorodov wrote: > > On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: > > > On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: > > > > > > today I committed the last fixes for the showstopper problems (panics) > > > > in the linux 2.6.16 emulation. I intend to switch the default version > > > > to 2.6.16 on i386 "soon" (see below), so please help testing it. > > > > > to be more precise.. we want testing on -current on i386... > > > any other report is useles. except for reports from p4 linuxulator > > > branch on 2.6/amd64.. > > > > Here are some test results (for 2.6.16 linux emulation) at: > > $ uname -a > > FreeBSD bsam.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jan 24 01:58:12 MSK 2007 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 > > > > ...and linux_base-fc6 (a port from my repository), other port > > dependencies are from FC4: > > > > 1. Just work (sometimes messages about an unimplemented syscall(s) do > > appear): > > - print/acroread7 > > - www/linux-opera > > - www/linux-firefox > > - www/linux-flashplugin7 > > - mail/linux-thunderbird > > - multimedia/linux-realplayer > please post those messages about unimplemented syscalls, thnx So far I have this one: ----- Jan 29 17:49:18 bsam kernel: linux: pid 892 (pwd): syscall openat not implemented ----- > > 2. Works but coredumps when exitting: > > - net/skype > cant reproduce that. I have proceses left when I "click on exit in skype" but I guess > its normal as skype wants to be able to answer a phone call. There is no coredump with linux_base-fc4_9 -- I got it with linux_base-fc6. > > 3. Is not executed (some new... or old libraries are needed): > > - www/linux-mozilla. > but this doesnt relate to 2.6 emulation, right? Yes. And this port is OK with linux_base-fc4_9. > > Sometimes (not stable result) I get the following LOR. This one I got > > while testing net/skype: [LOR deletted] > I'll investigate that. thnx Just one LOR more (but the same bug?): ----- Jan 29 17:38:53 bsam kernel: lock order reversal: Jan 29 17:38:53 bsam kernel: 1st 0xc0bd58a0 emuldata->shared lock (emuldata->shared lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_emul.c:117 Jan 29 17:38:53 bsam kernel: 2nd 0xc0bd58e0 emuldata lock (emuldata lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_emul.c:67 Jan 29 17:38:53 bsam kernel: KDB: stack backtrace: Jan 29 17:38:53 bsam kernel: db_trace_self_wrapper(c09442e5) at db_trace_self_wrapper+0x25 Jan 29 17:38:53 bsam kernel: kdb_backtrace(0,ffffffff,c0a525d0,c0a525f8,c09ed16c,...) at kdb_backtrace+0x29 Jan 29 17:38:53 bsam kernel: witness_checkorder(c0bd58e0,9,c0bd2066,43) at witness_checkorder+0x586 Jan 29 17:38:53 bsam kernel: _sx_xlock(c0bd58e0,c0bd2066,43,c4597240,312,...) at _sx_xlock+0x50 Jan 29 17:38:53 bsam kernel: em_find(c472c900,1,c0bd58a0,c0bd2066,75,...) at em_find+0x51 Jan 29 17:38:53 bsam kernel: linux_proc_init(c45e8510,312,3d0f00,0,16,...) at linux_proc_init+0xbd Jan 29 17:38:53 bsam kernel: linux_clone(c45e8510,e6946d00) at linux_clone+0x8b Jan 29 17:38:53 bsam kernel: syscall(e6946d38) at syscall+0x256 Jan 29 17:38:53 bsam kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20 Jan 29 17:38:53 bsam kernel: --- syscall (758682804), eip = 0x2, esp = 0xe6946d74, ebp = 0xbfbfd304 --- ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 20:38:07 2007 Return-Path: X-Original-To: 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 1FF9B16A40E; Mon, 29 Jan 2007 20:38:07 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id AA8A413C478; Mon, 29 Jan 2007 20:38:06 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0TKc5Jf098640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Jan 2007 21:38:05 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0TKc5J9098639; Mon, 29 Jan 2007 21:38:05 +0100 (CET) Date: Mon, 29 Jan 2007 21:38:05 +0100 From: Divacky Roman To: Boris Samorodov Message-ID: <20070129203805.GA98405@stud.fit.vutbr.cz> References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> <20070129091006.GA19174@stud.fit.vutbr.cz> <91054724@bsam.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91054724@bsam.ru> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: emulation@freebsd.org, current@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 20:38:07 -0000 > So far I have this one: > ----- > Jan 29 17:49:18 bsam kernel: linux: pid 892 (pwd): syscall openat not implemented hm... sounds like I already have this implemented in p4. can you please check if my implementation in p4 is ok? the LTP test is obviously broken. thnx > > > 2. Works but coredumps when exitting: > > > - net/skype > > > cant reproduce that. I have proceses left when I "click on exit in skype" but I guess > > its normal as skype wants to be able to answer a phone call. > > There is no coredump with linux_base-fc4_9 -- I got it with > linux_base-fc6. hm... where can I get this stuff? :) and btw.. I am getting a coredump of the operaplugin* thing. > > > Sometimes (not stable result) I get the following LOR. This one I got > > > while testing net/skype: > [LOR deletted] > > I'll investigate that. thnx > > Just one LOR more (but the same bug?): > ----- > Jan 29 17:38:53 bsam kernel: lock order reversal: > Jan 29 17:38:53 bsam kernel: 1st 0xc0bd58a0 emuldata->shared lock (emuldata->shared lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_emul.c:117 > Jan 29 17:38:53 bsam kernel: 2nd 0xc0bd58e0 emuldata lock (emuldata lock) @ /usr/src/sys/modules/linux/../../compat/linux/linux_emul.c:67 > Jan 29 17:38:53 bsam kernel: KDB: stack backtrace: > Jan 29 17:38:53 bsam kernel: db_trace_self_wrapper(c09442e5) at db_trace_self_wrapper+0x25 > Jan 29 17:38:53 bsam kernel: kdb_backtrace(0,ffffffff,c0a525d0,c0a525f8,c09ed16c,...) at kdb_backtrace+0x29 > Jan 29 17:38:53 bsam kernel: witness_checkorder(c0bd58e0,9,c0bd2066,43) at witness_checkorder+0x586 > Jan 29 17:38:53 bsam kernel: _sx_xlock(c0bd58e0,c0bd2066,43,c4597240,312,...) at _sx_xlock+0x50 > Jan 29 17:38:53 bsam kernel: em_find(c472c900,1,c0bd58a0,c0bd2066,75,...) at em_find+0x51 > Jan 29 17:38:53 bsam kernel: linux_proc_init(c45e8510,312,3d0f00,0,16,...) at linux_proc_init+0xbd > Jan 29 17:38:53 bsam kernel: linux_clone(c45e8510,e6946d00) at linux_clone+0x8b > Jan 29 17:38:53 bsam kernel: syscall(e6946d38) at syscall+0x256 > Jan 29 17:38:53 bsam kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20 > Jan 29 17:38:53 bsam kernel: --- syscall (758682804), eip = 0x2, esp = 0xe6946d74, ebp = 0xbfbfd304 --- hm.. lemme work on this :) (I'll post you a patch in a few minutes) thnx! From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 29 20:49:25 2007 Return-Path: X-Original-To: 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 7B3D716A404 for ; Mon, 29 Jan 2007 20:49:25 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.freebsd.org (Postfix) with ESMTP id D876313C4A7 for ; Mon, 29 Jan 2007 20:49:24 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([85.172.12.131]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id l0TKn5oN035948 for ; Mon, 29 Jan 2007 23:49:15 +0300 (MSK) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HBdQN-0000E1-P7 for emulation@freebsd.org; Mon, 29 Jan 2007 23:48:23 +0300 To: emulation@freebsd.org References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> <20070129091006.GA19174@stud.fit.vutbr.cz> <20070129201112.GA27149@mail.scottro.net> From: Boris Samorodov Date: Mon, 29 Jan 2007 23:48:23 +0300 In-Reply-To: <20070129201112.GA27149@mail.scottro.net> (Scott Robbins's message of "Mon, 29 Jan 2007 15:11:12 -0500") Message-ID: <24973176@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Mon, 29 Jan 2007 20:49:25 -0000 On Mon, 29 Jan 2007 15:11:12 -0500 Scott Robbins wrote: > Trying 2.6.16 emulation (via sysctl again) on a STABLE machine Don't. It's only for tests at -CURRENT. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 30 01:50:59 2007 Return-Path: X-Original-To: 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 3A77116A400 for ; Tue, 30 Jan 2007 01:50:59 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.freebsd.org (Postfix) with ESMTP id 18E0E13C467 for ; Tue, 30 Jan 2007 01:50:59 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from [10.0.3.231] ([70.21.176.159]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JCN00GTKRSHP5D0@vms042.mailsrvcs.net> for emulation@freebsd.org; Mon, 29 Jan 2007 19:50:43 -0600 (CST) Date: Mon, 29 Jan 2007 20:50:33 -0500 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <20070129090447.GA18900@stud.fit.vutbr.cz> To: Divacky Roman Message-id: <1170121834.860.4.camel@RabbitsDen.RabbitsLawn.verizon.net> MIME-version: 1.0 X-Mailer: Evolution 2.8.2.1 FreeBSD GNOME Team Port Content-type: text/plain Content-transfer-encoding: 7bit References: <20070120170723.34c223fb@Magellan.Leidinger.net> <1169604069.1132.3.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124090227.GA71602@stud.fit.vutbr.cz> <1169642370.1132.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124143357.GA24993@stud.fit.vutbr.cz> <1169686662.33062.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070129090447.GA18900@stud.fit.vutbr.cz> Cc: emulation@freebsd.org, Alexander Leidinger Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Tue, 30 Jan 2007 01:50:59 -0000 On Mon, 2007-01-29 at 10:04 +0100, Divacky Roman wrote: > On Sun, Jan 28, 2007 at 07:48:57PM -0500, Alexandre Sunny Kovalenko wrote: > > On Thu, 2007-01-25 at 08:25 +0100, Alexander Leidinger wrote: > > > Quoting "Alexandre \Sunny\ Kovalenko" > > > (from Wed, 24 Jan 2007 19:57:41 -0500): > > > > > > > > I can't test myself ATM, is there some text in dmesg / on the console > > > after doing the ping? Could you please run the LTP tests (described at > > > http://wiki.FreeBSD.org/linux-kernel) on your SMP system and compare > > > it with the results we have (http://wiki.FreeBSD.org/linux-kernel/ltp)? > > Is there any way to get to your raw LTP logs (as opposed to the pretty > > page)? At the moment, I have 130 failures in 2.4 mode and 138 failures > > in 2.6 mode. I can post logs and/or diffs someplace if they are of any > > interest. My system is current as 01/23/2007. > > > > I have also contracted panic while running 'growfiles' test in 2.4 mode, > > but I was not able to repeat that, and I was running some other stuff on > > the background, so it might not have been related to the linuxolator. If > > you'd like kernel dump from that, I can post it somewhere as well. > > I am definitely interested in the panic backtrace. Alexander is right -- looks like VM related thing: Unread portion of the kernel message buffer: Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex vm object (standard object) r = 0 (0xc71e4000) locked @ /usr/src/sys/kern/vfs_bio.c:3427 KDB: stack backtrace: db_trace_self_wrapper(c068d13f) at db_trace_self_wrapper+0x25 kdb_backtrace(1,c4e136c0,c,e38a5a8c,e38a5a80,...) at kdb_backtrace+0x29 witness_warn(5,0,c06adc74) at witness_warn+0x192 trap(e38a5a8c) at trap+0x10f calltrap() at calltrap+0x6 --- trap 0xd8d65070, eip = 0, esp = 0x10202, ebp = 0x1d1c000 --- Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x42 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0530fad stack pointer = 0x28:0xe38a5acc frame pointer = 0x28:0xe38a5ae4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 34 (bufdaemon) I have switched to 2.6 mode and started emerge --sync, got two LORs and a panic afterwards. I was running X (silly me), so no backtrace this time: Jan 28 19:53:36 RabbitsDen kernel: lock order reversal: Jan 28 19:53:36 RabbitsDen kernel: 1st 0xc52918a0 emuldata->shared lock (emuldata->shared lock) @ /usr/src/sys/modules/li nux/../../compat/linux/linux_emul.c:117 Jan 28 19:53:36 RabbitsDen kernel: 2nd 0xc52918e0 emuldata lock (emuldata lock) @ /usr/src/sys/modules/linux/../../compat /linux/linux_emul.c:67 Jan 28 19:53:36 RabbitsDen kernel: KDB: stack backtrace: Jan 28 19:53:36 RabbitsDen kernel: db_trace_self_wrapper(c068d13f) at db_trace_self_wrapper+0x25 Jan 28 19:53:36 RabbitsDen kernel: kdb_backtrace(0,ffffffff,c070f1a0,c070f1c8,c06ca0ec,...) at kdb_backtrace+0x29 Jan 28 19:53:36 RabbitsDen kernel: witness_checkorder(c52918e0,9,c528e066,43) at witness_checkorder+0x586 Jan 28 19:53:36 RabbitsDen kernel: _sx_xlock(c52918e0,c528e066,43,c646e3a0,1d3e,...) at _sx_xlock+0x50 Jan 28 19:53:36 RabbitsDen kernel: em_find(c7bcc900,1,c52918a0,c528e066,75,...) at em_find+0x51 Jan 28 19:53:36 RabbitsDen kernel: linux_proc_init(c7bce1b0,1d3e,7d0f00,0,16,...) at linux_proc_init+0xbd Jan 28 19:53:36 RabbitsDen kernel: linux_clone(c7bce1b0,e864bd00) at linux_clone+0x8b Jan 28 19:53:36 RabbitsDen kernel: syscall(e864bd38) at syscall+0x256 Jan 28 19:53:36 RabbitsDen kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20 Jan 28 19:53:36 RabbitsDen kernel: --- syscall (690504900), eip = 0x2, esp = 0xe864bd74, ebp = 0xbfbfe0bc --- Jan 28 19:53:36 RabbitsDen kernel: lock order reversal: Jan 28 19:53:36 RabbitsDen kernel: 1st 0xc52918e0 emuldata lock (emuldata lock) @ /usr/src/sys/modules/linux/../../compat /linux/linux_emul.c:67 Jan 28 19:53:36 RabbitsDen kernel: 2nd 0xc0700e00 proctree (proctree) @ /usr/src/sys/modules/linux/../../i386/linux/linux _machdep.c:461 Jan 28 19:53:36 RabbitsDen kernel: KDB: stack backtrace: Jan 28 19:53:36 RabbitsDen kernel: db_trace_self_wrapper(c068d13f) at db_trace_self_wrapper+0x25 Jan 28 19:53:36 RabbitsDen kernel: kdb_backtrace(0,ffffffff,c070f1c8,c0711978,c06ca0ec,...) at kdb_backtrace+0x29 Jan 28 19:53:36 RabbitsDen kernel: witness_checkorder(c0700e00,9,c528e50d,1cd) at witness_checkorder+0x586 Jan 28 19:53:36 RabbitsDen kernel: _sx_xlock(c0700e00,c528e50d,1cd,0,16,...) at _sx_xlock+0x50 Jan 28 19:53:36 RabbitsDen kernel: linux_clone(c7bce1b0,e864bd00) at linux_clone+0x2a8 Jan 28 19:53:36 RabbitsDen kernel: syscall(e864bd38) at syscall+0x256 Jan 28 19:53:36 RabbitsDen kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20 Jan 28 19:53:36 RabbitsDen kernel: --- syscall (690504900), eip = 0x2, esp = 0xe864bd74, ebp = 0xbfbfe0bc --- Do you have wiki page with known LORs and/or panics to ignore for now? -- Alexandre "Sunny" Kovalenko From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 30 08:18:22 2007 Return-Path: X-Original-To: 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 67FD116A401 for ; Tue, 30 Jan 2007 08:18:22 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 17DF613C48E for ; Tue, 30 Jan 2007 08:18:22 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5E074.dip.t-dialin.net [84.165.224.116]) by redbull.bpaserver.net (Postfix) with ESMTP id 770892E1A2; Tue, 30 Jan 2007 09:29:16 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 2C7D25B49F3; Tue, 30 Jan 2007 09:18:14 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l0U8IDgC072760; Tue, 30 Jan 2007 09:18:13 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 30 Jan 2007 09:18:13 +0100 Message-ID: <20070130091813.qw0ylh8sg4g888w8@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 30 Jan 2007 09:18:13 +0100 From: Alexander Leidinger To: "Alexandre \\\\Sunny\\\\ Kovalenko" References: <20070120170723.34c223fb@Magellan.Leidinger.net> <1169604069.1132.3.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124090227.GA71602@stud.fit.vutbr.cz> <1169642370.1132.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124143357.GA24993@stud.fit.vutbr.cz> <1169686662.33062.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070129090447.GA18900@stud.fit.vutbr.cz> <1170121834.860.4.camel@RabbitsDen.RabbitsLawn.verizon.net> In-Reply-To: <1170121834.860.4.camel@RabbitsDen.RabbitsLawn.verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Tue, 30 Jan 2007 08:18:22 -0000 Quoting "Alexandre \Sunny\ Kovalenko" (from Mon, 29 Jan 2007 20:50:33 -0500): > Alexander is right -- looks like VM related thing: It's a locking problem. My VM related panic was different (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/108151). > Do you have wiki page with known LORs and/or panics to ignore for now? Roman fixed a LOR in p4, it should hit CVS this week. Apart from that we don't know about LORs or panics, except those you highlighted. Bye, Alexander. -- When women kiss it always reminds one of prize fighters shaking hands. -- H. L. Mencken, "Sententiae" http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 30 09:08:56 2007 Return-Path: X-Original-To: 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 33B1416A403 for ; Tue, 30 Jan 2007 09:08:56 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id B42CB13C47E for ; Tue, 30 Jan 2007 09:08:55 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0U98r6W076709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Jan 2007 10:08:53 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0U98rwq076707; Tue, 30 Jan 2007 10:08:53 +0100 (CET) Date: Tue, 30 Jan 2007 10:08:53 +0100 From: Divacky Roman To: Alexander Leidinger Message-ID: <20070130090853.GA76541@stud.fit.vutbr.cz> References: <1169604069.1132.3.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124090227.GA71602@stud.fit.vutbr.cz> <1169642370.1132.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070124143357.GA24993@stud.fit.vutbr.cz> <1169686662.33062.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070125082553.m64yjmoku88kgg8s@webmail.leidinger.net> <1170031737.7409.7.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070129090447.GA18900@stud.fit.vutbr.cz> <1170121834.860.4.camel@RabbitsDen.RabbitsLawn.verizon.net> <20070130091813.qw0ylh8sg4g888w8@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070130091813.qw0ylh8sg4g888w8@webmail.leidinger.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: emulation@freebsd.org, Alexandre Sunny Kovalenko Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Tue, 30 Jan 2007 09:08:56 -0000 On Tue, Jan 30, 2007 at 09:18:13AM +0100, Alexander Leidinger wrote: > Quoting "Alexandre \Sunny\ Kovalenko" > (from Mon, 29 Jan 2007 20:50:33 -0500): > > >Alexander is right -- looks like VM related thing: > > It's a locking problem. My VM related panic was different > (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/108151). > > >Do you have wiki page with known LORs and/or panics to ignore for now? > > Roman fixed a LOR in p4, it should hit CVS this week. Apart from that > we don't know about LORs or panics, except those you highlighted. a LOR -> 3 or 4 LORs, the panic really seems unrelated to linuxulator and tegge seems to post a patch. just wait for commit now... my LOR fixes should make it into kernel this thursday, kib is so kind that he will commit that. I guess it makes sense to wait to thursday. From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 30 21:57:55 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 3770016A601 for ; Tue, 30 Jan 2007 21:57:55 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6D8BC13C4A5 for ; Tue, 30 Jan 2007 21:57:54 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0ULvqLb087245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 Jan 2007 22:57:52 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0ULvqmM087244 for freebsd-emulation@freebsd.org; Tue, 30 Jan 2007 22:57:52 +0100 (CET) Date: Tue, 30 Jan 2007 22:57:52 +0100 From: Divacky Roman To: freebsd-emulation@freebsd.org Message-ID: <20070130215752.GA86572@stud.fit.vutbr.cz> References: <20070128233230.GA4347@mail.scottro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070128233230.GA4347@mail.scottro.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Subject: [PATCH] linux 2.6.16 causes zombie processes with linux-opera 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: Tue, 30 Jan 2007 21:57:55 -0000 On Sun, Jan 28, 2007 at 06:32:30PM -0500, Scott Robbins wrote: > As near as I can determine, this only happens if I set the sysctl > compat.linux.osrelease to 2.6.16. > > This is on a system running CURRENT > > (7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Jan 25 20:30:57 EST 2007) > > When I close linux opera, a zombied process remains. The parent PID is > 1. > > Each time I open and then close opera, one and sometimes two, zombied > processes remain. > > Therefore, if I've been browsing the web on and off for awhile, and do a > pgrep opera, I might have a list of 20 or more PIDs, all zombies. please.. can you try this patch: --- /tmp/tmp.970.0 Tue Jan 30 22:56:18 2007 +++ /root/projects/linuxolator/src/sys/compat/linux/linux_emul.c Tue Jan 30 22:56:15 2007 @@ -165,6 +165,16 @@ KASSERT(em != NULL, ("proc_exit: emuldata not found.\n")); + /* reparent all non thread leaders to initproc */ + if (em->shared->group_pid != p->p_pid) { + sx_xlock(&proctree_lock); + wakeup(initproc); + PROC_LOCK(p); + proc_reparent(p, initproc); + PROC_UNLOCK(p); + sx_xunlock(&proctree_lock); + } + child_clear_tid = em->child_clear_tid; EMUL_UNLOCK(&emul_lock); ignore the LOR for now and tell me if there's any difference with the opera behaviour. I cant test now myself ;( roman From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 31 12:36:17 2007 Return-Path: X-Original-To: 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 69D1916A533 for ; Wed, 31 Jan 2007 12:36:17 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from ms-smtp-03.rdc-nyc.rr.com (ms-smtp-03.rdc-nyc.rr.com [24.29.109.7]) by mx1.freebsd.org (Postfix) with ESMTP id 1677913C46B for ; Wed, 31 Jan 2007 12:36:16 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost (cpe-74-73-145-181.nyc.res.rr.com [74.73.145.181]) by ms-smtp-03.rdc-nyc.rr.com (8.13.6/8.13.6) with ESMTP id l0VCaF2q012755; Wed, 31 Jan 2007 07:36:15 -0500 (EST) Date: Wed, 31 Jan 2007 07:36:15 -0500 From: Scott Robbins To: xdivac02@stud.fit.vutbrcz, emulation@freebsd.org Message-ID: <20070131123615.GA1895@mail.scottro.net> Mail-Followup-To: xdivac02@stud.fit.vutbrcz, emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Subject: The patch for 2.6.16 emulation 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: Wed, 31 Jan 2007 12:36:17 -0000 I tried the patch for linux_emul.c last night. However, it didn't seem to change anything. Linux-opera still leaves a zombied process each time it's closed. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Willow: Oz is a werewolf. Buffy: It's a long story. Oz: Got bit. Buffy: But obviously not that long. From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 31 15:17:04 2007 Return-Path: X-Original-To: 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 5591516A401 for ; Wed, 31 Jan 2007 15:17:04 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id D09BE13C48E for ; Wed, 31 Jan 2007 15:17:03 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0VFH1nv094718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Jan 2007 16:17:01 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0VFH0fJ094717; Wed, 31 Jan 2007 16:17:00 +0100 (CET) Date: Wed, 31 Jan 2007 16:17:00 +0100 From: Divacky Roman To: xdivac02@stud.fit.vutbrcz, emulation@freebsd.org Message-ID: <20070131151700.GA94000@stud.fit.vutbr.cz> References: <20070131123615.GA1895@mail.scottro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070131123615.GA1895@mail.scottro.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: Subject: Re: The patch for 2.6.16 emulation 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: Wed, 31 Jan 2007 15:17:04 -0000 On Wed, Jan 31, 2007 at 07:36:15AM -0500, Scott Robbins wrote: > I tried the patch for linux_emul.c last night. > > However, it didn't seem to change anything. Linux-opera still leaves a > zombied process each time it's closed. updated patch: --- /tmp/tmp.1529.0 Wed Jan 31 16:16:13 2007 +++ /root/projects/linuxolator/src/sys/compat/linux/linux_emul.c Wed Jan 31 10:22:57 2007 @@ -165,6 +165,17 @@ KASSERT(em != NULL, ("proc_exit: emuldata not found.\n")); + /* reparent all non thread leaders to initproc */ + if (em->shared->group_pid != p->p_pid) { + sx_xlock(&proctree_lock); + wakeup(initproc); + PROC_LOCK(p); + proc_reparent(p, initproc); + p->p_sigparent = SIGCHLD; + PROC_UNLOCK(p); + sx_xunlock(&proctree_lock); + } + child_clear_tid = em->child_clear_tid; EMUL_UNLOCK(&emul_lock); with this I dont have any zombie processes and world looks brighter ;) From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 31 22:38:56 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 F32FE16A488 for ; Wed, 31 Jan 2007 22:38:55 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id B6FCF13C48E for ; Wed, 31 Jan 2007 22:38:55 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l0VMcs9g046913; Wed, 31 Jan 2007 17:38:54 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Wed, 31 Jan 2007 17:38:50 -0500 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_8pRwFqwCk6bo8Uv" Message-Id: <200701311738.52070.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2508/Wed Jan 31 11:42:50 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Juergen Lock Subject: [PATCH] Fix QEMU crash on amd64 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: Wed, 31 Jan 2007 22:38:56 -0000 --Boundary-00=_8pRwFqwCk6bo8Uv Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline I have been experiencing QEMU crash on FreeBSD/amd64 host ever since Fabrice had added SMP support. Recently it was reported on QEMU development mailing list: http://lists.gnu.org/archive/html/qemu-devel/2007-01/msg00285.html For more than a year, I have been running QEMU with SMP support disabled because of this issue. Today I finally found some time to tackle this and got a fix. FYI... Jung-uk Kim --Boundary-00=_8pRwFqwCk6bo8Uv Content-Type: text/plain; charset="iso-8859-1"; name="patch-cpu-exec.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-cpu-exec.c" --- qemu/cpu-exec.c.orig Wed Jan 31 16:58:03 2007 +++ qemu/cpu-exec.c Wed Jan 31 17:08:11 2007 @@ -226,9 +226,9 @@ int cpu_exec(CPUState *env1) { - int saved_T0, saved_T1; + long saved_T0, saved_T1; #if defined(reg_T2) - int saved_T2; + long saved_T2; #endif CPUState *saved_env; #if defined(TARGET_I386) --Boundary-00=_8pRwFqwCk6bo8Uv-- From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 31 22:48:20 2007 Return-Path: X-Original-To: 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 56F5416A401 for ; Wed, 31 Jan 2007 22:48:20 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from ms-smtp-04.rdc-nyc.rr.com (ms-smtp-04.rdc-nyc.rr.com [24.29.109.8]) by mx1.freebsd.org (Postfix) with ESMTP id 05D1913C478 for ; Wed, 31 Jan 2007 22:48:19 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost (cpe-74-73-145-181.nyc.res.rr.com [74.73.145.181]) by ms-smtp-04.rdc-nyc.rr.com (8.13.4/8.13.4) with ESMTP id l0VMmBIR010566; Wed, 31 Jan 2007 17:48:16 -0500 (EST) Date: Wed, 31 Jan 2007 17:48:11 -0500 From: Scott Robbins To: xdivac02@stud.fit.vutbr.cz, emulation@freebsd.org Message-ID: <20070131224811.GA3502@mail.scottro.net> Mail-Followup-To: xdivac02@stud.fit.vutbr.cz, emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Subject: The patch for 2.6.16 emulation 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: Wed, 31 Jan 2007 22:48:20 -0000 Ok, that latest change to the patch fixed it. No more zombie processes in linux-opera. Thank you very very much. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 31 23:43:50 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 38AB616A40A for ; Wed, 31 Jan 2007 23:43:50 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id E2D4513C4A7 for ; Wed, 31 Jan 2007 23:43:49 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 9B09119F8A8; Thu, 1 Feb 2007 00:43:47 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id l0VNgWUt044022; Thu, 1 Feb 2007 00:42:32 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id l0VNgWdI044021; Thu, 1 Feb 2007 00:42:32 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 1 Feb 2007 00:42:32 +0100 To: Jung-uk Kim Message-ID: <20070131234232.GA43655@saturn.kn-bremen.de> Mail-Followup-To: Jung-uk Kim , freebsd-emulation@FreeBSD.org References: <200701311738.52070.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200701311738.52070.jkim@FreeBSD.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-emulation@FreeBSD.org Subject: Re: [PATCH] Fix QEMU crash on amd64 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: Wed, 31 Jan 2007 23:43:50 -0000 On Wed, Jan 31, 2007 at 05:38:50PM -0500, Jung-uk Kim wrote: > I have been experiencing QEMU crash on FreeBSD/amd64 host ever since > Fabrice had added SMP support. Recently it was reported on QEMU > development mailing list: > > http://lists.gnu.org/archive/html/qemu-devel/2007-01/msg00285.html > > For more than a year, I have been running QEMU with SMP support > disabled because of this issue. Today I finally found some time to > tackle this and got a fix. Thank you, committed! :) I was just trying to find the cause to this (I actually installed -current in qemu even tho I previously didn't have much luck running qemu inside qemu, and indeed I was able to reproduce the problem.) It's funny that the upper half of rbx apparently only gets spilled on -current, even tho T0 (== AREG1 == rbx) certainly doesn't fit into an int... Will you post on the qemu list or should I? Juergen From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 1 01:50:47 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 B12BD16A409 for ; Thu, 1 Feb 2007 01:50:47 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7715813C461 for ; Thu, 1 Feb 2007 01:50:47 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l111okx5052687; Wed, 31 Jan 2007 20:50:46 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Juergen Lock Date: Wed, 31 Jan 2007 20:50:41 -0500 User-Agent: KMail/1.6.2 References: <200701311738.52070.jkim@FreeBSD.org> <20070131234232.GA43655@saturn.kn-bremen.de> In-Reply-To: <20070131234232.GA43655@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200701312050.42932.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2509/Wed Jan 31 19:36:58 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-emulation@FreeBSD.org Subject: Re: [PATCH] Fix QEMU crash on amd64 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: Thu, 01 Feb 2007 01:50:47 -0000 On Wednesday 31 January 2007 06:42 pm, Juergen Lock wrote: > On Wed, Jan 31, 2007 at 05:38:50PM -0500, Jung-uk Kim wrote: > > I have been experiencing QEMU crash on FreeBSD/amd64 host ever > > since Fabrice had added SMP support. Recently it was reported on > > QEMU development mailing list: > > > > http://lists.gnu.org/archive/html/qemu-devel/2007-01/msg00285.htm > >l > > > > For more than a year, I have been running QEMU with SMP support > > disabled because of this issue. Today I finally found some time > > to tackle this and got a fix. > > Thank you, committed! :) Great! > I was just trying to find the cause to this (I actually installed > -current in qemu even tho I previously didn't have much luck > running qemu inside qemu, and indeed I was able to reproduce the > problem.) It's funny that the upper half of rbx apparently only > gets spilled on -current, even tho T0 (== AREG1 == rbx) certainly > doesn't fit into an int... :-) I was very surprised to find it myself. > Will you post on the qemu list or should I? Somehow I cannot send/receive anything from the ML any more, and yes, I have subscribed. :-( So, please do. Thanks, Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 1 20:03:03 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 78EB416A403; Thu, 1 Feb 2007 20:03:03 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 1F44113C428; Thu, 1 Feb 2007 20:03:02 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l11K2wLJ097721; Thu, 1 Feb 2007 15:02:58 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Juergen Lock Date: Thu, 1 Feb 2007 15:02:53 -0500 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200702011502.56443.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2513/Thu Feb 1 11:48:53 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-emulation@FreeBSD.org Subject: [FIX] QEMU and ACPI 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: Thu, 01 Feb 2007 20:03:03 -0000 You may have noticed recent QEMU does not boot FreeBSD/amd64 SMP guest on FreeBSD/amd64 -CURRENT host (i.e., you may have seen 'invalid RSDT checksum' error while booting). That is because the QEMU BIOS (which is actually Bochs BIOS with little modification) has a little bug in it. If you experience the issue, grab a file from here: http://people.freebsd.org/~jkim/qemu-bios.bin and replace /usr/local/share/qemu/bios.bin with it. The QEMU patch against Bochs BIOS is here: http://people.freebsd.org/~jkim/qemu-bios.diff Basically it wasn't clearing RSDT before checksum calculation. ;-) FYI... Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 1 21:55:11 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 5798F16A402; Thu, 1 Feb 2007 21:55:11 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id EF62A13C4B4; Thu, 1 Feb 2007 21:55:10 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from localhost ([127.0.0.1] helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1HCjCI-0000Pg-K5; Thu, 01 Feb 2007 23:10:23 +0200 Received: from kozlov by ravenloft.kiev.ua with local (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HCjBt-0007BF-J5; Thu, 01 Feb 2007 23:09:57 +0200 Date: Thu, 1 Feb 2007 23:09:57 +0200 From: Alex Kozlov To: Jung-uk Kim Message-ID: <20070201210957.GA27582@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Alex Kozlov X-Spam-Score: 0.0 (/) X-Spam-Report: Content analysis detailz: (0.0 points, 10.0 required) Cc: freebsd-emulation@FreeBSD.org, spam@rm-rf.kiev.ua Subject: Re: [FIX] QEMU and ACPI 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: Thu, 01 Feb 2007 21:55:11 -0000 On Thu, Feb 01, 2007 at 03:02:53PM -0500, Jung-uk Kim wrote: > You may have noticed recent QEMU does not boot FreeBSD/amd64 SMP guest > on FreeBSD/amd64 -CURRENT host (i.e., you may have seen 'invalid RSDT > checksum' error while booting). That is because the QEMU BIOS (which > is actually Bochs BIOS with little modification) has a little bug in > it. If you experience the issue, grab a file from here: > http://people.freebsd.org/~jkim/qemu-bios.bin > and replace /usr/local/share/qemu/bios.bin with it. The QEMU patch > against Bochs BIOS is here: > http://people.freebsd.org/~jkim/qemu-bios.diff > Basically it wasn't clearing RSDT before checksum calculation. ;-) Also useful - patch for removing DMA timeout at boot time in FreeBSD guest: http://www.mail-archive.com/qemu-devel@nongnu.org/msg08126.html -- Adios From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 1 23:18:49 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 C7B6216A400; Thu, 1 Feb 2007 23:18:49 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 39E7113C4A6; Thu, 1 Feb 2007 23:18:49 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 0973819F4F8; Fri, 2 Feb 2007 00:18:48 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id l11NHI9M084099; Fri, 2 Feb 2007 00:17:18 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id l11NHHh9084098; Fri, 2 Feb 2007 00:17:17 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Fri, 2 Feb 2007 00:17:17 +0100 To: Jung-uk Kim Message-ID: <20070201231717.GA84018@saturn.kn-bremen.de> Mail-Followup-To: Jung-uk Kim , freebsd-emulation@FreeBSD.org References: <200702011502.56443.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702011502.56443.jkim@FreeBSD.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-emulation@FreeBSD.org Subject: experimental qemu update, please test! (was: [FIX] QEMU and ACPI) 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: Thu, 01 Feb 2007 23:18:50 -0000 On Thu, Feb 01, 2007 at 03:02:53PM -0500, Jung-uk Kim wrote: > You may have noticed recent QEMU does not boot FreeBSD/amd64 SMP guest > on FreeBSD/amd64 -CURRENT host (i.e., you may have seen 'invalid RSDT > checksum' error while booting). That is because the QEMU BIOS (which > is actually Bochs BIOS with little modification) has a little bug in > it. If you experience the issue, grab a file from here: > > http://people.freebsd.org/~jkim/qemu-bios.bin > > and replace /usr/local/share/qemu/bios.bin with it. The QEMU patch > against Bochs BIOS is here: > > http://people.freebsd.org/~jkim/qemu-bios.diff > > Basically it wasn't clearing RSDT before checksum calculation. ;-) Ok I have prepared a qemu port update that includes this, please test before I commit it: Removed files: files/patch-slirp-udp.c files/patch-vl.h files/patch-sdl.c News files: files/patch-x_keymap.c Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/Makefile,v retrieving revision 1.67 diff -u -r1.67 Makefile --- Makefile 31 Jan 2007 23:20:53 -0000 1.67 +++ Makefile 1 Feb 2007 22:16:35 -0000 @@ -6,17 +6,18 @@ # PORTNAME= qemu -PORTVERSION= 0.8.2s.20070111 -PORTREVISION= 1 +PORTVERSION= 0.8.2s.20070201 CATEGORIES= emulators MASTER_SITES= http://www.qemu.org/:release \ http://qemu-forum.ipi.fi/qemu-snapshots/:snapshot \ http://people.fruitsalad.org/nox/qemu/:snapshot \ http://www.volny.cz/xnavara/qemu/:snapshot \ http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \ - http://people.freebsd.org/~maho/qemu/:misc -DISTNAME= ${PORTNAME}-snapshot-2007-01-11_05 -DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot + http://people.freebsd.org/~maho/qemu/:misc \ + http://people.freebsd.org/~jkim/:bios +DISTNAME= ${PORTNAME}-snapshot-2007-02-01_05 +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot \ + qemu-bios.bin:bios DIST_SUBDIR= qemu EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -81,6 +82,7 @@ @${MKDIR} ${WRKSRC}/kqemu @${TOUCH} ${WRKSRC}/kqemu/Makefile @${ECHO} all: > ${WRKSRC}/kqemu/Makefile.freebsd + @${CP} -p ${_DISTDIR}/qemu-bios.bin ${WRKSRC}/pc-bios/bios.bin pre-patch: @for A in ${ONLY_FOR_ARCHS}; do \ Index: distinfo =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/distinfo,v retrieving revision 1.39 diff -u -r1.39 distinfo --- distinfo 12 Jan 2007 00:13:58 -0000 1.39 +++ distinfo 1 Feb 2007 22:11:53 -0000 @@ -1,6 +1,9 @@ -MD5 (qemu/qemu-snapshot-2007-01-11_05.tar.bz2) = 6b183198ea932853664edbff595579c7 -SHA256 (qemu/qemu-snapshot-2007-01-11_05.tar.bz2) = 4020ae33a58fba1a205c77a70fce21ba8e1843adcb8bedcabfbc7f84c53b35a1 -SIZE (qemu/qemu-snapshot-2007-01-11_05.tar.bz2) = 1576375 +MD5 (qemu/qemu-snapshot-2007-02-01_05.tar.bz2) = 89d97d0a6a87fb4a5a572c5b511fbac0 +SHA256 (qemu/qemu-snapshot-2007-02-01_05.tar.bz2) = dc5d20e99da3537c11bf86e291c1ca709172955e3c77bed1539978bd0ba7ec3f +SIZE (qemu/qemu-snapshot-2007-02-01_05.tar.bz2) = 1632792 +MD5 (qemu/qemu-bios.bin) = 4ce1a0864d556974cc5364dc55aa1597 +SHA256 (qemu/qemu-bios.bin) = 90c8c3e38021a1a1323860c376747d21ae0d3841aa57598aed3ef8e3126285a0 +SIZE (qemu/qemu-bios.bin) = 131072 MD5 (qemu/patch3_cirrus) = ebe7ed9fce804c49e024bc93bfdfc810 SHA256 (qemu/patch3_cirrus) = e862371834b7d895a896fbdb84fd9f70d17b5729a6f6789a48a61504fc941e11 SIZE (qemu/patch3_cirrus) = 8817 Index: files/patch-bsdusb.patch =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-bsdusb.patch,v retrieving revision 1.6 diff -u -r1.6 patch-bsdusb.patch --- files/patch-bsdusb.patch 17 Dec 2006 00:22:36 -0000 1.6 +++ files/patch-bsdusb.patch 1 Feb 2007 20:38:44 -0000 @@ -1,13 +1,13 @@ Index: qemu/configure -@@ -134,6 +134,7 @@ +@@ -139,6 +139,7 @@ oss="yes" linux="yes" - user="yes" + linux_user="yes" +usb="linux" if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then kqemu="yes" fi -@@ -143,6 +144,7 @@ +@@ -148,6 +149,7 @@ if [ "$bsd" = "yes" ] ; then if [ "$darwin" != "yes" ] ; then make="gmake" @@ -15,7 +15,7 @@ fi fi -@@ -724,6 +726,19 @@ +@@ -786,6 +788,19 @@ fi echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h Index: files/patch-osdep.c =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-osdep.c,v retrieving revision 1.1 diff -u -r1.1 patch-osdep.c --- files/patch-osdep.c 5 May 2005 12:41:10 -0000 1.1 +++ files/patch-osdep.c 1 Feb 2007 21:10:45 -0000 @@ -1,7 +1,7 @@ Index: qemu/osdep.c -@@ -323,7 +323,9 @@ +@@ -79,7 +79,9 @@ - #elif defined(USE_KQEMU) + #if defined(USE_KQEMU) +#ifndef __FreeBSD__ #include @@ -9,15 +9,15 @@ #include #include -@@ -334,6 +336,7 @@ +@@ -90,6 +92,7 @@ const char *tmpdir; char phys_ram_file[1024]; void *ptr; +#ifndef __FreeBSD__ - struct statfs stfs; - - if (phys_ram_fd < 0) { -@@ -389,12 +392,20 @@ + #ifdef HOST_SOLARIS + struct statvfs stfs; + #else +@@ -151,12 +154,20 @@ } unlink(phys_ram_file); } Index: files/patch-sdl.c =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-sdl.c,v retrieving revision 1.5 diff -u -r1.5 patch-sdl.c --- files/patch-sdl.c 26 Dec 2006 22:41:13 -0000 1.5 +++ files/patch-sdl.c 1 Feb 2007 21:54:07 -0000 @@ -1,14 +0,0 @@ -Index: qemu/sdl.c -@@ -115,9 +115,9 @@ - 0xb5, /* 112 Divide */ - 0xb8, /* 113 Alt-R */ - 0xc6, /* 114 Break */ -- 0x0, /* 115 */ -- 0x0, /* 116 */ -- 0x0, /* 117 */ -+ 0xdb, /* 115 windows left button */ -+ 0xdc, /* 116 windows right button */ -+ 0xdd, /* 117 right menu button */ - 0x0, /* 118 */ - 0x0, /* 119 */ - 0x70, /* 120 Hiragana_Katakana */ Index: files/patch-slirp-udp.c =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-slirp-udp.c,v retrieving revision 1.1 diff -u -r1.1 patch-slirp-udp.c --- files/patch-slirp-udp.c 12 Jan 2007 00:13:58 -0000 1.1 +++ files/patch-slirp-udp.c 1 Feb 2007 21:54:07 -0000 @@ -1,26 +0,0 @@ -Index: qemu/slirp/udp.c -@@ -205,8 +208,6 @@ - /* udp_last_so = so; */ - so->so_laddr = ip->ip_src; - so->so_lport = uh->uh_sport; -- so->so_faddr = ip->ip_dst; /* XXX */ -- so->so_fport = uh->uh_dport; /* XXX */ - - if ((so->so_iptos = udp_tos(so)) == 0) - so->so_iptos = ip->ip_tos; -@@ -216,6 +217,15 @@ - * and if it is, do the fork_exec() etc. - */ - } -+ -+ /* -+ * Assign destination unconditionally -+ * -+ * This fixes the case where packets are sent from the same -+ * source ip/port to different destination ips/ports -+ */ -+ so->so_faddr = ip->ip_dst; /* XXX */ -+ so->so_fport = uh->uh_dport; /* XXX */ - - iphlen += sizeof(struct udphdr); - m->m_len -= iphlen; Index: files/patch-vl.c-ppbus =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-vl.c-ppbus,v retrieving revision 1.1 diff -u -r1.1 patch-vl.c-ppbus --- files/patch-vl.c-ppbus 21 Aug 2006 23:02:01 -0000 1.1 +++ files/patch-vl.c-ppbus 1 Feb 2007 21:05:43 -0000 @@ -9,7 +9,7 @@ #endif #else #ifndef __sun__ -@@ -1728,7 +1730,65 @@ +@@ -1728,7 +1730,64 @@ chr->chr_ioctl = pp_ioctl; return chr; } @@ -68,7 +68,6 @@ + } + chr->opaque = (void *)fd; + chr->chr_write = null_chr_write; -+ chr->chr_add_read_handler = null_chr_add_read_handler; + chr->chr_ioctl = pp_ioctl; + return chr; +} Index: files/patch-vl.h =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-vl.h,v retrieving revision 1.1 diff -u -r1.1 patch-vl.h --- files/patch-vl.h 31 Oct 2006 22:55:34 -0000 1.1 +++ files/patch-vl.h 1 Feb 2007 21:54:07 -0000 @@ -1,12 +0,0 @@ -Index: qemu/vl.h -@@ -73,6 +73,10 @@ - #define PRIo64 "I64o" - #endif - -+#ifndef ENOMEDIUM -+#define ENOMEDIUM 4097 -+#endif -+ - #ifdef QEMU_TOOL - - /* we use QEMU_TOOL in the command line tools which do not depend on Index: files/patch-x_keymap.c @@ -0,0 +1,14 @@ +Index: qemu/x_keymap.c +@@ -41,9 +41,9 @@ + 0xb5, /* 112 Divide */ + 0xb8, /* 113 Alt-R */ + 0xc6, /* 114 Break */ +- 0x0, /* 115 */ +- 0x0, /* 116 */ +- 0x0, /* 117 */ ++ 0xdb, /* 115 left windows key */ ++ 0xdc, /* 116 right windows key */ ++ 0xdd, /* 117 right menu key */ + 0x0, /* 118 */ + 0x0, /* 119 */ + 0x0, /* 120 */ From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 1 23:36:50 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 DA03916A403 for ; Thu, 1 Feb 2007 23:36:50 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 98C0413C4B4 for ; Thu, 1 Feb 2007 23:36:46 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id C40A01A07BE; Fri, 2 Feb 2007 00:36:45 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id l11NOtJ9085403; Fri, 2 Feb 2007 00:24:55 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id l11NOtij085402; Fri, 2 Feb 2007 00:24:55 +0100 (CET) (envelope-from nox) Date: Fri, 2 Feb 2007 00:24:55 +0100 (CET) From: Juergen Lock Message-Id: <200702012324.l11NOtij085402@saturn.kn-bremen.de> To: spam@rm-rf.kiev.ua X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <20070201210957.GA27582@ravenloft.kiev.ua> Organization: home Cc: freebsd-emulation@freebsd.org Subject: Re: [FIX] QEMU and ACPI 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: Thu, 01 Feb 2007 23:36:51 -0000 In article <20070201210957.GA27582@ravenloft.kiev.ua> you write: >On Thu, Feb 01, 2007 at 03:02:53PM -0500, Jung-uk Kim wrote: >> You may have noticed recent QEMU does not boot FreeBSD/amd64 SMP guest >> on FreeBSD/amd64 -CURRENT host (i.e., you may have seen 'invalid RSDT >> checksum' error while booting). That is because the QEMU BIOS (which >> is actually Bochs BIOS with little modification) has a little bug in >> it. If you experience the issue, grab a file from here: >> http://people.freebsd.org/~jkim/qemu-bios.bin >> and replace /usr/local/share/qemu/bios.bin with it. The QEMU patch >> against Bochs BIOS is here: >> http://people.freebsd.org/~jkim/qemu-bios.diff >> Basically it wasn't clearing RSDT before checksum calculation. ;-) >Also useful - patch for removing DMA timeout at boot time in FreeBSD guest: >http://www.mail-archive.com/qemu-devel@nongnu.org/msg08126.html That one has been committed to qemu in the meantime, so its included in the eperimental update I just posted. Juergen From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 2 00:11:39 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 F09FA16A408 for ; Fri, 2 Feb 2007 00:11:39 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id B811113C4A6 for ; Fri, 2 Feb 2007 00:11:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l120BS8m011224; Thu, 1 Feb 2007 19:11:28 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Thu, 1 Feb 2007 19:11:23 -0500 User-Agent: KMail/1.6.2 References: <200702011502.56443.jkim@FreeBSD.org> <20070201231717.GA84018@saturn.kn-bremen.de> In-Reply-To: <20070201231717.GA84018@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200702011911.26056.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2514/Thu Feb 1 16:50:10 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Juergen Lock Subject: Re: experimental qemu update, please test! (was: [FIX] QEMU and ACPI) 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: Fri, 02 Feb 2007 00:11:40 -0000 On Thursday 01 February 2007 06:17 pm, Juergen Lock wrote: > On Thu, Feb 01, 2007 at 03:02:53PM -0500, Jung-uk Kim wrote: > > You may have noticed recent QEMU does not boot FreeBSD/amd64 SMP > > guest on FreeBSD/amd64 -CURRENT host (i.e., you may have seen > > 'invalid RSDT checksum' error while booting). That is because > > the QEMU BIOS (which is actually Bochs BIOS with little > > modification) has a little bug in it. If you experience the > > issue, grab a file from here: > > > > http://people.freebsd.org/~jkim/qemu-bios.bin > > > > and replace /usr/local/share/qemu/bios.bin with it. The QEMU > > patch against Bochs BIOS is here: > > > > http://people.freebsd.org/~jkim/qemu-bios.diff > > > > Basically it wasn't clearing RSDT before checksum calculation. > > ;-) > > Ok I have prepared a qemu port update that includes this, please > test before I commit it: I am very sorry to tell you this but I just found out that I uploaded wrong BIOS image (i.e., Bochs BIOS instead of QEMU BIOS, which does not include the ACPI fix). :-( I uploaded correct one. Please update your patch with correct distinfo. My apologies... Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 2 00:46:06 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 3A2C216A400; Fri, 2 Feb 2007 00:46:06 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 95B5413C4AA; Fri, 2 Feb 2007 00:46:05 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id AE46219FDC4; Fri, 2 Feb 2007 01:46:03 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id l120jEAD088307; Fri, 2 Feb 2007 01:45:14 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id l120jE5x088306; Fri, 2 Feb 2007 01:45:14 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Fri, 2 Feb 2007 01:45:14 +0100 To: Jung-uk Kim Message-ID: <20070202004514.GA88287@saturn.kn-bremen.de> Mail-Followup-To: Jung-uk Kim , freebsd-emulation@FreeBSD.org References: <200702011502.56443.jkim@FreeBSD.org> <20070201231717.GA84018@saturn.kn-bremen.de> <200702011911.26056.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702011911.26056.jkim@FreeBSD.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-emulation@FreeBSD.org Subject: Re: experimental qemu update, please test! (was: [FIX] QEMU and ACPI) 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: Fri, 02 Feb 2007 00:46:06 -0000 On Thu, Feb 01, 2007 at 07:11:23PM -0500, Jung-uk Kim wrote: > On Thursday 01 February 2007 06:17 pm, Juergen Lock wrote: > > On Thu, Feb 01, 2007 at 03:02:53PM -0500, Jung-uk Kim wrote: > > > You may have noticed recent QEMU does not boot FreeBSD/amd64 SMP > > > guest on FreeBSD/amd64 -CURRENT host (i.e., you may have seen > > > 'invalid RSDT checksum' error while booting). That is because > > > the QEMU BIOS (which is actually Bochs BIOS with little > > > modification) has a little bug in it. If you experience the > > > issue, grab a file from here: > > > > > > http://people.freebsd.org/~jkim/qemu-bios.bin > > > > > > and replace /usr/local/share/qemu/bios.bin with it. The QEMU > > > patch against Bochs BIOS is here: > > > > > > http://people.freebsd.org/~jkim/qemu-bios.diff > > > > > > Basically it wasn't clearing RSDT before checksum calculation. > > > ;-) > > > > Ok I have prepared a qemu port update that includes this, please > > test before I commit it: > > I am very sorry to tell you this but I just found out that I uploaded > wrong BIOS image (i.e., Bochs BIOS instead of QEMU BIOS, which does > not include the ACPI fix). :-( I uploaded correct one. Please > update your patch with correct distinfo. My apologies... Ok patch again with updated distinfo: Removed files: files/patch-slirp-udp.c files/patch-vl.h files/patch-sdl.c News files: files/patch-x_keymap.c Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/Makefile,v retrieving revision 1.67 diff -u -r1.67 Makefile --- Makefile 31 Jan 2007 23:20:53 -0000 1.67 +++ Makefile 1 Feb 2007 22:16:35 -0000 @@ -6,17 +6,18 @@ # PORTNAME= qemu -PORTVERSION= 0.8.2s.20070111 -PORTREVISION= 1 +PORTVERSION= 0.8.2s.20070201 CATEGORIES= emulators MASTER_SITES= http://www.qemu.org/:release \ http://qemu-forum.ipi.fi/qemu-snapshots/:snapshot \ http://people.fruitsalad.org/nox/qemu/:snapshot \ http://www.volny.cz/xnavara/qemu/:snapshot \ http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \ - http://people.freebsd.org/~maho/qemu/:misc -DISTNAME= ${PORTNAME}-snapshot-2007-01-11_05 -DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot + http://people.freebsd.org/~maho/qemu/:misc \ + http://people.freebsd.org/~jkim/:bios +DISTNAME= ${PORTNAME}-snapshot-2007-02-01_05 +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot \ + qemu-bios.bin:bios DIST_SUBDIR= qemu EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -81,6 +82,7 @@ @${MKDIR} ${WRKSRC}/kqemu @${TOUCH} ${WRKSRC}/kqemu/Makefile @${ECHO} all: > ${WRKSRC}/kqemu/Makefile.freebsd + @${CP} -p ${_DISTDIR}/qemu-bios.bin ${WRKSRC}/pc-bios/bios.bin pre-patch: @for A in ${ONLY_FOR_ARCHS}; do \ Index: distinfo =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/distinfo,v retrieving revision 1.39 diff -u -r1.39 distinfo --- distinfo 12 Jan 2007 00:13:58 -0000 1.39 +++ distinfo 2 Feb 2007 00:39:49 -0000 @@ -1,6 +1,9 @@ -MD5 (qemu/qemu-snapshot-2007-01-11_05.tar.bz2) = 6b183198ea932853664edbff595579c7 -SHA256 (qemu/qemu-snapshot-2007-01-11_05.tar.bz2) = 4020ae33a58fba1a205c77a70fce21ba8e1843adcb8bedcabfbc7f84c53b35a1 -SIZE (qemu/qemu-snapshot-2007-01-11_05.tar.bz2) = 1576375 +MD5 (qemu/qemu-snapshot-2007-02-01_05.tar.bz2) = 89d97d0a6a87fb4a5a572c5b511fbac0 +SHA256 (qemu/qemu-snapshot-2007-02-01_05.tar.bz2) = dc5d20e99da3537c11bf86e291c1ca709172955e3c77bed1539978bd0ba7ec3f +SIZE (qemu/qemu-snapshot-2007-02-01_05.tar.bz2) = 1632792 +MD5 (qemu/qemu-bios.bin) = 173e256f17b4ac1f6e3249c83071e8f5 +SHA256 (qemu/qemu-bios.bin) = 452d863ec8ac9e2246950ac204410e847cdeba880d7bec2aeb79c4f2fbb0ad17 +SIZE (qemu/qemu-bios.bin) = 131072 MD5 (qemu/patch3_cirrus) = ebe7ed9fce804c49e024bc93bfdfc810 SHA256 (qemu/patch3_cirrus) = e862371834b7d895a896fbdb84fd9f70d17b5729a6f6789a48a61504fc941e11 SIZE (qemu/patch3_cirrus) = 8817 Index: files/patch-bsdusb.patch =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-bsdusb.patch,v retrieving revision 1.6 diff -u -r1.6 patch-bsdusb.patch --- files/patch-bsdusb.patch 17 Dec 2006 00:22:36 -0000 1.6 +++ files/patch-bsdusb.patch 1 Feb 2007 20:38:44 -0000 @@ -1,13 +1,13 @@ Index: qemu/configure -@@ -134,6 +134,7 @@ +@@ -139,6 +139,7 @@ oss="yes" linux="yes" - user="yes" + linux_user="yes" +usb="linux" if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then kqemu="yes" fi -@@ -143,6 +144,7 @@ +@@ -148,6 +149,7 @@ if [ "$bsd" = "yes" ] ; then if [ "$darwin" != "yes" ] ; then make="gmake" @@ -15,7 +15,7 @@ fi fi -@@ -724,6 +726,19 @@ +@@ -786,6 +788,19 @@ fi echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h Index: files/patch-osdep.c =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-osdep.c,v retrieving revision 1.1 diff -u -r1.1 patch-osdep.c --- files/patch-osdep.c 5 May 2005 12:41:10 -0000 1.1 +++ files/patch-osdep.c 1 Feb 2007 21:10:45 -0000 @@ -1,7 +1,7 @@ Index: qemu/osdep.c -@@ -323,7 +323,9 @@ +@@ -79,7 +79,9 @@ - #elif defined(USE_KQEMU) + #if defined(USE_KQEMU) +#ifndef __FreeBSD__ #include @@ -9,15 +9,15 @@ #include #include -@@ -334,6 +336,7 @@ +@@ -90,6 +92,7 @@ const char *tmpdir; char phys_ram_file[1024]; void *ptr; +#ifndef __FreeBSD__ - struct statfs stfs; - - if (phys_ram_fd < 0) { -@@ -389,12 +392,20 @@ + #ifdef HOST_SOLARIS + struct statvfs stfs; + #else +@@ -151,12 +154,20 @@ } unlink(phys_ram_file); } Index: files/patch-sdl.c =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-sdl.c,v retrieving revision 1.5 diff -u -r1.5 patch-sdl.c --- files/patch-sdl.c 26 Dec 2006 22:41:13 -0000 1.5 +++ files/patch-sdl.c 1 Feb 2007 21:54:07 -0000 @@ -1,14 +0,0 @@ -Index: qemu/sdl.c -@@ -115,9 +115,9 @@ - 0xb5, /* 112 Divide */ - 0xb8, /* 113 Alt-R */ - 0xc6, /* 114 Break */ -- 0x0, /* 115 */ -- 0x0, /* 116 */ -- 0x0, /* 117 */ -+ 0xdb, /* 115 windows left button */ -+ 0xdc, /* 116 windows right button */ -+ 0xdd, /* 117 right menu button */ - 0x0, /* 118 */ - 0x0, /* 119 */ - 0x70, /* 120 Hiragana_Katakana */ Index: files/patch-slirp-udp.c =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-slirp-udp.c,v retrieving revision 1.1 diff -u -r1.1 patch-slirp-udp.c --- files/patch-slirp-udp.c 12 Jan 2007 00:13:58 -0000 1.1 +++ files/patch-slirp-udp.c 1 Feb 2007 21:54:07 -0000 @@ -1,26 +0,0 @@ -Index: qemu/slirp/udp.c -@@ -205,8 +208,6 @@ - /* udp_last_so = so; */ - so->so_laddr = ip->ip_src; - so->so_lport = uh->uh_sport; -- so->so_faddr = ip->ip_dst; /* XXX */ -- so->so_fport = uh->uh_dport; /* XXX */ - - if ((so->so_iptos = udp_tos(so)) == 0) - so->so_iptos = ip->ip_tos; -@@ -216,6 +217,15 @@ - * and if it is, do the fork_exec() etc. - */ - } -+ -+ /* -+ * Assign destination unconditionally -+ * -+ * This fixes the case where packets are sent from the same -+ * source ip/port to different destination ips/ports -+ */ -+ so->so_faddr = ip->ip_dst; /* XXX */ -+ so->so_fport = uh->uh_dport; /* XXX */ - - iphlen += sizeof(struct udphdr); - m->m_len -= iphlen; Index: files/patch-vl.c-ppbus =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-vl.c-ppbus,v retrieving revision 1.1 diff -u -r1.1 patch-vl.c-ppbus --- files/patch-vl.c-ppbus 21 Aug 2006 23:02:01 -0000 1.1 +++ files/patch-vl.c-ppbus 1 Feb 2007 21:05:43 -0000 @@ -9,7 +9,7 @@ #endif #else #ifndef __sun__ -@@ -1728,7 +1730,65 @@ +@@ -1728,7 +1730,64 @@ chr->chr_ioctl = pp_ioctl; return chr; } @@ -68,7 +68,6 @@ + } + chr->opaque = (void *)fd; + chr->chr_write = null_chr_write; -+ chr->chr_add_read_handler = null_chr_add_read_handler; + chr->chr_ioctl = pp_ioctl; + return chr; +} Index: files/patch-vl.h =================================================================== RCS file: /home/pcvs/ports/emulators/qemu/files/patch-vl.h,v retrieving revision 1.1 diff -u -r1.1 patch-vl.h --- files/patch-vl.h 31 Oct 2006 22:55:34 -0000 1.1 +++ files/patch-vl.h 1 Feb 2007 21:54:07 -0000 @@ -1,12 +0,0 @@ -Index: qemu/vl.h -@@ -73,6 +73,10 @@ - #define PRIo64 "I64o" - #endif - -+#ifndef ENOMEDIUM -+#define ENOMEDIUM 4097 -+#endif -+ - #ifdef QEMU_TOOL - - /* we use QEMU_TOOL in the command line tools which do not depend on Index: files/patch-x_keymap.c @@ -0,0 +1,14 @@ +Index: qemu/x_keymap.c +@@ -41,9 +41,9 @@ + 0xb5, /* 112 Divide */ + 0xb8, /* 113 Alt-R */ + 0xc6, /* 114 Break */ +- 0x0, /* 115 */ +- 0x0, /* 116 */ +- 0x0, /* 117 */ ++ 0xdb, /* 115 left windows key */ ++ 0xdc, /* 116 right windows key */ ++ 0xdd, /* 117 right menu key */ + 0x0, /* 118 */ + 0x0, /* 119 */ + 0x0, /* 120 */ From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 2 18:24:55 2007 Return-Path: X-Original-To: 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 B751516A401 for ; Fri, 2 Feb 2007 18:24:55 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip252.ish.de [80.69.98.252]) by mx1.freebsd.org (Postfix) with ESMTP id 50CFE13C46B for ; Fri, 2 Feb 2007 18:24:55 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from [82.210.144.60] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 93057245; Fri, 02 Feb 2007 18:24:52 +0100 Received: from [127.0.0.1] (saper@saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id l12HORG6001987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 2 Feb 2007 18:24:29 +0100 (CET) (envelope-from saper@SYSTEM.PL) Message-ID: <45C373CB.8030908@SYSTEM.PL> Date: Fri, 02 Feb 2007 18:24:27 +0100 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.7) Gecko/20061101 SeaMonkey/1.0.5 MIME-Version: 1.0 To: lavr@unix1.jinr.ru References: <200702021252.l12CqCdT097596@unix1.jinr.ru> In-Reply-To: <200702021252.l12CqCdT097596@unix1.jinr.ru> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org Subject: Re: freebsd + oracle10xe help wanted 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: Fri, 02 Feb 2007 18:24:55 -0000 Zdrast'ye Andrey, Please do not write me for support - write to the list instead. Andrey Lavrentyev wrote: > Can you tell me, what's better: > > linuxlator from 6.1 + patches for Oracle10XE install > or > may be linuxlator from 6.2 already has all russian-commited + patch above There should be no need to apply extra patches anymore. But please try applying them with "patch -C" and if you see that they are already applied, this means you don't need to. I have no idea what "all russian-commited" means, by the way. > > Another question: > > - which linux[base] ports better for oracle10xe install? I don't know. I was using linux_base-fc-4_6. Any newer version should do. > - besides the linuxlator+patches and linux from ports, oracle10xe > requirement for installation? Nothing more. -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 3 10:49:39 2007 Return-Path: X-Original-To: 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 83EDC16A402 for ; Sat, 3 Feb 2007 10:49:39 +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 D5BF113C442 for ; Sat, 3 Feb 2007 10:49:38 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id C1E0BB60379 for ; Sat, 3 Feb 2007 19:29:43 +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 20130-02 for ; Sat, 3 Feb 2007 19:29:43 +0900 (WST) Received: from [192.168.0.2] (dsl-124-150-115-44.vic.westnet.com.au [124.150.115.44]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vscan03.westnet.com.au (Postfix) with ESMTP id 25883B6007B for ; Sat, 3 Feb 2007 19:29:43 +0900 (WST) Message-ID: <45C46416.3020406@melbpc.org.au> Date: Sat, 03 Feb 2007 21:29:42 +1100 From: Peter Kostouros Organization: Melbourne PC User Group User-Agent: Thunderbird 1.5.0.9 (X11/20070101) MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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: Sat, 03 Feb 2007 10:49:39 -0000 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. The error files generated for the command java -version for the above mentioned java environments are shown below. Let me know if I can provide further information. linux-sun-jdk1.6.0 ------------------ # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x280ee737, pid=1856, tid=673328048 # # Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing) # Problematic frame: # [error occurred during error reporting, step 60, id 0xb] # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread is native thread siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000007c Registers: EAX=0x00000000, EBX=0x281a7ff4, ECX=0x00000078, EDX=0x00000080 ESP=0x28222210, EBP=0x28222218, ESI=0x28222250, EDI=0x282222b0 EIP=0x280ee737, CR2=0x00000000, EFLAGS=0x00010202 Top of Stack: (sp=0x28222210) 0x28222210: 2807eff4 28222250 28222228 28077355 0x28222220: 00000080 282222b4 28222298 06307fca 0x28222230: 28222250 282222b4 00000000 00000000 0x28222240: 0000000c 080587e0 28222278 28223000 0x28222250: 00000000 00000000 00000008 00001000 0x28222260: 28223000 00050000 00000080 08058000 0x28222270: 08058000 08058000 282222a8 0637fad4 0x28222280: 08058000 282223bb 282222a8 08058000 Instructions: (pc=0x280ee737) 0x280ee727: 5e 8d 65 f8 5b 5e c9 c3 90 85 d2 74 f4 8d 4a f8 0x280ee737: 8b 41 04 a8 02 75 58 a8 04 75 4a 8d b3 8c 18 00 Stack: [0x281d3000,0x28223000), sp=0x28222210, free space=316k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) [error occurred during error reporting, step 120, id 0xb] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) Other Threads: VM state:not at safepoint (not fully initilizated) VM Mutex/Monitor currently owned by a thread: None Heap [error occurred during error reporting, step 190, id 0xb] Dynamic libraries: 06000000-06412000 r-xp 00511000 VM Arguments: java_command: Launcher Type: SUN_STANDARD Environment Variables: PATH=/sbin:/bin:/usr/sbin:/usr/bin LD_LIBRARY_PATH=/usr/local/linux-sun-jdk1.6.0/jre/lib/i386/client:/usr/local/linux-sun-jdk1.6.0/jre/lib/i386:/usr/local/linux-sun-jdk1.6.0/jre/../lib/i386 SHELL=/usr/local/bin/bash Signal Handlers: SIGSEGV: [libjvm.so+0x3aea90], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x3aea90], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x304e70], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGPIPE: [libjvm.so+0x304e70], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x304e70], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x43807efb, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x306e80], sa_mask[0]=0x00000000, sa_flags=0x10000004 SIGHUP: SIG_DFL, sa_mask[0]=0x43807efb, sa_flags=0x00000000 SIGINT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGTERM: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x306e80], sa_mask[0]=0x00000000, sa_flags=0x10000004 --------------- S Y S T E M --------------- OS:Fedora Core release 4 (Stentz) uname:Linux 2.6.16 FreeBSD 7.0-CURRENT #0: Sat Feb 3 14:13:54 EST 2007 i686 libc:glibc 2.3.6 NPTL 2.3.6 rlimit: STACK 65536k, CORE infinity, NPROC 5547, NOFILE 11095, AS infinity load average:0.03 0.11 0.11 CPU:total 1 Memory: 4k page, physical 1035656k(998948k free), swap 2097152k(2097152k free) vm_info: Java HotSpot(TM) Client VM (1.6.0-b105) for linux-x86, built on Nov 29 2006 01:24:38 by "java_re" with gcc 3.2.1-7a (J2SE release) linux-sun-jdk1.5.0 ------------------ # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x280ea75a, pid=1842, tid=900594608 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode) # Problematic frame: # C [libc.so.6+0x5f75a] __libc_free+0x5a # --------------- T H R E A D --------------- Current thread (0x080b5d30): VMThread [id=1843] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 Registers: EAX=0x00000000, EBX=0x281a3ff4, ECX=0x00000001, EDX=0x35adf204 ESP=0x35adf1a0, EBP=0x35adf1a8, ESI=0x00000000, EDI=0x35adf1e0 EIP=0x280ea75a, CR2=0x00000000, EFLAGS=0x00010202 Top of Stack: (sp=0x35adf1a0) 0x35adf1a0: 28082ff4 35adf244 35adf1b8 2807b355 0x35adf1b0: 35adf204 28528bcc 35adf228 28431962 0x35adf1c0: 35adf1e0 35adf244 00000000 00000000 0x35adf1d0: 080b6940 080b6928 00035adf 35ae0000 0x35adf1e0: 00000000 00000000 00000009 00001000 0x35adf1f0: 35ae0000 00080000 35adf204 00000000 0x35adf200: 00000004 00000000 00000000 00000000 0x35adf210: 2807d0ce 00000000 00000000 28528bcc Instructions: (pc=0x280ea75a) 0x280ea74a: b9 01 00 00 00 65 83 3d 0c 00 00 00 00 3e 74 01 0x280ea75a: f0 0f b1 0e 0f 85 27 42 00 00 52 56 e8 09 f7 ff Stack: [0x00000000,0x00000000), sp=0x35adf1a0, free space=879484k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x5f75a] __libc_free+0x5a C [libpthread.so.0+0x6355] pthread_attr_destroy+0x21 V [libjvm.so+0x288962] V [libjvm.so+0x2886a3] V [libjvm.so+0x2f49ac] V [libjvm.so+0x2f621d] V [libjvm.so+0x2ec1dc] V [libjvm.so+0x326cde] V [libjvm.so+0x286e88] C [libpthread.so.0+0x59b3] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x0805c7f0 JavaThread [_thread_blocked, id=1842] Other Threads: =>0x080b5d30 VMThread [id=1843] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 576K, used 10K [0x2d9e0000, 0x2da80000, 0x2dec0000) eden space 512K, 2% used [0x2d9e0000, 0x2d9e2908, 0x2da60000) from space 64K, 0% used [0x2da60000, 0x2da60000, 0x2da70000) to space 64K, 0% used [0x2da70000, 0x2da70000, 0x2da80000) tenured generation total 1408K, used 0K [0x2dec0000, 0x2e020000, 0x319e0000) the space 1408K, 0% used [0x2dec0000, 0x2dec0000, 0x2dec0200, 0x2e020000) compacting perm gen total 8192K, used 423K [0x319e0000, 0x321e0000, 0x359e0000) the space 8192K, 5% used [0x319e0000, 0x31a49d68, 0x31a49e00, 0x321e0000) No shared spaces configured. Dynamic libraries: 08048000-08057000 r-xp 00010000 VM Arguments: java_command: Launcher Type: SUN_STANDARD Environment Variables: PATH=/sbin:/bin:/usr/sbin:/usr/bin LD_LIBRARY_PATH=/usr/local/linux-sun-jdk1.5.0/jre/lib/i386/client:/usr/local/linux-sun-jdk1.5.0/jre/lib/i386:/usr/local/linux-sun-jdk1.5.0/jre/../lib/i386 SHELL=/usr/local/bin/bash Signal Handlers: SIGSEGV: [libjvm.so+0x31fae0], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x31fae0], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x2852b0], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGPIPE: [libjvm.so+0x2852b0], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x2852b0], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x43807efb, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x287700], sa_mask[0]=0x00000000, sa_flags=0x10000004 SIGHUP: SIG_DFL, sa_mask[0]=0x43807efb, sa_flags=0x00000000 SIGINT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGTERM: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 --------------- S Y S T E M --------------- OS:Fedora Core release 4 (Stentz) uname:Linux 2.6.16 FreeBSD 7.0-CURRENT #0: Sat Feb 3 14:13:54 EST 2007 i686 libc:glibc 2.3.6 NPTL 2.3.6 rlimit: STACK 65536k, CORE infinity, NPROC 5547, NOFILE 11095, AS infinity load average:0.09 0.14 0.12 CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht Memory: 4k page, physical 1035656k(1000432k free), swap 2097152k(2097152k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_07-b03) for linux-x86, built on May 3 2006 01:46:28 by java_re with gcc 3.2.1-7a (J2SE release) -- Regards Peter As always the organisation disavows knowledge of this email From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 3 11:31:49 2007 Return-Path: X-Original-To: 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 227A116A403 for ; Sat, 3 Feb 2007 11:31:49 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id AE6C213C4A5 for ; Sat, 3 Feb 2007 11:31:48 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l13BVkR4068138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 Feb 2007 12:31:46 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l13BVk1Q068137; Sat, 3 Feb 2007 12:31:46 +0100 (CET) Date: Sat, 3 Feb 2007 12:31:46 +0100 From: Divacky Roman To: Peter Kostouros Message-ID: <20070203113145.GA67149@stud.fit.vutbr.cz> References: <45C46416.3020406@melbpc.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C46416.3020406@melbpc.org.au> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: 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 List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2007 11:31:49 -0000 On Sat, Feb 03, 2007 at 09:29:42PM +1100, Peter Kostouros wrote: > 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. > > The error files generated for the command > > java -version > > for the above mentioned java environments are shown below. > > Let me know if I can provide further information. can you please try with this patch: www.stud.fit.vutbr.cz/~xdivac02/linuxolator010207.patch and possibly with this one too www.stud.fit.vutbr.cz/~xdivac02/linux_futex.patch (try the first one, then the second one and then both applied) and tell me if there's any difference (I mean.. different place where it sigsegvs etc.) thnx a lot roman From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 3 12:20:09 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 5B3DB16A400 for ; Sat, 3 Feb 2007 12:20:09 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 0A31513C49D for ; Sat, 3 Feb 2007 12:20:08 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5F1D5.dip.t-dialin.net [84.165.241.213]) by redbull.bpaserver.net (Postfix) with ESMTP id 3A4E02E194; Sat, 3 Feb 2007 13:32:08 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id AE0725B5482; Sat, 3 Feb 2007 13:20:01 +0100 (CET) Date: Sat, 3 Feb 2007 13:20:01 +0100 From: Alexander Leidinger To: freebsd-emulation@freebsd.org Message-ID: <20070203132001.78feff89@Magellan.Leidinger.net> In-Reply-To: <45C46416.3020406@melbpc.org.au> References: <45C46416.3020406@melbpc.org.au> X-Mailer: Claws Mail 2.7.2 (GTK+ 2.10.9; i686-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: kpeter@melbpc.org.au 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 List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2007 12:20:09 -0000 Quoting Peter Kostouros (Sat, 03 Feb 2007 21:29:42 +1100): > Let me know if I can provide further information. Are there some messages on the console (also visible in the output of dmesg)? Bye, Alexander. -- Leela: Bender, why are you spending so much time in the bathroom? Are you jacking on in there? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Feb 3 14:42:45 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 2654516A401 for ; Sat, 3 Feb 2007 14:42:45 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from vscan02.westnet.com.au (vscan02.westnet.com.au [203.10.1.132]) by mx1.freebsd.org (Postfix) with ESMTP id CD09E13C48D for ; Sat, 3 Feb 2007 14:42:44 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 5B27811CF60; Sat, 3 Feb 2007 23:14:00 +0900 (WST) Received: from vscan02.westnet.com.au ([127.0.0.1]) by localhost (vscan02.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01286-11; Sat, 3 Feb 2007 22:14:00 +0800 (WST) Received: from [192.168.0.2] (dsl-124-150-115-44.vic.westnet.com.au [124.150.115.44]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vscan02.westnet.com.au (Postfix) with ESMTP id 033AA11CF5F; Sat, 3 Feb 2007 23:13:59 +0900 (WST) Message-ID: <45C498A7.9040806@melbpc.org.au> Date: Sun, 04 Feb 2007 01:13:59 +1100 From: Peter Kostouros Organization: Melbourne PC User Group User-Agent: Thunderbird 1.5.0.9 (X11/20070101) MIME-Version: 1.0 To: Alexander Leidinger References: <45C46416.3020406@melbpc.org.au> <20070203132001.78feff89@Magellan.Leidinger.net> In-Reply-To: <20070203132001.78feff89@Magellan.Leidinger.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Sat, 03 Feb 2007 14:42:45 -0000 Alexander Leidinger wrote: > Quoting Peter Kostouros (Sat, 03 Feb 2007 21:29:42 +1100): > > >> Let me know if I can provide further information. >> > > Are there some messages on the console (also visible in the output of > dmesg)? > > Other than an indication of the process exiting on signal (6), no. Note, I used to get an LOR (emuldata lock @ ... linux_emul.c:67 similar to that recently reported) upon first invocation of a java application, but have not seen that particular LOR since my most recent upgrade. > Bye, > Alexander. > > -- Regards Peter As always the organisation disavows knowledge of this email