From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 23 18:04:08 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E18A416A4DD for ; Wed, 23 Aug 2006 18:04:08 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA1F343D69 for ; Wed, 23 Aug 2006 18:04:05 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.177]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7NI3kV5074803; Wed, 23 Aug 2006 22:03:56 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GFx3h-0000BH-HL; Wed, 23 Aug 2006 22:02:33 +0400 To: Divacky Roman References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> <20060823111913.GA65314@stud.fit.vutbr.cz> <71714322@bsam.ru> <20060823152355.GA78488@stud.fit.vutbr.cz> <91393073@bsam.ru> <48512653@bsam.ru> <20060823174230.GA83189@stud.fit.vutbr.cz> From: Boris Samorodov Date: Wed, 23 Aug 2006 22:02:33 +0400 In-Reply-To: <20060823174230.GA83189@stud.fit.vutbr.cz> (Divacky Roman's message of "Wed, 23 Aug 2006 19:42:31 +0200") Message-ID: <03876742@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: amd64 tls 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: Wed, 23 Aug 2006 18:04:09 -0000 On Wed, 23 Aug 2006 19:42:31 +0200 Divacky Roman wrote: > On Wed, Aug 23, 2006 at 08:03:14PM +0400, Boris Samorodov wrote: > > On Wed, 23 Aug 2006 19:56:14 +0400 Boris Samorodov wrote: > > > > > No it compiles OK. > > > > Should be "Now it compiles OK." > does the TLS seem to work? (osrelease=2.6.16 and chroot /compat/linux /bin/bash) Seems, no. Here is the debug log: ----- Aug 23 21:50:10 bsam kernel: linux(875): brk(0) Aug 23 21:50:10 bsam kernel: linux(875): newuname(*) Aug 23 21:50:10 bsam kernel: linux(875): access(/etc/ld.so.preload, 4) Aug 23 21:50:10 bsam kernel: linux(875): open(/etc/ld.so.cache, 0x0, 0x1) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 12301, 1, 0x00000002, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 12301, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28104000) Aug 23 21:50:10 bsam kernel: linux(875): open(/lib/libtermcap.so.2, 0x0, 0x0) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 14632, 5, 0x00000802, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 14632, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28108000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x2810b000, 4096, 3, 0x00000812, 3, 8192) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x2810b000, 4096, 7, 0x00000812, 3, 0x2000) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810b000) Aug 23 21:50:10 bsam kernel: linux(875): open(/lib/libdl.so.2, 0x0, 0x1) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 4096, 3, 0x00000022, -1, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 4096, 7, 0x00001002, -1, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810c000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 12408, 5, 0x00000802, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 12408, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810d000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x2810f000, 8192, 3, 0x00000812, 3, 4096) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x2810f000, 8192, 7, 0x00000812, 3, 0x1000) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810f000) Aug 23 21:50:10 bsam kernel: linux(875): open(/lib/libc.so.6, 0x0, 0x1) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 1166300, 5, 0x00000802, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 1166300, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28111000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x28228000, 16384, 3, 0x00000812, 3, 1142784) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x28228000, 16384, 7, 0x00000812, 3, 0x117000) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28228000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x2822c000, 7132, 3, 0x00000032, -1, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x2822c000, 7132, 7, 0x00001012, -1, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2822c000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 4096, 3, 0x00000022, -1, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 4096, 7, 0x00001002, -1, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2822e000) Aug 23 21:50:10 bsam kernel: linux(875): set_thread_area(-1, 2822e6c0, fffff, 1, 0, 0, 1, 0, 1 Aug 23 21:50:10 bsam kernel: ) Aug 23 21:50:10 bsam kernel: Segment created in set_thread_area: lobase: 22e6c0, hibase: 28, lolimit: ffff, hilimit: f, type: 18, dpl: 3, p: 1, xx: 1, def32: 1, gran: 1 Aug 23 21:50:10 bsam kernel: pid 875 (bash), uid 0: exited on signal 11 (core dumped) ----- This is -CURRENT amd64 as of yesterday. Some linux_ipc() code is reverted, but this fact shouldn't change the result. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve