dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 66349] Using SB shader optimization caused segfault in Serious Sam 3: BFE
Date: Fri, 05 Jul 2013 18:22:12 +0000	[thread overview]
Message-ID: <bug-66349-502-TSiCAUPjab@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-66349-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1362 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=66349

--- Comment #4 from Thomas Lindroth <thomas.lindroth@gmail.com> ---
I did some more debugging and it looks like memory corruption. I can reproduce
the problem with an apitrace dump but when using an --enable-debug build it
runs fine. It always segfaults in a call to glDrawRangeElements. I had the same
problem with Dungeon Defenders before. See comment 2 in bug 62967. It would
always segfault at some random glDrawRangeElements call unrelated to SB and
corrupt the stack. If I try to play back the sam3 trace with
LIBGL_ALWAYS_SOFTWARE=yes it will instead abort with the error "LLVM ERROR:
Program used external function '' which could not be resolved!" during a call
to glDrawRangeElements.

The full sam3 trace is 231M if you want it. I tried to trim it but the trimmed
version would result in an floating point exception in some other gl call.

I'm using latest git mesa but my setup is a bit odd. I run 64-bit gentoo but
the default 32-bit libs in gentoo are precompiled older versions. I work around
that problem by having a 32-bit gentoo chroot with git mesa, libdrm and other
libs games use. I run 32-bit apps like this
LIBGL_DRIVERS_PATH=/mnt/32bit/usr/lib/dri
LD_LIBRARY_PATH="/mnt/32bit/lib:/mnt/32bit/usr/lib" ./steam.sh

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2389 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2013-07-05 18:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-29  2:10 [Bug 66349] New: Using SB shader optimization caused segfault in Serious Sam 3: BFE bugzilla-daemon
2013-07-03 20:15 ` [Bug 66349] " bugzilla-daemon
2013-07-03 20:49 ` bugzilla-daemon
2013-07-04 18:54 ` bugzilla-daemon
2013-07-05 18:22 ` bugzilla-daemon [this message]
2013-07-06  6:41 ` bugzilla-daemon
2013-07-06 12:57 ` bugzilla-daemon
2013-07-06 18:00 ` bugzilla-daemon
2013-07-07 13:45 ` bugzilla-daemon
2013-07-07 17:57 ` bugzilla-daemon
2019-09-18 19:04 ` 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-66349-502-TSiCAUPjab@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox