From owner-freebsd-stable@FreeBSD.ORG Thu Jul 18 19:30:10 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D7E34EE8 for ; Thu, 18 Jul 2013 19:30:10 +0000 (UTC) (envelope-from rmtodd@servalan.servalan.com) Received: from ln.servalan.com (unknown [IPv6:2600:3c00::f03c:91ff:fe96:62f5]) by mx1.freebsd.org (Postfix) with ESMTP id B746423A for ; Thu, 18 Jul 2013 19:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=servalan.com; s=rsadkim; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=vRGN6la7EJioumjnlEeLjjyq9CNb2uKxPG00t+GvTNI=; b=P4meuLOTAX6J4IHTyAPjDrSo9a/I+dsGfb/Tb3IVGEFmETD3I+MIPCOK8eGRdcgCkf40QBiN5yIwukTSTvHeVe4Kd/vrt4iwOrOEC15dK8NjrWVqYrPrmNhcoJs4h24EHEMxa2dpEaFeB4nvbbFJ9YYd/njH1QdRQZ/hA1ptkRk=; Received: from uucp by ln.servalan.com with local-rmail (Exim 4.71) (envelope-from ) id 1Uzttx-00011G-JD for freebsd-stable@freebsd.org; Thu, 18 Jul 2013 14:30:09 -0500 Received: from rmtodd by servalan.servalan.com with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UztqK-000CCU-Ha; Thu, 18 Jul 2013 14:26:24 -0500 Date: Thu, 18 Jul 2013 14:26:24 -0500 From: Richard Todd To: George Hartzell Subject: Re: Help with filing a [maybe] ZFS/mmap bug. Message-ID: <20130718192624.GA45917@ichotolot.servalan.com> References: <20967.760.95825.310085@gargle.gargle.HOWL> <20968.14003.813473.517439@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20968.14003.813473.517439@gargle.gargle.HOWL> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Richard Todd , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2013 19:30:10 -0000 On Thu, Jul 18, 2013 at 11:40:51AM -0700, George Hartzell wrote: > Removing the mmap support from those two routines seems to avoid the > issue. Aha. > > If so, then the issue is triggered by one or both of those two routines; > > hack them to print out the exact offsets used on each call and use that to > > try and code up a simple C++ test case. > > [...] > > Your test case doesn't use mmap, I assume that you've offered it up as > a hint, not as something that's nearly done. The shell script in > particular seems useful. Um, go look at gen4.cpp again. It uses mmap(). The insert_bytes and delete_bytes functions should work the same way as the (mmap-using path of) the functions of the same name in py-mutagen. > In my case I'd want to find a particular set of file size, offset, and > insertion size that triggers the problem and code up a c/c++ equiv. of > the mmap calls that py-mutagen does. Right? Yeah.