From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.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 [thread overview]
Message-ID: <bug-48693-502@http.bugs.freedesktop.org/> (raw)
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.
next reply other threads:[~2012-04-14 17:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-14 17:28 bugzilla-daemon [this message]
2012-04-14 18:38 ` [Bug 48693] -O2 optimization breaks 32 bit wine 3D on 64 bit system bugzilla-daemon
2012-04-14 19:33 ` bugzilla-daemon
2012-04-16 1:40 ` bugzilla-daemon
2012-04-16 9:50 ` bugzilla-daemon
2012-09-12 15:06 ` bugzilla-daemon
2012-09-15 23:21 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-48693-502@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.