From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 20 15:48:41 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C65516A4DA for ; Sun, 20 Aug 2006 15:48: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 4B9A943D66 for ; Sun, 20 Aug 2006 15:46:52 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.154]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7KFkQwL061732; Sun, 20 Aug 2006 19:46:36 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GEpTw-0000BY-TR; Sun, 20 Aug 2006 19:45:00 +0400 To: Divacky Roman References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> <20060820081421.GA52836@stud.fit.vutbr.cz> <94953619@bsam.ru> From: Boris Samorodov Date: Sun, 20 Aug 2006 19:45:00 +0400 In-Reply-To: <94953619@bsam.ru> (Boris Samorodov's message of "Sun, 20 Aug 2006 17:28:44 +0400") Message-ID: <80719011@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: Yuri , Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/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: Sun, 20 Aug 2006 15:48:41 -0000 On Sun, 20 Aug 2006 17:28:44 +0400 Boris Samorodov wrote: > On Sun, 20 Aug 2006 10:14:21 +0200 Divacky Roman wrote: > > On Sun, Aug 20, 2006 at 04:53:37AM +0400, Boris Samorodov wrote: > > > On Sat, 19 Aug 2006 14:38:37 +0200 Divacky Roman wrote: > > > > www.stud.fit.vutbr.cz/~xdivac02/amd64.patch > > > > > > > pls tell me if this works (it WONT work with 2.6 kernel because we lack the MD parts) > > > > > > OK, I managed to test the patch on -current amd64. So far I tried > > > acroread, linux-firefox and linux-opera. All of them are core dumping > > > when start. It's a little bit better than without the patch when the > > > system just reboots. > > > > with 2.4 emulation all programs coredump? can you please compile -DDEBUG linuxolator > > and send me (I'd prefer you put it on some web or somethign...) the debug output? > > > > > BTW, after applying the patch I did only make kernel. Seems that it's > > > enough. How can I do it faster? Maybe compile/install a linux kernel > > > module? > > for kernel module you need some patches which are not in -current, just apply > > http://perforce.freebsd.org/fileDiffView.cgi?FSPC=//depot/projects/soc2006/rdivacky%5flinuxolator/kern/link%5felf%5fobj.c&REV=2&ACT=edit > > and "cd /sys/modules/linux && make -DDEBUG && make install" then plain kldload linux should work > > but pls dont forget to -DDEBUG > Here are the results: > ftp://ftp.ipt.ru/pub/amd64 > BTW, bash.core -- it's a result of running acroread. Well, I just notice that -DDEBUG is not respected by make command. I added this option to Makefile [1]: ----- # $FreeBSD: src/sys/modules/linux/Makefile,v 1.68 2006/08/15 13:01:36 netchild Exp $ .if ${MACHINE_ARCH} == "amd64" SFX= 32 CFLAGS+=-DCOMPAT_IA32 -DCOMPAT_LINUX32 -DDEBUG [1] .endif ----- Then I've got: ----- # make ... Warning: Object directory not changed from original /usr/src/sys/modules/linux cc -O2 -fno-strict-aliasing -pipe -DCOMPAT_IA32 -DCOMPAT_LINUX32 -DDEBUG -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I- -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -c /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c: In function `linux_clone': /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:504: warning: cast from pointer to integer of different size /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size *** Error code 1 Stop in /usr/src/sys/modules/linux. ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve