From owner-freebsd-current@FreeBSD.ORG Thu Aug 5 05:07:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A91C16A4CE for ; Thu, 5 Aug 2004 05:07:28 +0000 (GMT) Received: from freebsd3.cimlogic.com.au (adsl-20-121.swiftdsl.com.au [218.214.20.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C9EF43D31 for ; Thu, 5 Aug 2004 05:07:27 +0000 (GMT) (envelope-from jb@cimlogic.com.au) Received: by freebsd3.cimlogic.com.au (Postfix, from userid 102) id C503B6AC0C; Thu, 5 Aug 2004 15:07:25 +1000 (EST) Date: Thu, 5 Aug 2004 15:07:25 +1000 From: John Birrell To: Julian Elischer Message-ID: <20040805050725.GB99521@freebsd3.cimlogic.com.au> References: <200407271731.12282.mistry.7@osu.edu> <200407291004.19726.mistry.7@osu.edu> <20040729211209.GH34260@freebsd3.cimlogic.com.au> <200408041828.26762.mistry.7@osu.edu> <20040804223937.GA99521@freebsd3.cimlogic.com.au> <41116752.4030003@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41116752.4030003@elischer.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-current@freebsd.org Subject: Re: FreeBSD and wine mmap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 05:07:28 -0000 On Wed, Aug 04, 2004 at 03:46:42PM -0700, Julian Elischer wrote: > /proc/curproc/map > can give you a quick temporary solution.. > julian@ref3:cat /proc/curproc/map I can't see how that gives a quick temporary solution. The mmaps we are talking about are the ones done by rtld. Wine libraries are standard Unix shared libraries that are dlopen'ed. The fact that the load fails is due to the upper process memory being deliberately consumed before the libraries are loaded. Screwing up rtld seems like a poor idea to me. The Wine people say that Linux now loads shared libraries at random addresses to make buffer overruns less predictable. That's why they gobble upper memory as soon as they can (albeit after libc has been loaded because that's linked to the Wine program). Presumably FreeBSD may one day consider doing the same thing for the same reason. -- John Birrell