GuildWars (wine1.0) makes X segfault in libdri2.so

Bug #752080 reported by Kamal Mostafa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Debian
Confirmed
Unknown
mesa (Ubuntu)
Fix Released
Low
Unassigned
xorg-server (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xorg

Natty Beta 2.6.38-8.40 + wine1.0 : Guild Wars crashes X

On same hardware on Maverick (Intel Core i5 with Intel GPU) Guild Wars under wine1.* works great with winecfg's Direct3D "Allow Pixel Shader" checkbox enabled. But the same configuration on Natty and wine1.0 makes Xorg crash (see backtrace below) immediately upon starting Guild Wars. Switching off "Allow Pixel Shader" resolves the crash, but game frame rate drops to an unusably slow 2 fps.

Natty Beta 2.6.38-8.40 + wine1.2 : Guild Wars graphics corrupted

With wine1.2, no X crash occurs, but graphics are corrupted when "Allow Pixel Shader"is enabled. Looks fine (but unusably slow) without "Allow Pixel Shader". Screenshots of good and bad attached.

-----------------------------------------------------------

From Xorg.0.log (Natty + wine1.0):

Backtrace:
[ 555.256] 0: /usr/bin/X (xorg_backtrace+0x26) [0x4a24d6]
[ 555.256] 1: /usr/bin/X (0x400000+0x6219a) [0x46219a]
[ 555.256] 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f24c4479000+0xfc60) [0x7f24c4488c60]
[ 555.256] 3: /usr/lib/xorg/modules/extensions/libdri2.so (DRI2WaitSwap+0x1b) [0x7f24c180368b]
[ 555.256] 4: /usr/lib/xorg/modules/extensions/libglx.so (0x7f24c2025000+0x43498) [0x7f24c2068498]
[ 555.256] 5: /usr/lib/xorg/modules/extensions/libglx.so (0x7f24c2025000+0x3919b) [0x7f24c205e19b]
[ 555.256] 6: /usr/lib/xorg/modules/extensions/libglx.so (0x7f24c2025000+0x3cc16) [0x7f24c2061c16]
[ 555.256] 7: /usr/lib/xorg/modules/extensions/libglx.so (0x7f24c2025000+0x38b93) [0x7f24c205db93]
[ 555.256] 8: /usr/bin/X (0x400000+0x2e269) [0x42e269]
[ 555.256] 9: /usr/bin/X (0x400000+0x21a4e) [0x421a4e]
[ 555.256] 10: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xff) [0x7f24c33b1eff]
[ 555.256] 11: /usr/bin/X (0x400000+0x215f9) [0x4215f9]
[ 555.256] Segmentation fault at address 0x34
[ 555.256]
Caught signal 11 (Segmentation fault). Server aborting

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xserver-xorg 1:7.6+4ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.40-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Tue Apr 5 17:04:53 2011
DistroCodename: natty
DistroVariant: ubuntu
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu1
---
Architecture: amd64
DistroCodename: natty
DistroRelease: Ubuntu 11.04
DistroVariant: ubuntu
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
Package: xorg 1:7.6+4ubuntu1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.38-8.40-generic 2.6.38.2
Tags: natty running-unity ubuntu
Uname: Linux 2.6.38-8-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu1
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kamal 2921 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0a00000 irq 45'
   Mixer name : 'Intel IbexPeak HDMI'
   Components : 'HDA:111d7675,10280413,00100103 HDA:80862804,80860101,00100000'
   Controls : 25
   Simple ctrls : 15
DistroRelease: Ubuntu 11.04
HibernationDevice: RESUME=UUID=e4c5fd19-ee8c-4877-9ab4-cb3d05e19cdf
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
MachineType: Dell Inc. Studio 1558
Package: linux (not installed)
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=28d8e7df-15f5-4bef-848e-d9c9a1f845e7 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-8.40-generic 2.6.38.2
Regression: Yes
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-8-generic N/A
 linux-backports-modules-2.6.38-8-generic N/A
 linux-firmware 1.49
