From owner-freebsd-emulation@FreeBSD.ORG Sat May 10 21:20:31 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 982A6106567D for ; Sat, 10 May 2008 21:20:31 +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 170098FC15 for ; Sat, 10 May 2008 21:20:25 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id AAD3967C346; Sat, 10 May 2008 23:19:52 +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 kbiHvETN97SP; Sat, 10 May 2008 23:19:51 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 6304567C28D; Sat, 10 May 2008 23:19:51 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m4ALJpOZ031682; Sat, 10 May 2008 23:19:51 +0200 (CEST) (envelope-from rdivacky) Date: Sat, 10 May 2008 23:19:51 +0200 From: Roman Divacky To: Chagin Dmitry Message-ID: <20080510211951.GA31390@freebsd.org> References: <20080508172503.GA69463@freebsd.org> <20080508195310.GA74606@freebsd.org> <20080508210641.GA81647@freebsd.org> <20080510105008.GA71225@freebsd.org> <20080510154605.GA83247@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: [patch] linux-x86-64 (for comments) 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, 10 May 2008 21:20:31 -0000 On Sun, May 11, 2008 at 01:12:25AM +0400, Chagin Dmitry wrote: > On Sat, 10 May 2008, Roman Divacky wrote: > > >>now /compat/linux/bin/pwd exited without SIGSEGV, but on former can't > >>load libc > > > >please... post more technical details if you want us to help you. if you > >mean this as "blog" entry only it's fine as it is :) but I suggest to > >establish an official blog (ask flz@ about one) for this announcements :) > > > > ooo, no blog ) > about technical details: > now problem in getdents syscall's family > trace of ldconfig look like this > > kernel: linux(26702): open(/lib, 0x90800, 0x6bdae0) > kernel: linux(26702): open returns error 0 > kernel: retval[0]: 0x3 / 3 > kernel: linux(26702): newfstat(3, *) > kernel: retval[0]: 0x0 / 0 > kernel: linux(26702): fcntl(3, 00000001, *) > kernel: retval[0]: 0x0 / 0 > kernel: linux(26702): fcntl(3, 00000002, *) > kernel: retval[0]: 0x0 / 0 > kernel: linux(26702): getdents(3, *, 8192) > kernel: retval[0]: 0x88 / 136 > > kernel: trap! > kernel: frame->tf_trapno: 0x12 + 0, /* 18 T_DIVIDE */ how can integer divide trap happen in "movzwl"? Are trap numbers the same on i386 and on amd64? is this machine-dependant or os-dependant?