From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 48693] New: -O2 optimization breaks 32 bit wine 3D on 64 bit
system
Date: Sat, 14 Apr 2012 17:28:39 +0000
Message-ID:
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Return-path:
Received: from annarchy.freedesktop.org (annarchy.freedesktop.org
[131.252.210.176])
by gabe.freedesktop.org (Postfix) with ESMTP id ACC769ED69
for ;
Sat, 14 Apr 2012 10:28:39 -0700 (PDT)
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48693
Bug #: 48693
Summary: -O2 optimization breaks 32 bit wine 3D on 64 bit
system
Classification: Unclassified
Product: Mesa
Version: unspecified
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/R600
AssignedTo: dri-devel@lists.freedesktop.org
ReportedBy: haagch.christoph@googlemail.com
Created attachment 59983
--> https://bugs.freedesktop.org/attachment.cgi?id=59983
furmark crash in wine, mesa compiled with CFLAGS="-O2"
So I had this bug across some gcc versions and mesa versions (since about the
time llvm 3.0 came out) and I figured I should probably report it since it
didn't go away until now.
I'm on a notebook with Redwood, HD 6550M with current libdrm git, mesa git,
xf86-video-ati git, gcc (GCC) 4.7.0 20120407.
The problem is this:
If I compile mesa with CFLAGS="-O2" I immedately get a crash in all (32 bit) 3D
applications/games I have tested in wine (before even displaying the main
window). An example is furmark, see attachment.
It tries to access an apparently invalid address at 0x7cae670a and at this
position there is r600_dri.so.
If I compile mesa with CFLAGS="-O1" (or "-Os") this does not happen. In fact,
if I install mesa compiled with "-O2" and only replace
/usr/lib32/xorg/modules/dri/r600_dri.so with one from a mesa build compiled
with "-O1" it also works.
Another curiosity is that when I do this:
~/.wine/drive_c/FurMark % WINEDEBUG=+all wine FurMark.exe &> /dev/null
then I get the same crash, as expected.
But when I do this:
~/.wine/drive_c/FurMark % WINEDEBUG=+all wine FurMark.exe &> furmarkdebug.txt
it starts fine to the main window. Only later, when clicking on benchmark, I
get a very similar crash to the above.
Native 32 bit games work fine with an "-O2" compiled mesa. Internal wine
programs like regedit, explorer or wine internet explorer work also.
If you can tell me how I can obtain more information about this obscure bug I
will gladly do.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.