From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 28 20:59:54 2007 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 0A26F16A418; Sun, 28 Oct 2007 20:59:54 +0000 (UTC) (envelope-from valera@chikalov.dp.ua) Received: from halik.com.ua (halik.com.ua [193.178.146.121]) by mx1.freebsd.org (Postfix) with ESMTP id 97C6313C480; Sun, 28 Oct 2007 20:59:53 +0000 (UTC) (envelope-from valera@chikalov.dp.ua) Received: from tiger.novakom.dp.ua (77-109-17-130.dynamic.peoplenet.ua [77.109.17.130]) by halik.com.ua (Postfix) with ESMTP id F327F5C07D; Sun, 28 Oct 2007 22:59:47 +0200 (EET) Message-ID: <4724F83F.30503@chikalov.dp.ua> Date: Sun, 28 Oct 2007 22:59:43 +0200 From: "Valery V.Chikalov" User-Agent: Thunderbird 2.0.0.6 (X11/20070814) MIME-Version: 1.0 To: Roman Divacky References: <4721AB07.20708@novakom.com.ua> <4723A8D6.6020002@chikalov.dp.ua> <20071028112910.GA84830@freebsd.org> <4724CBCA.30500@chikalov.dp.ua> <4724D99C.3080105@chikalov.dp.ua> <20071028184318.GA57240@freebsd.org> <4724EA7B.3010103@chikalov.dp.ua> In-Reply-To: <4724EA7B.3010103@chikalov.dp.ua> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-emulation@freebsd.org Subject: Re: Linux emulation on FreeBSD 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, 28 Oct 2007 20:59:54 -0000 Valery V.Chikalov wrote: > Roman Divacky пишет: >> On Sun, Oct 28, 2007 at 08:49:00PM +0200, Valery V.Chikalov wrote: >>> Valery V.Chikalov wrote: >>>> Roman Divacky wrote: >>>>>> and got something like: >>>>>> >>>>>> Oct 27 19:42:59 tiger kernel: mprotect addr:2a27d000, return 0 >>>>>> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7c1000, return 0 >>>>>> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7cd000, return 0 >>>>>> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7e2000, return 0 >>>>>> Oct 27 19:42:59 tiger kernel: mprotect addr:2a7ef000, return 0 >>>>>> Oct 27 19:43:09 tiger kernel: mprotect addr:55c00000, return 13 >>>>>> Oct 27 19:43:09 tiger kernel: mprotect addr:55c81000, return 13 >>>>>> >>>>>> where 13 is EACCES. >>>>> can you show what are the "prot" and "len" arguments? >> Index: linux_machdep.c >> =================================================================== >> RCS file: /home/ncvs/src/sys/i386/linux/linux_machdep.c,v >> retrieving revision 1.78 >> diff -u -r1.78 linux_machdep.c >> --- linux_machdep.c 20 Jul 2007 08:35:18 -0000 1.78 >> +++ linux_machdep.c 28 Oct 2007 18:42:15 -0000 >> @@ -803,8 +803,10 @@ >> bsd_args.addr = uap->addr; >> bsd_args.len = uap->len; >> bsd_args.prot = uap->prot; >> +#if 0 >> if (bsd_args.prot & (PROT_READ | PROT_WRITE | PROT_EXEC)) >> bsd_args.prot |= PROT_READ | PROT_EXEC; >> +#endif >> return (mprotect(td, &bsd_args)); >> } >> >> >> does this help? > > Unfortunately, no. > > Just for the record: this make mprottect return success, > but oracle coredumps nevertheless. (Sorry for rhyme :-) > But despite of this is a step forward! Oracle server itself is running! Only sqlplus(oracle control utility) and connected client oracle process are coredumping. So now I can start oracle server and ever generate new database. Now I am trying to understand the reasons of this coredumps. They are occurring rather accidental, and for example I must several times try to start oracle to achieve the result. Moreover after some time successful running and serving queries oracle server dump core and stop working too. To make things clear: on this hardware the same oracle and FreeBSD-7.0 (i386) are running perfectly stable. The Linux in both cases the same RedHat-7 (from ports of FreeBSD-5.*). Do I need to use some "linux version" of gdb? Gdb from the base saying me: ===================== bash-2.04$ gdb -c oracle.core `which oracle` GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... warning: A handler for the OS ABI "GNU/Linux" is not built into this ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ is this harmful? Is it possible to fix this? configuration of GDB. Attempting to continue with the default i386 settings. ======================== And "bt" are not looking reasonable. Thank you for the help. Valery.