Bug 77596

Summary: [r600g] random and reproducible crash in Left 4 Dead 2 (bisected)
Product: Mesa Reporter: Benjamin Bellec <b.bellec>
Component: Drivers/Gallium/r600Assignee: mesa-dev
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium CC: b.bellec, mirh
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 77449    
Attachments: Example scene when the game will crash
My Xorg.log file when a crash happens
dmesg.log
/var/log/messages
the steam trace from the terminal
the steam dump

Description Benjamin Bellec 2014-04-17 22:13:15 UTC
Left 4 Dead 2 crash quite randomly, most of the time between 45 minutes and 80 minutes for instance. But sometimes earlier (15 minutes).

When the crash happens, it's always at the same moment in the game: it's in "Versus Mode" when you play an Infected character. The crash always occurs when you're in the mode where you can follow the survivors while the spawn counter is decreasing, and then reaching zero, you go in the POV of your infected character. The game crash in this transition.

When the game crash, in fact it freeze during 10-15 seconds and then the game exit with a segfault.

The first bad commit is:
commit: cefa06cd6967f2c2db2acfb54a4bf3be398a3ce8
egl: Add STATIC_ASSERT() macro
author: Chad Versace <chad.versace@linux.intel.com>
date: 2014-03-17 22:39:23 (GMT)

I was quite surprised about this commit but it take me many time to bisect it given the nature of the crash. And I then take many time to be sure that this is the first bad commit.

I just try with recent dev mesa (d3c0e236f23e66cb2b4a75f5161282b2d15ff73f) but the crash still occurs.

Config:
kernel 3.13.9-100.fc19.x86_64
libdrm 2.4.53-1.fc20

AMD Evergreen (Radeon HD 5850)
OpenGL renderer string: Gallium 0.4 on AMD CYPRESS

Build config:
autogen.sh --with-gallium-drivers=r600 --with-dri-drivers= --enable-texture-float --disable-dri3 --disable-r600-llvm-compiler --disable-gallium-llvm --enable-32-bit CFLAGS="-O2 -m32" CXXFLAGS="-O2 -m32" --libdir=/usr/lib
Comment 1 Benjamin Bellec 2014-04-17 22:15:53 UTC
Created attachment 97541 [details]
Example scene when the game will crash

In this screenshot, the spawn counter reached zero and is now in "Respawn Mode". Next frame we go in Infected POV. Game crash during this transition.
Comment 2 Benjamin Bellec 2014-04-17 22:18:08 UTC
Created attachment 97542 [details]
My Xorg.log file when a crash happens
Comment 3 Benjamin Bellec 2014-04-17 22:22:13 UTC
Created attachment 97543 [details]
dmesg.log
Comment 4 Benjamin Bellec 2014-04-17 22:22:46 UTC
Created attachment 97544 [details]
/var/log/messages

only the relevant part
Comment 5 Benjamin Bellec 2014-04-17 22:23:16 UTC
Created attachment 97545 [details]
the steam trace from the terminal
Comment 6 Benjamin Bellec 2014-04-17 22:23:58 UTC
Created attachment 97546 [details]
the steam dump
Comment 7 Benjamin Bellec 2014-05-30 19:46:02 UTC
I finally found that I omitted to specify "--prefix=/usr" on build time. Could this be the source of the crash (eg. if old "includes" were in this place) ?
The game didn't crash since many days, I think that was the issue.

Now I rebuilt mesa like I was doing before, game crashed again, and I got this error (previously I wasn't launching the game with MESA_DEBUG) :

Mesa: User error: GL_INVALID_VALUE in glMapBufferRange(length = -42702)
Comment 8 Benjamin Bellec 2014-10-26 18:21:00 UTC
I finally re-open it since the crash still occurs time to time.
Comment 9 mirh 2017-10-05 16:37:03 UTC
Aehm... Is this still a thing?
Comment 10 Benjamin Bellec 2017-10-08 20:44:37 UTC
I think I haven't seen this bug since some times... though I play less to this game. Closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.