From owner-freebsd-emulation@FreeBSD.ORG Mon Dec 10 16:40:02 2007 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 154F516A46C for ; Mon, 10 Dec 2007 16:40:02 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 81B0813C45A for ; Mon, 10 Dec 2007 16:40:00 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so2487902uge for ; Mon, 10 Dec 2007 08:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=G9/0Xt0cUA2+V/Bira7JN0XvV3jVXLfQZW+Qv0ZECKg=; b=b6k/21gigM7a0duqfS1gHCXkVuTG4UENenOAyrzRHSkLnpuWk5yrHXLiHojEwuCRfImJr0iY4sgwT/IJCGtC9Z5jKu3lYD6IflyTHyknskBN5S5z0yo7JvDTnzx/ZoWXIJok1KX5beNLXg63qZcSH79BiF2aMFVOJDdLNuhnmWI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Wlf3hHzaGWt/suMnW/YP6cGftyc40+odj+tSg8OPFTejd79AzC27Lg00QIdlQReOCs/qDmPvZg7Ce+JnC4zwAy7MGM6GQQOWuuhkWoHtECusikZAbq9UiDBlFxnpSsBnasd7ptf0NSvL/f4kb/8cs4B9u30Ea9Y7Vx2qsECPtI0= Received: by 10.66.221.18 with SMTP id t18mr6269767ugg.1197304799028; Mon, 10 Dec 2007 08:39:59 -0800 (PST) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id e32sm4791959fke.2007.12.10.08.39.55 (version=SSLv3 cipher=RC4-MD5); Mon, 10 Dec 2007 08:39:55 -0800 (PST) Message-ID: <475D6C26.8050204@gmail.com> Date: Mon, 10 Dec 2007 19:41:10 +0300 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <4756EBED.6050109@gmail.com> <20071208110538.GA44709@freebsd.org> <475A808D.40005@gmail.com> <20071208113531.GA45695@freebsd.org> <475A887D.20604@gmail.com> In-Reply-To: <475A887D.20604@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: kern/117010 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: Mon, 10 Dec 2007 16:40:02 -0000 sam wrote: > Iam repacked http://cs.udmvt.ru/files/temp/linux_getdents.tar.bz2 > > # tar -tf linux_getdents.tar.bz2 > linux_getdents_static > linux_getdents_dynamic > linux_getdents.c > > try both versions (static & dynamic) > > example of kdump (starting program linux_getdents_static on FreeBSD 8.0-CURRENT/linux_base-fc6) =============start_kdump============== 64099 linux_getdents RET write 22/0x16 64099 linux_getdents CALL write(0x1,0x280c3000,0x16) 64099 linux_getdents GIO fd 1 wrote 22 bytes "grenade_hit2.wav.ztmp " 64099 linux_getdents RET write 22/0x16 64099 linux_getdents CALL write(0x1,0x280c3000,0x16) 64099 linux_getdents GIO fd 1 wrote 22 bytes "grenade_hit3.wav.ztmp " 64099 linux_getdents RET write 22/0x16 64099 linux_getdents CALL linux_getdents(0x4,0x80c76a4,0x1000) 64099 linux_getdents RET linux_getdents 0 64099 linux_getdents CALL write(0x1,0x280c3000,0x1) 64099 linux_getdents GIO fd 1 wrote 1 byte " " 64099 linux_getdents RET write 1 64099 linux_getdents CALL write(0x1,0x280c3000,0xb) 64099 linux_getdents GIO fd 1 wrote 11 bytes "Closing... " 64099 linux_getdents RET write 11/0xb 64099 linux_getdents CALL linux_open(0x80a7567,0x902,0) 64099 linux_getdents NAMI "/compat/linux/dev/tty" 64099 linux_getdents NAMI "/dev/tty" 64099 linux_getdents RET linux_open 6 64099 linux_getdents CALL writev(0x6,0xbfbfe3e0,0x7) 64099 linux_getdents GIO fd 6 wrote 91 bytes "*** glibc detected *** ./linux_getdents: double free or corruption (!prev): 0x080c7688 *** " 64099 linux_getdents RET writev 91/0x5b 64099 linux_getdents CALL linux_mmap2(0,0x200000,0,0x4022,0xffffffff,0) 64099 linux_getdents RET linux_mmap2 671891456/0x280c4000 64099 linux_getdents CALL munmap(0x280c4000,0x3c000) 64099 linux_getdents RET munmap 0 64099 linux_getdents CALL munmap(0x28200000,0xc4000) 64099 linux_getdents RET munmap 0 64099 linux_getdents CALL linux_mprotect(0x28100000,0x21000,0x3) 64099 linux_getdents RET linux_mprotect 0 64099 linux_getdents CALL write(0x6,0x80a7570,0x1d) 64099 linux_getdents GIO fd 6 wrote 29 bytes "======= Backtrace: ========= " 64099 linux_getdents RET write 29/0x1d 64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3) 64099 linux_getdents GIO fd 6 wrote 12 bytes "[0x80515fe] " 64099 linux_getdents RET writev 12/0xc 64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3) 64099 linux_getdents GIO fd 6 wrote 12 bytes "[0x8054cdb] " 64099 linux_getdents RET writev 12/0xc 64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3) 64099 linux_getdents GIO fd 6 wrote 12 bytes "[0x80564b8] " 64099 linux_getdents RET writev 12/0xc 64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3) 64099 linux_getdents GIO fd 6 wrote 12 bytes "[0x804828b] " 64099 linux_getdents RET writev 12/0xc 64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3) 64099 linux_getdents GIO fd 6 wrote 12 bytes "[0x80484ab] " 64099 linux_getdents RET writev 12/0xc 64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3) 64099 linux_getdents GIO fd 6 wrote 12 bytes "[0x8048151] " 64099 linux_getdents RET writev 12/0xc 64099 linux_getdents CALL write(0x6,0x80a758e,0x1d) 64099 linux_getdents GIO fd 6 wrote 29 bytes "======= Memory map: ======== " 64099 linux_getdents RET write 29/0x1d 64099 linux_getdents CALL linux_open(0x80a75ac,0,0x1d) 64099 linux_getdents NAMI "/compat/linux/proc/self/maps" 64099 linux_getdents NAMI "/compat/linux" 64099 linux_getdents NAMI "/compat/linux/proc/self/maps" 64099 linux_getdents RET linux_open 8 64099 linux_getdents CALL read(0x8,0xbfbfe4f4,0x400) 64099 linux_getdents GIO fd 8 read 326 bytes "08048000-080c3000 r-xp 0008d000 00:00 2143242 /usr/home/temp/linux_getdents 080c3000-080c6000 rw-p 00025000 00:00 0 080c6000-080e8000 rwxp 00025000 00:00 0 280c3000-280c4000 rwxp 0013d000 00:00 0 28100000-28121000 rwxp 0013d000 00:00 0 28121000-28200000 ---p 0013d000 00:00 0 bfbe0000-bfc00000 rwxp 00020000 00:00 0 " 64099 linux_getdents RET read 326/0x146 64099 linux_getdents CALL write(0x6,0xbfbfe4f4,0x146) 64099 linux_getdents GIO fd 6 wrote 326 bytes "08048000-080c3000 r-xp 0008d000 00:00 2143242 /usr/home/temp/linux_getdents 080c3000-080c6000 rw-p 00025000 00:00 0 080c6000-080e8000 rwxp 00025000 00:00 0 280c3000-280c4000 rwxp 0013d000 00:00 0 28100000-28121000 rwxp 0013d000 00:00 0 28121000-28200000 ---p 0013d000 00:00 0 bfbe0000-bfc00000 rwxp 00020000 00:00 0 " 64099 linux_getdents RET write 326/0x146 64099 linux_getdents CALL read(0x8,0xbfbfe4f4,0x400) 64099 linux_getdents GIO fd 8 read 0 bytes "" 64099 linux_getdents RET read 0 64099 linux_getdents CALL close(0x8) 64099 linux_getdents RET close 0 64099 linux_getdents CALL linux_rt_sigprocmask(0x1,0xbfbfe344,0,0x8) 64099 linux_getdents RET linux_rt_sigprocmask 0 64099 linux_getdents CALL linux_gettid 64099 linux_getdents RET linux_gettid 64099/0xfa63 64099 linux_getdents CALL linux_tgkill(0xfa63,0xfa63,0x6) 64099 linux_getdents RET linux_tgkill 0 64099 linux_getdents PSIG SIGIOT SIG_DFL 64099 linux_getdents NAMI "linux_getdents.core" =============end_kdump============== /Vladimir Ermakov