Date: Sat, 24 Feb 2007 10:24:46 -0600 From: "Scot Hetzel" <swhetzel@gmail.com> To: "FreeBSD Emulation" <emulation@freebsd.org>, "Jung-uk Kim" <jkim@freebsd.org> Subject: LTP test failures due to latest mmap in linuxolator Message-ID: <790a9fff0702240824v67c5b581j13d492baa10b4590@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --] The latest change to the mmap code breaks the LTP tests on -CURRENT/amd64. The cause of the failure is that mmap is returning with MAP_FAILED. The LTP tests use: bad_addr = mmap(0, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); to check fuctions to see if they can detect a bad address. Runnin the ltp_mmaptest.c returns with the MAP_FAILED error. I have also included the debug output the when linuolator when running this test program. $ uname -a FreeBSD hp010 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Feb 24 00:44:00 CST 2007 swhetzel@hp010:/usr/src/7x/sys-p4/amd64/compile/GENERIC.debug amd64 $ Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. [-- Attachment #2 --] Feb 24 08:13:59 hp010 kernel: linux(1128): brk(0) Feb 24 08:13:59 hp010 kernel: linux(1128): newuname(*) Feb 24 08:13:59 hp010 kernel: linux(1128): access(/etc/ld.so.preload, 4) Feb 24 08:13:59 hp010 kernel: linux(1128): open(/compat/linux/etc/ld.so.cache, 0x0, 0x1) Feb 24 08:13:59 hp010 kernel: linux(1128): open returns error 0 Feb 24 08:13:59 hp010 kernel: linux(1128): fstat64(3, *) Feb 24 08:13:59 hp010 kernel: linux(1128): mmap(0x00000000, 16816, 1, 0x00000002, 3, 0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common(0, 16816, 5, 0x00000802, 3, 0x0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x28064000) Feb 24 08:13:59 hp010 kernel: linux(1128): open(/lib/tls/libc.so.6, 0x0, 0x2805c9e6) Feb 24 08:13:59 hp010 kernel: linux(1128): open returns error 2 Feb 24 08:13:59 hp010 kernel: linux(1128): open(/compat/linux/lib/libc.so.6, 0x0, 0x2805c9e6) Feb 24 08:13:59 hp010 kernel: linux(1128): open returns error 0 Feb 24 08:13:59 hp010 kernel: linux(1128): open(/usr/lib/tls/libc.so.6, 0x0, 0x2805c9e6) Feb 24 08:13:59 hp010 kernel: linux(1128): open returns error 2 Feb 24 08:13:59 hp010 kernel: linux(1128): open(/usr/lib/libc.so.6, 0x0, 0x2805c9e6) Feb 24 08:13:59 hp010 kernel: linux(1128): open returns error 2 Feb 24 08:13:59 hp010 kernel: linux(1128): open(/lib/obsolete/linuxthreads/tls/libc.so.6, 0x0, 0x2805c9e6) Feb 24 08:13:59 hp010 kernel: linux(1128): open returns error 2 Feb 24 08:13:59 hp010 kernel: linux(1128): open(/compat/linux/lib/obsolete/linuxthreads/libc.so.6, 0x0, 0x2805c9e6) Feb 24 08:13:59 hp010 kernel: linux(1128): open returns error 0 Feb 24 08:13:59 hp010 kernel: linux(1128): fstat64(3, *) Feb 24 08:13:59 hp010 kernel: linux(1128): mmap(0x00000000, 1174676, 5, 0x00000802, 3, 0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common(0, 1174676, 5, 0x00000802, 3, 0x0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x28069000) Feb 24 08:13:59 hp010 kernel: linux(1128): mmap(0x28182000, 16384, 3, 0x00000812, 3, 1150976) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common(0x28182000, 16384, 7, 0x00000812, 3, 0x119000) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x28182000) Feb 24 08:13:59 hp010 kernel: linux(1128): mmap(0x28186000, 7316, 3, 0x00000032, -1, 0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common(0x28186000, 7316, 7, 0x00001012, -1, 0x0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x28186000) Feb 24 08:13:59 hp010 kernel: linux(1128): mmap(0x00000000, 4096, 3, 0x00000022, -1, 0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common(0, 4096, 7, 0x00001002, -1, 0x0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x28188000) Feb 24 08:13:59 hp010 kernel: linux(1128): mmap(0x00000000, 1, 0, 0x00000022, 0, 0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common(0, 1, 0, 0x00001002, 0, 0x0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common() return: 0x16 (0x00000000) Feb 24 08:13:59 hp010 kernel: linux(1128): fstat64(1, *) Feb 24 08:13:59 hp010 kernel: linux(1128): ioctl(1, 5401, *) Feb 24 08:13:59 hp010 kernel: LINUX: BSD termios structure (input): Feb 24 08:13:59 hp010 kernel: i=00002b02 o=00000003 c=00004b00 l=200005cb ispeed=115200 ospeed=115200 Feb 24 08:13:59 hp010 kernel: c_cc 04 ff ff 08 17 15 12 08 03 1c 1a 19 11 13 16 0f 01 00 14 ff Feb 24 08:13:59 hp010 kernel: LINUX: LINUX termios structure (output): Feb 24 08:13:59 hp010 kernel: i=00002d02 o=00000005 c=000014b2 l=0000aa1b line=0 Feb 24 08:13:59 hp010 kernel: c_cc 03 1c 08 15 04 00 01 00 11 13 1a 00 12 0f 17 16 00 00 00 Feb 24 08:13:59 hp010 kernel: linux(1128): mmap(0x00000000, 4096, 3, 0x00000022, -1, 0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common(0, 4096, 7, 0x00001002, -1, 0x0) Feb 24 08:13:59 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x28064000) Feb 24 08:13:59 hp010 kernel: linux(1128): exit_group(1)home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0702240824v67c5b581j13d492baa10b4590>
