From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 09:12:23 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 6725D1065679 for ; Thu, 1 Jul 2010 09:12:23 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay006.isp.belgacom.be (mailrelay006.isp.belgacom.be [195.238.6.172]) by mx1.freebsd.org (Postfix) with ESMTP id 02C388FC0C for ; Thu, 1 Jul 2010 09:12:22 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEGAJP3K0xbsagn/2dsb2JhbACTK4w4cr5bhSUE Received: from 39.168-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.168.39]) by relay.skynet.be with ESMTP; 01 Jul 2010 11:12:21 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.4/8.14.4) with ESMTP id o619CF0N002764; Thu, 1 Jul 2010 11:12:20 +0200 (CEST) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: freebsd-hackers@freebsd.org Date: Thu, 1 Jul 2010 11:12:14 +0200 User-Agent: KMail/1.13.3 (FreeBSD/8.1-PRERELEASE; KDE/4.4.4; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007011112.14853.tijl@coosemans.org> Cc: "Sam Fourman Jr." 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: Thu, 01 Jul 2010 09:12:23 -0000 On Thursday 01 July 2010 03:07:09 Sam Fourman Jr. wrote: >> i386 32bit-mode page table has no NX bit - the PAE page table has... > > You are correct, I went in my BIOS, and disabled execute bit. > > Then when I run the test C code, the get "trapped" just as expected > on both 8.1 amd64 and CURRENT amd64 however World of warcraft still > segfaults even though execute bit is disabled in BIOS. > > I guess I am just confused on how linux fixed this with this patch > > http://bugs.winehq.org/attachment.cgi?id=29155 Wine translates signals and their siginfo into windows exceptions. In the test case you posted earlier you should try install the sighandler with sigaction(2) and the SA_SIGINFO flag. Then print the siginfo struct when you receive the signal and compare that to Linux or FreeBSD/i386.