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:
egl: Add STATIC_ASSERT() macro
author: Chad Versace <firstname.lastname@example.org>
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.
AMD Evergreen (Radeon HD 5850)
OpenGL renderer string: Gallium 0.4 on AMD CYPRESS
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
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.
Created attachment 97542 [details]
My Xorg.log file when a crash happens
Created attachment 97543 [details]
Created attachment 97544 [details]
only the relevant part
Created attachment 97545 [details]
the steam trace from the terminal
Created attachment 97546 [details]
the steam dump
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)
I finally re-open it since the crash still occurs time to time.
Aehm... Is this still a thing?
I think I haven't seen this bug since some times... though I play less to this game. Closing.