From owner-freebsd-emulation@FreeBSD.ORG Sat May 10 21:12:20 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 DD4CE106567C for ; Sat, 10 May 2008 21:12:20 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 6371B8FC1B for ; Sat, 10 May 2008 21:12:20 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by ug-out-1314.google.com with SMTP id q2so440292uge.37 for ; Sat, 10 May 2008 14:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject:in-reply-to:message-id:references:user-agent:mime-version:content-type:from; bh=Dn4lVnUIl0CDZ3TnOMR2k/Gv7uy0QmfVV+ptnZUFJqk=; b=DQAfQZOcau7mEJzFGl88kzT9WybetfOBxlFX6xQb6HGYXQGpfYVBk35L5czPwPjsp84JBy/tKLWBskqk8EzsUuilYAIGrBPpuXIEybGo/Ogr2agZnSacra/g2m1Dgru77V6AofukEVtEBvU2QA5g+cQ0yI2V41JXbPSP0D7Xk6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:in-reply-to:message-id:references:user-agent:mime-version:content-type:from; b=uLg2tLFaIP1yhnemSN2jcV4URLDLBu2ybX3xePslWnxE74r0xbqK2bQV7fOTl0OrNKGApEYLeUJ7AeyIMszNTEGf9msmcwDD9Bx0pf9RM3a76lAKI2vOD0ehDN5wBTetRFRSMlb6oZz5CvHqP2zCfAgFcFtF+HwZ6OxGFECRRiA= Received: by 10.67.19.17 with SMTP id w17mr3081387ugi.33.1210453939225; Sat, 10 May 2008 14:12:19 -0700 (PDT) Received: from ora.chd.net ( [81.200.6.196]) by mx.google.com with ESMTPS id g9sm11925224gvc.0.2008.05.10.14.12.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 May 2008 14:12:16 -0700 (PDT) Date: Sun, 11 May 2008 01:12:25 +0400 (MSD) To: Roman Divacky In-Reply-To: <20080510154605.GA83247@freebsd.org> Message-ID: References: <20080508170819.GA68720@freebsd.org> <20080508172503.GA69463@freebsd.org> <20080508195310.GA74606@freebsd.org> <20080508210641.GA81647@freebsd.org> <20080510105008.GA71225@freebsd.org> <20080510154605.GA83247@freebsd.org> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Chagin Dmitry Cc: freebsd-emulation@freebsd.org, Chagin Dmitry 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:12:20 -0000 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 kernel: frame->tf_rip: 0x420608 kernel: frame->tf_rcx: 0x4205e5 kernel: frame->tf_rsp: 0x7fffffffd810 kernel: frame->tf_rbp: 0xffe00 kernel: frame->tf_rbx: 0x6cdbf0 kernel: frame->tf_rax: 0x88 kernel: frame->tf_addr: 0xffe10 ups ))) kernel: frame->tf_cs: 0x2b kernel: frame->tf_ss: 0x23 -------> here we are die 420608: 0f b7 45 10 movzwl 0x10(%rbp),%eax 42060c: 48 8d 5d 12 lea 0x12(%rbp),%rbx 420610: 48 89 df mov %rbx,%rdi this code is in function search_dir in elf/ldconfig.c (glibc) here i think that is it :) -- Have fun! chd