Reproducible: Yes
Tags: natty running-unity kernel-graphics regression-proposed needs-upstream-testing
Uname: Linux 2.6.38-8-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 03/11/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A04
dmi.board.name: 0G939P
dmi.board.vendor: Dell Inc.
dmi.board.version: A04
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A04
dmi.modalias: dmi:bvnDellInc.:bvrA04:bd03/11/2010:svnDellInc.:pnStudio1558:pvrA04:rvnDellInc.:rn0G939P:rvrA04:cvnDellInc.:ct8:cvrA04:
dmi.product.name: Studio 1558
dmi.product.version: A04
dmi.sys.vendor: Dell Inc.

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Note that the Guild Wars client can be downloaded freely from http://www.guildwars.com/download . A Guild Wars account is not necessary to replicate either problem (the crash, or the graphics corruption).

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
tags: added: kernel-graphics needs-upstream-testing regression-proposed
description: updated
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : AcpiTables.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : AlsaDevices.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : AplayDevices.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : BootDmesg.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : IwConfig.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : Lspci.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : Lsusb.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : PciMultimedia.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : ProcCpuinfo_.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : ProcModules.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : RfKill.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : UdevDb.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : UdevLog.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : WifiSyslog.txt

apport information

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

More notes: The problem is NOT specific to unity... The same crash occurs whether I select the Ubuntu (unity) or Ubuntu Classic (gnome) desktop.

bugbot (bugbot)
affects: xorg (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

The crash actually occurs only every other time, interleaved with other failure behaviors. Specific reproduction sequence (with wine1.0):

Reboot

run 1: log into unity
$ .wine/drive_c/Program Files/Guild Wars/Gw.exe
### GuildWars does not start (no graphics) but prints:
X Error of failed request: GLXBadDrawable
  Major opcode of failed request: 155 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 500
  Current serial number in output stream: 500

run 2: $ .wine/drive_c/Program Files/Guild Wars/Gw.exe
### X crashes with segfault (kills login session)

run 3: log back into unity again
$ cd ".wine/drive_c/Program Files/Guild Wars"
$ ./Gw.exe
### GuildWars starts up but graphics corruption just like wine1.2

run 4: close GuildWars via corrupted close box in upper right
$ .wine/drive_c/Program Files/Guild Wars/Gw.exe
### X crashes [same segfault]

... Then, I can repeat that whole sequence again:
run 1: GLXBadDrawable
run 2: X crashes with segfault
run 3: (after login again) GW starts with corrupted gfx
run 4: X crashes with segfault
(rinse and repeat).

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Wine1.3 behaves the same as wine1.2 (no X crash, but Guild Wars graphics are corrupted, as show in attached wine1.2 screenshot).

https://launchpad.net/~ubuntu-wine/+archive/ppa
wine1.3 (1.3.17-0ubuntu1~maverick1~ppa1)

Revision history for this message
Robert Hooker (sarvatt) wrote :

I managed to reproduce this on a sandybridge system. It appears to be amd64 specific, a fresh amd64 install gives the corrupted graphics with wine1.2 and i386 is fine. As for the X crash, it was something fixed on the wine side in wine 1.1.31

Changed in mesa (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Changed in debian:
status: Unknown → New
Revision history for this message
Robert Hooker (sarvatt) wrote :

The cause of the slowness and corruption ended up being https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/755720 which should be fixed shortly

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

This bug is fixed: Guild Wars looks great with Natty's default wine1.2 (and no longer crashes X with wine1.0 [though doesn't display properly]). Guild Wars with wine1.3 under Natty also looks great.

This bug was fixed in the package ia32-libs - 20090808ubuntu13

---------------
ia32-libs (20090808ubuntu13) natty; urgency=low

  * Freshen packages (LP: #755720)
  * Remove dummy package libglu1-xorg (libglu1-mesa remains)
 -- Scott Ritchie <email address hidden> Wed, 20 Apr 2011 23:28:04 -0700

Changed in mesa (Ubuntu):
status: Confirmed → Fix Released
Changed in xorg-server (Ubuntu):
status: New → Fix Released
Changed in debian:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.