From owner-freebsd-current@FreeBSD.ORG Sat Aug 28 04:01:26 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 A0DCA16A4CE for ; Sat, 28 Aug 2004 04:01:26 +0000 (GMT) Received: from green.homeunix.org (pcp04368961pcs.nrockv01.md.comcast.net [69.140.212.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1810B43D2F for ; Sat, 28 Aug 2004 04:01:26 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id i7S41LNM004935; Sat, 28 Aug 2004 00:01:21 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id i7S41IXj004929; Sat, 28 Aug 2004 00:01:18 -0400 (EDT) (envelope-from green) Date: Sat, 28 Aug 2004 00:01:18 -0400 From: Brian Fundakowski Feldman To: John Birrell Message-ID: <20040828040118.GA1085@green.homeunix.org> References: <47158390.20040827112834@ulstu.ru> <20040827091556.GM7113@freebsd3.cimlogic.com.au> <1698443921.20040827135316@ulstu.ru> <200408271245.15447.mistry.7@osu.edu> <20040827230502.GS77326@green.homeunix.org> <20040828013612.GN7113@freebsd3.cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040828013612.GN7113@freebsd3.cimlogic.com.au> User-Agent: Mutt/1.5.6i cc: Angry Virus cc: freebsd-current@freebsd.org Subject: Re: Re[2]: Wine and 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: Sat, 28 Aug 2004 04:01:26 -0000 On Sat, Aug 28, 2004 at 11:36:12AM +1000, John Birrell wrote: > On Fri, Aug 27, 2004 at 07:05:02PM -0400, Brian Fundakowski Feldman wrote: > > Can you be certain that 100% of kernel changes to support WINE are present > > after fixing mmap? I heard WINE was still broken, so I haven't bothered > > trying. > > I think that 100% of the kernel memory changes required to support > Wine are related to mmap. Wine successfully maps the address space it > wants before dlopen'ing shared libraries. It's the kernel's choice of > map address that fails. > > There is at least one problem with Wine using libpthread. Whether that relates > to kernel or user-space code remains to be seen. I think the thread problem > is a separate issue. > > FWIW, I see no hurry in changing the mmap address allocation in CVS. This > issue has been around for months and *very* few people have commented. The > other BSD's are in the same boat. > > I intend to test the patch written by Anish and move on to the next Wine > problem 'when I get a chance' (TM). When Wine works again, albeit with a few > patches, then it will be time to find an implementation that people find > palatable. I thought that raising the issue on -arch like I did would have > at least got some response (even a single reply). Linux chooses random mmap > addresses for good reason. It would seem sensible to do that in FreeBSD too > (for the same reason). Is the problem that it specifically runs out of memory area but it's not checking where it needs to? If so, I think you could hash out the solution with a wrapper/workaround mmap() in userland first. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\