https://bugs.freedesktop.org/show_bug.cgi?id=92944
Bug ID: 92944 Summary: [Fiji/LLVM/RadeonSI] CS:GO segfaults in llvm Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: ernstp@gmail.com QA Contact: dri-devel@lists.freedesktop.org
Created attachment 119654 --> https://bugs.freedesktop.org/attachment.cgi?id=119654&action=edit backtrace
Every time CS:GO has finished loading a level and is about to draw 3D graphics it crashes with this error before any 3D graphics is displayed. Attaching the backtrace.
Hardware: Radeon Fury Intel 2500k
Software: 64-bit Ubuntu 15.10 LLVM 3.8~svn252698-0~padoka0 Mesa 11.1~git151113012700.2de2e17~padoka0 Linux both 4.3.0 and agd5f/powerplay tested
Other games work fine, Borderlands, Civ 5, Shadow of Mordor, Metro: Last Light (old version).
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #1 from Bogar Boris edward.81@gmail.com --- I got the same trouble on arch with mesa-git and llvm-svn. Working fine with the stable release.
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #2 from Michel Dänzer michel@daenzer.net --- Might be a duplicate of bug 92709.
If http://lists.freedesktop.org/archives/mesa-dev/2015-November/100742.html doesn't help, please run the game with the environment variable R600_DEBUG=vs,gs,ps and attach its stderr output.
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #3 from Ernst Sjöstrand ernstp@gmail.com --- Created attachment 119989 --> https://bugs.freedesktop.org/attachment.cgi?id=119989&action=edit cs-go-llvm.txt
Oh, haven't tried the patch yet. Here's the log with R600_DEBUG=vs,gs,ps anyway.
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #4 from Bogar Boris edward.81@gmail.com --- Created attachment 120065 --> https://bugs.freedesktop.org/attachment.cgi?id=120065&action=edit cs_go console log with R600_DEBUG=vs,gs,ps with patched LLVM-git and mesa-svn
Hi, i tried to recompile llvm-git and mesa-svn including both the patch that i found in Michel Dänzer message. The attachment contain the last two mesa debug dump from the console. Honestly I don't know if you need the full log from the game start to the crash, but the full log is over 3Mb. I hope this can help, and this is the dmesg generated from the crash.
[nov23 19:01] csgo_linux[8027]: segfault at c ip 00000000f17cb7ed sp 00000000d3d56a0c error 4 in libLLVM-3.8svn.so[f11b6000+29d3000]
https://bugs.freedesktop.org/show_bug.cgi?id=92944
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arsenm2@gmail.com, | |nhaehnle@gmail.com, | |tstellar@gmail.com
--- Comment #5 from Michel Dänzer michel@daenzer.net --- Doesn't look related to bug 92709. I was able to reproduce the crash with llc and the LLVM IR from the attached debugging output. Tom/Matt/Nicolai could any of you take a look?
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #6 from Michel Dänzer michel@daenzer.net --- (In reply to Bogar Boris from comment #1)
I got the same trouble on arch with mesa-git and llvm-svn. Working fine with the stable release.
Can you first isolate whether the crash was introduced by a change in Mesa or LLVM, and then bisect that component?
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #7 from Bogar Boris edward.81@gmail.com --- (In reply to Michel Dänzer from comment #6)
(In reply to Bogar Boris from comment #1)
I got the same trouble on arch with mesa-git and llvm-svn. Working fine with the stable release.
Can you first isolate whether the crash was introduced by a change in Mesa or LLVM, and then bisect that component?
I tried but i can't. I looked on my package manager log and i see that i discover the bug around 2015/10/09. So i tried to compiled an old revision of mesa but around that date i found that the mesa fail to configure/compile because of some new virgl driver. And the compilation fail for an huge gap of commit, so, finding out this is beyond my knowledge.
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #8 from Ernst Sjöstrand ernstp@gmail.com --- With my current git snapshots of everything I can actually load a game and play one round if I set shader detail to Low, everything else can be set to max it seems. However it crashes a bit later when loading the next round. Haven't captured the tracebacks from that yet...
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #9 from Michel Dänzer michel@daenzer.net --- (In reply to Bogar Boris from comment #7)
So i tried to compiled an old revision of mesa but around that date i found that the mesa fail to configure/compile because of some new virgl driver.
Can't you just disable the virgl driver build? If that doesn't work either, please attach the failure output from configure / make.
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #10 from Tobias Droste tdroste@gmx.de --- It's not a mesa change that caused this.
I have the same problem with Hawaii. The first time I saw this I tried an older version of mesa which worked a day before and the problem was still there.
I can't say which change in llvm caused this, because I'm only building mesa on my own and receive a prebuilt llvm copy from a repository.
I can upload a backtrace as well if you want, but the segfault I see also happens in SlotIndex::getIndex().
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #11 from Tobias Droste tdroste@gmx.de --- The change in LLVM happend somewhere between November 9th (known good) and yesterday (known bad).
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #12 from Tobias Droste tdroste@gmx.de --- Okaaay... sorry for the noise, I don't have the _same_ problem.
My problem is not due to a change in either mesa or llvm but cs go as it seems. I switched to a llvm r251632 (October 29th) and mesa c6b24448b578c4a8ab031923df3ef1e2d865d5bb (also October 29th) and my problems is still there.
I'm opening a new bug.
https://bugs.freedesktop.org/show_bug.cgi?id=92944
Tobias Droste tdroste@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freedesktop.or | |g/show_bug.cgi?id=93360
https://bugs.freedesktop.org/show_bug.cgi?id=92944
Ernst Sjöstrand ernstp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |77449
https://bugs.freedesktop.org/show_bug.cgi?id=92944
--- Comment #13 from Ernst Sjöstrand ernstp@gmail.com --- Couldn't reproduce this today. Could set shaders to very high, change graphics settings on the fly (though slow), run multiple matches in a row etc... Latest padoka-ppa + drm-next-4.6-wip kernel.
https://bugs.freedesktop.org/show_bug.cgi?id=92944
Nicolai Hähnle nhaehnle@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #14 from Nicolai Hähnle nhaehnle@gmail.com --- Indeed, the offending shaders no longer crash. Not sure which of the recent LLVM changes is responsible, let's just be happy it works :)
dri-devel@lists.freedesktop.org