From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 13 14:06:58 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 16CE216A419 for ; Thu, 13 Dec 2007 14:06:58 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 85FDB13C4D3 for ; Thu, 13 Dec 2007 14:06:57 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so631146nfb.33 for ; Thu, 13 Dec 2007 06:06:56 -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=afGPL+Djq6o8vF7ORcMHfCS67COzdBhY6+TpLkdNG80=; b=YbRwD9DgrGhlltamywM5ws0dV6IQzb651V7+zYbgSVdBb+4JkcZuV8IFSKXPGDKRg3KUaf80lAxi5LvSlZ4zvvrF5ZVomDCEvZq4XqfhEIGA23x4DAGcClcyIAysd7VlCBju0jWK/YaZqh4v9Ht2nPw79qhyye8iXT77kXyjEI4= 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=kQUARXzBxlUmShcKHq+xGxhVpNUnW9xkKmrn96Za0IbCuj+RZU1iW5opIC7tu5th1qlfV0DrTZ208CGFQfj4K+Qx50ilBIb7+7BMEnhxldRXgSeTadrezZR1kkj3FwMGEq2JnZ+SNjM8k0amtset53xCjwKQKvBxEwLBi5MPSTk= Received: by 10.86.36.11 with SMTP id j11mr1850897fgj.34.1197554815440; Thu, 13 Dec 2007 06:06:55 -0800 (PST) Received: from ?192.168.1.185? ( [213.152.137.35]) by mx.google.com with ESMTPS id g28sm10411614fkg.2007.12.13.06.06.52 (version=SSLv3 cipher=RC4-MD5); Thu, 13 Dec 2007 06:06:53 -0800 (PST) Message-ID: <47613C82.80805@gmail.com> Date: Thu, 13 Dec 2007 17:06:58 +0300 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Roman Divacky References: <4756EBED.6050109@gmail.com> <20071208110538.GA44709@freebsd.org> <475A808D.40005@gmail.com> <20071208113531.GA45695@freebsd.org> <475A887D.20604@gmail.com> <475D6C26.8050204@gmail.com> <20071210221811.GA51616@freebsd.org> In-Reply-To: <20071210221811.GA51616@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org 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: Thu, 13 Dec 2007 14:06:58 -0000 Roman Divacky wrote: > no offence meant but... kdump is not useful much. please provide me > tar of a dir that exihibits the behavior + source code + makefile. > > ie. all I have to do is "make" and then some debugging. I really dont > have the time (and in fact, these days, motivation) to do something > more... > source http://cs.udmvt.ru/files/temp/linux_getdents.c.txt kdump http://cs.udmvt.ru/files/temp/ktrace.out.dump.txt source compiled on Debian Etch 4.0 # cc linux_getdents.c -o linux_getdents_dynamic try run on FreeBSD 8.0-CURRENT, linux_base-fc6 # linux_getdents_dynamic ./temp program crashed on syscall closedir() ... 1948 linux_getdents_dyna RET write 1 1948 linux_getdents_dyna CALL write(0x1,0x28064000,0xb) 1948 linux_getdents_dyna GIO fd 1 wrote 11 bytes "Closing... " 1948 linux_getdents_dyna RET write 11/0xb 1948 linux_getdents_dyna CALL linux_open(0x2818af05,0x902,0x28057129) 1948 linux_getdents_dyna NAMI "/compat/linux/dev/tty" 1948 linux_getdents_dyna NAMI "/dev/tty" 1948 linux_getdents_dyna RET linux_open 6 1948 linux_getdents_dyna CALL writev(0x6,0xbfbfe5b0,0x7) 1948 linux_getdents_dyna GIO fd 6 wrote 99 bytes "*** glibc detected *** ./linux_getdents_dynamic: double free or corrup\ tion (!prev): 0x0804a008 *** " 1948 linux_getdents_dyna RET writev 99/0x63 1948 linux_getdents_dyna CALL linux_open(0x28060d49,0,0) 1948 linux_getdents_dyna NAMI "/compat/linux/etc/ld.so.cache" 1948 linux_getdents_dyna NAMI "/compat/linux" ... /Vladimir Ermakov