Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2006 22:02:33 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        emulation@freebsd.org
Subject:   Re: amd64 tls
Message-ID:  <03876742@bsam.ru>
In-Reply-To: <20060823174230.GA83189@stud.fit.vutbr.cz> (Divacky Roman's message of "Wed, 23 Aug 2006 19:42:31 %2B0200")
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03876742>