From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 2 20:56:36 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 315A0106564A; Tue, 2 Sep 2008 20:56:36 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id EB90F8FC14; Tue, 2 Sep 2008 20:56:35 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id m82KuXIt095859; Tue, 2 Sep 2008 15:56:33 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Tue, 2 Sep 2008 15:56:33 -0500 (CDT) From: "Sean C. Farley" To: Chagin Dmitry In-Reply-To: <20080830113448.GA2152@dchagin.dialup.corbina.ru> Message-ID: References: <20080830113448.GA2152@dchagin.dialup.corbina.ru> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: freebsd-emulation@FreeBSD.org Subject: Re: Linux applications core if running (k)qemu 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, 02 Sep 2008 20:56:36 -0000 On Sat, 30 Aug 2008, Chagin Dmitry wrote: > On Fri, Aug 29, 2008 at 05:29:09PM -0500, Sean C. Farley wrote: >> I am having trouble with kqemu.ko and linux.ko. If I run qemu with >> the following command, Linux applications (chroot, acroread, ls) will >> start core dumping: >> qemu-system-x86_64 -m 512 \ >> -drive file=/usr/QEMU/WinXP/c.img,if=ide,media=disk -boot c \ >> -std-vga -parallel none -serial none -monitor stdio \ >> -net nic,model=e1000 -net tap,ifname=tap0,script=no -localtime >> >> Loading kqemu.ko does not cause the problem, but the cores start a >> little after WinXP starts running. Unloading kqemu.ko does not help; >> the cores still happen but more randomly. I even tried unloading all >> linux modules and reloading them without luck. It takes a reboot. >> >> Packages: >> qemu-devel-0.9.1s.20080620_1 >> kqemu-kmod-devel-1.4.0.p1 >> linux_base-f8-8_4 >> >> sysctl: >> compat.linux.osrelease: 2.6.16 >> >> dmesg: >> kqemu version 0x00010400 >> kqemu: KQEMU installed, max_locked_mem=1792492kB. >> >> System is 7-STABLE as of r181963 with or without the patch to fix RT >> signals from Chagin. > > Interestingly... Sean, can you provide ktrace/kdump log of coring > apps? thnx! Here they are (good and bad): http://www.farley.org/freebsd/tmp/linuxulator_vs_kqemu/ The good trace is after the bad trace. I just kept running ktrace /compat/linux/bin/date over and over until I got a good trace. Before loading kqemu and running qemu, there were no core dumps. Also, I compared two bad traces and they were basically the same except for PID and a couple of addresses (still very close in value). Sean -- scf@FreeBSD.org