From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 17 16:34:26 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 97C2E16A417 for ; Mon, 17 Sep 2007 16:34:26 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 5E93813C4A7 for ; Mon, 17 Sep 2007 16:34:26 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4DB4B66765A; Mon, 17 Sep 2007 18:34:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5P84mzPKsFt8; Mon, 17 Sep 2007 18:34:21 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E4F78667634; Mon, 17 Sep 2007 18:34:21 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l8HGYLt5002701; Mon, 17 Sep 2007 18:34:21 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 17 Sep 2007 18:34:21 +0200 From: Roman Divacky To: Boris Samorodov Message-ID: <20070917163421.GA2637@freebsd.org> References: <97026631@srv.sem.ipt.ru> <45189242@srv.sem.ipt.ru> <07746447@srv.sem.ipt.ru> <09509046@srv.sem.ipt.ru> <20070916171044.GA89893@freebsd.org> <66582704@bs1.sp34.ru> <20070916205434.GA70997@freebsd.org> <20070917152625.GA507@freebsd.org> <64815375@srv.sem.ipt.ru> <98735079@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98735079@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, sam Subject: Re: linuxolator problem on i386 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, 17 Sep 2007 16:34:26 -0000 On Mon, Sep 17, 2007 at 08:16:56PM +0400, Boris Samorodov wrote: > On Mon, 17 Sep 2007 20:12:00 +0400 Boris Samorodov wrote: > > > > what about this? www.vlakno.cz/~rdivacky/linux_bsam.patch (it incorporates > > > the previous patch, you might want to revert the _hlds.patch if this complete > > > patch does not work) > > > Way, that seems to help! > > Hm, I was too quick to respond. Sorry. > > Actually it does not core only because getdents() does not work: > ----- > 16857 hlds_i686 NAMI "/compat/linux/usr/home/bsam/hlds_l/./cstrike/sound/weapons/reload1.wav" > 16857 hlds_i686 NAMI "/usr/home/bsam/hlds_l/./cstrike/sound/weapons/reload1.wav" > 16857 hlds_i686 RET linux_stat64 JUSTRETURN > 16857 hlds_i686 CALL linux_open(0xbfbece08,0x18800,0xbfbecd34) > 16857 hlds_i686 NAMI "/compat/linux/usr/home/bsam/hlds_l/./cstrike/sound/weapons" > 16857 hlds_i686 NAMI "/usr/home/bsam/hlds_l/./cstrike/sound/weapons" > 16857 hlds_i686 RET linux_open 6 > 16857 hlds_i686 CALL linux_fstat64(0x6,0xbfbecd34,0x281f0ff4) > 16857 hlds_i686 RET linux_fstat64 0 > 16857 hlds_i686 CALL linux_fcntl64(0x6,0x2,0x1) > 16857 hlds_i686 RET linux_fcntl64 0 > 16857 hlds_i686 CALL linux_getdents(0x6,0x8da532c,0x1000) > 16857 hlds_i686 RET linux_getdents -1 errno 14 Bad address > 16857 hlds_i686 CALL close(0x6) > 16857 hlds_i686 RET close 0 > 16857 hlds_i686 CALL linux_stat64(0xbfbecec4,0xbfbecdc4,0x281f0ff4) > 16857 hlds_i686 NAMI "/compat/linux/usr/home/bsam/hlds_l/./valve/sound/weapons/reload1.wav" > 16857 hlds_i686 NAMI "/usr/home/bsam/hlds_l/./valve/sound/weapons/reload1.wav" > 16857 hlds_i686 RET linux_stat64 JUSTRETURN > 16857 hlds_i686 CALL linux_open(0xbfbece08,0x18800,0xbfbecd34) > 16857 hlds_i686 NAMI "/compat/linux/usr/home/bsam/hlds_l/./valve/sound/weapons" > 16857 hlds_i686 NAMI "/usr/home/bsam/hlds_l/./valve/sound/weapons" > 16857 hlds_i686 RET linux_open 6 > 16857 hlds_i686 CALL linux_fstat64(0x6,0xbfbecd34,0x281f0ff4) > 16857 hlds_i686 RET linux_fstat64 0 > 16857 hlds_i686 CALL linux_fcntl64(0x6,0x2,0x1) > 16857 hlds_i686 RET linux_fcntl64 0 > 16857 hlds_i686 CALL linux_getdents(0x6,0x8da532c,0x1000) > 16857 hlds_i686 RET linux_getdents -1 errno 14 Bad address show me the args->dirent... easily done by adding printf("XXX: %p\n", args->dirent); to the getdents_common() code (in the if (args->dirent) block)