From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 10:50:39 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DA6E106566B for ; Wed, 30 Jun 2010 10:50:39 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 83A748FC16 for ; Wed, 30 Jun 2010 10:50:38 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o5UAoR9K068539 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Jun 2010 13:50:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o5UAoR8X061052; Wed, 30 Jun 2010 13:50:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o5UAoR8t061051; Wed, 30 Jun 2010 13:50:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 30 Jun 2010 13:50:27 +0300 From: Kostik Belousov To: "Sam Fourman Jr." Message-ID: <20100630105027.GJ13238@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WyG/i6Mg9for+jdq" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: kernel patch needed for wine? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 10:50:39 -0000 --WyG/i6Mg9for+jdq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 29, 2010 at 06:54:11PM -0500, Sam Fourman Jr. wrote: > Hello FreeBSD hackers. >=20 > Last Tuesday blizzard release World of Warcraft 3.3.5, and with this patch > World of warcraft stopped working in FreeBSD 8.1 amd64, it crashes > right after login. >=20 > details here: > http://bugs.winehq.org/show_bug.cgi?id=3D23323 >=20 > in the above thread a wine developer stated the problem is this: >=20 > WoW uses opcode 0xf1 (icebp) and expects to see a single step exception, > probably as a way to detect hardware debuggers. With the kernel change ic= ebp is > no longer raising a SIGTRAP since it doesn't set any dr6 bits, so WoW doe= sn't > get its exception. >=20 > Linux fixed this with this kernel patch > https://bugzilla.kernel.org/show_bug.cgi?id=3D16315 >=20 >=20 > I have been playing World of Warcraft on FreeBSD amd64 since December of = 2009 > using the beta Nvidia 64bit drivers and this wine how-to >=20 > http://wiki.freebsd.org/Wine#head-6963d527c173e57b1567e881305b544d33435b6d >=20 > I can verify that on PCBSD 8.1 RC1 32bit World of warcraft works post 3.3= .5 > so far as I can tell it is only broken on amd64. >=20 > Would someone be able to comment on weather a patch is indeed needed > on FreeBSD amd64? Which patch ? icebp generates the SIGTRAP on latest 8-stable, verified by the following trivival assembler program: .text .globl main main: .byte 0xf1 xorl %edi,%edi call exit --WyG/i6Mg9for+jdq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkwrIXIACgkQC3+MBN1Mb4gUHQCg2scrt9MHBfB4keWean5Dw/al WL4AmwTpWUSSTpl1qZ9jq2J6VXokhrOi =MPTd -----END PGP SIGNATURE----- --WyG/i6Mg9for+jdq--