From owner-freebsd-emulation@FreeBSD.ORG Thu Jul 24 09:08:02 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 65CFE1065673 for ; Thu, 24 Jul 2008 09:08:02 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by mx1.freebsd.org (Postfix) with ESMTP id EECFE8FC18 for ; Thu, 24 Jul 2008 09:08:01 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so1108220wra.27 for ; Thu, 24 Jul 2008 02:08:01 -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=njMCdJVVsDgPIlIpUbbyFrXsg/Cu2vfNdj9SeOqFymI=; b=aOswWi6mJfJw/NyAnmHLyFbIi/EQ1imbPzFWa77JSN7X1iMpsDTJQ7HCem03uipiGW ygc0UxRGOyfOA01Y2vakOvGjuBhot7cPCHfUkImWpfMn/0mKZ3alDEfG6TcLQTWuJBaV ma2MR9FBxXKPZxjRdZNH65rK0CZtRjbPTob6Q= 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=tDcqLlNRv7hT1uYjZRhNItufk64yMy+/XrxRwJjjpQqmAZ4533l+T2BgUc9jFdtBGy 1XSt4sU7AQicMll3+5Ocw5QZUY9Dx/kG3ZWlHv3FcPLhmqaF64l96VNaIDInx1xfxXti LYnV4s6cMeJ6SWkQsTExevydAs5CNtkRLABFs= Received: by 10.90.87.7 with SMTP id k7mr33995agb.47.1216890481249; Thu, 24 Jul 2008 02:08:01 -0700 (PDT) Received: from ora.chd.net ( [78.107.232.239]) by mx.google.com with ESMTPS id o61sm5842238hsc.17.2008.07.24.02.07.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Jul 2008 02:08:00 -0700 (PDT) Date: Thu, 24 Jul 2008 13:06:49 +0400 (MSD) To: Roman Divacky In-Reply-To: <20080724084705.GA92703@freebsd.org> Message-ID: References: <20080724084705.GA92703@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: linuxulator64 status 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: Thu, 24 Jul 2008 09:08:02 -0000 On Thu, 24 Jul 2008, Roman Divacky wrote: > On Thu, Jul 24, 2008 at 10:30:41AM +0400, Chagin Dmitry wrote: >> >> hi! >> I'm not subscribed on fbsd-current@, therefore I shall answer here... >> >> It is possible to tell that it works, now I investigate LTP results and >> search that does not work. >> >> ps. signals, dynamic loading of libs works. >> 100% know that there are problems with getdents syscall, at least at >> x86_64. > > I recall you telling me about glibc using getdents as readdir or something > like that.. have you progressed on this front? > Yesterday I tried to compile glibc-2.7 in x86_64 emulation, look that happens: *** glibc detected *** gmake: double free or corruption (!prev): 0x0000000000693 d20 *** ======= Backtrace: ========= /lib64/libc.so.6[0x8008b4832] /lib64/libc.so.6(cfree+0x8c)[0x8008b7f2c] gmake[0x41d463] gmake[0x4045d9] gmake[0x404e3f] gmake[0x4082b7] Below a piece of ktrace dump: 29143 make CALL linux_open(0x7fffffffc9d0,O_NONBLOCK|O_DIRECTORY|O_CLOEXEC ,0x62fd70) 29143 make NAMI "string" 29143 make RET linux_open 5 29143 make CALL linux_newfstat(0x5,0x7fffffffc7d0) 29143 make STRU struct stat {dev=98, ino=3203960, mode=drwxrwxr-x , nlink= 3, uid=500, gid=500, rdev=12856072, atime=1216839073, stime=1192706475, ctime=12 16833980, birthtime=1192706475, size=3072, blksize=4096, blocks=8, flags=0x0 } 29143 make RET linux_newfstat 0 29143 make CALL linux_fcntl(0x5,F_SETFD,FD_CLOEXEC) 29143 make RET linux_fcntl 0 29143 make CALL linux_getdents(0x5,0x692e78,0x1000) !29143 make RET linux_getdents 4096/0x1000 29143 make CALL linux_open(0x80096312c,O_RDWR|O_NOCTTY|O_NONBLOCK,0x12) 29143 make NAMI "/compat/linux/dev/tty" 29143 make NAMI "/dev/tty" 29143 make RET linux_open 6 29143 make CALL writev(0x6,0x7fffffffbf60,0x7) 29143 make GIO fd 6 wrote 109 bytes "*** glibc detected *** /compat/linux/usr/bin/make: double free or corr\ uption (!prev): 0x0000000000693e80 *** getdents must be called at least twice, the last getdents call must return 0. You can try this on i386 :) > I am more than willing to join you in trying to see whats going on if this > is the main obstacle on getting linuxulator64 commited... > > I hope we can prepare a set of patches to commit to -current so it gets > integrated. I propose to make another branch devoted to integrating your > work to -current > -- Have fun! chd