From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 19:21:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A226F16A4E0 for ; Sat, 22 Jul 2006 19:21:36 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9305743D8E for ; Sat, 22 Jul 2006 19:20:46 +0000 (GMT) (envelope-from kip.macy@gmail.com) Received: by py-out-1112.google.com with SMTP id b36so1550954pyb for ; Sat, 22 Jul 2006 12:20:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iYE+UlK6IZZjnMWcEJbB8fvM7HubIPzwUoS7dxEwBUHMtdbxbPtuDGUKM3CPVgmfsi+leZ1F6YIOp5arw/Kx6u2PSV6gW3kqSElAvQvovqHbHA8+aLg67enCRXCHu5HY4AiqBFMvpmfnrBo6kIVjNpRA6+jhBt6IVKRi/w1dXmk= Received: by 10.35.111.14 with SMTP id o14mr3845043pym; Sat, 22 Jul 2006 12:20:46 -0700 (PDT) Received: by 10.35.16.20 with HTTP; Sat, 22 Jul 2006 12:20:45 -0700 (PDT) Message-ID: Date: Sat, 22 Jul 2006 12:20:45 -0700 From: "Kip Macy" To: "Michael Nottebrock" In-Reply-To: <200607221914.15826.lofi@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200607221914.15826.lofi@freebsd.org> Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: WINE vs. FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kmacy@fsmware.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 19:21:36 -0000 Thanks for your input. The relative merits of the different threading libraries is currently under discussion. Could you also try it with libthr (it may not work at all), I'd like to hear what happens. Thanks. -Kip On 7/22/06, Michael Nottebrock wrote: > Dear -hackers and -emulation readers, > > I would like to call your attention to a few long-standing problems that > have > so far prevented WINE from living up to its capabilities on FreeBSD. > > I am afraid that I still don't fully grasp the scope of the problem, nor do > I > have a clear idea of what the solution might be, but what I've gathered so > far is this: > > WINE does have certain requirements regarding memory allocation. In > particular > it (or Windows, rather) really wants a few memory ranges for itself: > > (from wine-0.9.17/loader/preloader.c): > > * 0x00000000 - 0x00110000 the DOS area > * 0x80000000 - 0x81000000 the shared heap > * ??? - ??? the PE binary load address (usually starting at > 0x00400000) > > The first two are particularly important for WINE running in win98 (or > earlier) emulation mode, which is currently completely broken on FreeBSD, > since those two memory ranges tend to be unavailable. > > The preloader bit from which this is quoted is WINE's "own shared object > loader that reserves memory that is important to Wine, and then loads the > main binary and its ELF interpreter", and obviously does not work > right on FreeBSD. I'm not sure whether it can be made to or not, perhaps > somebody familiar with both our VM and runtime linker could take a look. > > Some more references: > > http://www.winehq.org/pipermail/wine-devel/2004-December/031750.html > http://bugs.winehq.org/show_bug.cgi?id=5732 > > The other big issue with WINE on FreeBSD seems to be our threading support. > WINE quite reliably manages to confuse libpthread, see > http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/100701. On SMP machines, > I've even been able to trigger kernel panics with WINE (in win2k+ emulation > mode) by merely hitting the close button on a windows application (and WINE > subsequently shutting down): > http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026219.html. > > WINE's threads interface can be found in loader/pthread.c and > loader/kthread.c - again, it would be great, if someone to whom that sort of > code means more than just random gibberish could take a look. > > > Cheers, > -- > ,_, | Michael Nottebrock | lofi@freebsd.org > (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org > \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org > >