<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Total war: Attila crashes at startup"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93577#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Total war: Attila crashes at startup"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93577">bug 93577</a>
from <span class="vcard"><a class="email" href="mailto:jfonseca@vmware.com" title="Jose Fonseca <jfonseca@vmware.com>"> <span class="fn">Jose Fonseca</span></a>
</span></b>
<pre>(In reply to Michel Dänzer from <a href="show_bug.cgi?id=93577#c1">comment #1</a>)
<span class="quote">> Reassigning to Mesa core since it happens with the i965 driver as well, but
> it looks like it might be a game bug.
>
> BTW, an apitrace is only useful if replaying it reproduces the problem.</span >
Actually the apitrace shows the problem:
2347 glXCreateContextAttribsARB(dpy = 0x6c00ec0, config = 0x6d081a0,
share_context = NULL, direct = True, attrib_list =
{GLX_CONTEXT_MAJOR_VERSION_ARB, 4, GLX_CONTEXT_MINOR_VERSION_ARB, 3,
GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB, 0}) = NULL
2348 glXMakeCurrent(dpy = 0x6c00ec0, drawable = 0, ctx = NULL) = True
2350 glGenTextures(n = 1, textures = &0)
...
2595 glMapBufferRange(target = GL_PIXEL_PACK_BUFFER, offset = 0, length = 0,
access = GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT |
GL_MAP_FLUSH_EXPLICIT_BIT) = NULL
The game requests a 4.3 context, it doesn't get one, but happily proceeds using
a null context as if nothing happened ... until it gets a NULL glMapBufferRange
and segfaults.
glretrace skips gl calls with a NULL context (because on Windows the
OPENGL32.DLL silently drops them so quite a few Windows apps inadvertebntly do
it when shutting, so glretrace needs to ignore when replaying on Linux to
prevent crashes)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>