Bug 93360 - [radeonsi/llvm] Segfault in CS:GO
Summary: [radeonsi/llvm] Segfault in CS:GO
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-12 01:23 UTC by Tobias Droste
Modified: 2016-01-26 09:31 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Backtrace of the segfault (3.62 KB, text/plain)
2015-12-12 01:23 UTC, Tobias Droste
Details
Output of R600_DEBUG=vs,gs,ps (1.32 MB, text/plain)
2015-12-12 03:23 UTC, Tobias Droste
Details
R600_DEBUG=vs,gs,ps (751.00 KB, text/plain)
2015-12-13 16:31 UTC, Nick Sarnie
Details

Description Tobias Droste 2015-12-12 01:23:22 UTC
Created attachment 120470 [details]
Backtrace of the segfault

When loading of a level is done in CS:GO and the team selection menu should pop up CS:GO segfaults here:

#0  0xf4f2cd2d in llvm::LiveRange::find(llvm::SlotIndex) () from /usr/local/lib/dri/radeonsi_dri.so

Hardware:
Hawaii PRO [Radeon R9 290]

This happens with most recent LLVM SVN and Mesa git, and also with LLVM and Mesa from October. So this seems to be some long standing error in either Mesa or LLVM that is triggered now by a change of CS:GO.
Comment 1 Nicolai Hähnle 2015-12-12 03:16:04 UTC
Hi Tobias, thanks for the new report. As with bug #92944, could you please provide a log with R600_DEBUG=vs,gs,ps? This will show the segfaulting shader and should allow simple reproduction at least.
Comment 2 Tobias Droste 2015-12-12 03:23:08 UTC
Created attachment 120476 [details]
Output of R600_DEBUG=vs,gs,ps
Comment 3 Nick Sarnie 2015-12-13 16:31:25 UTC
Created attachment 120488 [details]
R600_DEBUG=vs,gs,ps

Hello. I have the exact same issue. The assert in LLVM is llvm::IndexListEntry* llvm::SlotIndex::listEntry() const: Assertion `isValid() && "Attempt to compare reserved index."' failed.

I've attached my R600_DEBUG=vs,gs,ps also. I have a HD 7950/Tahiti.

I hope this helps.

Thanks,
sarnex
Comment 4 Tobias Droste 2015-12-13 20:31:16 UTC
I found out why the last CS update caused this issue.
They siwtched all graphic options to "auto" with the last update and for my graphics card it figured out that the highest preference in every setting should be the best ones. And with these settings CS:GO is crashing.

I switched backed everything to "low" and I can at least play the game again. But the driver should crash with everything set to high.
Comment 5 Tobias Droste 2015-12-13 20:32:07 UTC
(In reply to Tobias Droste from comment #4)
> I found out why the last CS update caused this issue.
> They siwtched all graphic options to "auto" with the last update and for my
> graphics card it figured out that the highest preference in every setting
> should be the best ones. And with these settings CS:GO is crashing.
> 
> I switched backed everything to "low" and I can at least play the game
> again. But the driver should crash with everything set to high.

"should *not* crash" of course :-)
Comment 6 Nicolai Hähnle 2015-12-13 22:29:07 UTC
Thank you for posting the workaround!

I can confirm that the logs of both of you contain (different) shaders that crash with standalone llc, making this bug easy to reproduce at least.
Comment 7 Tobias Droste 2016-01-25 22:27:50 UTC
Because bug 92944 was magically fixed I just tested again with everything set to high and it looks like this is not crashing anymore. This was with LLVM svn trunk and mesa git from 2 days ago.

Though the image looks wrong with everything set to high. The lighting is doesn't seem to be rendered correctly. 

Sarnex is it working for you?
Comment 8 Nick Sarnie 2016-01-26 03:50:14 UTC
(In reply to Tobias Droste from comment #7)
> Because bug 92944 was magically fixed I just tested again with everything
> set to high and it looks like this is not crashing anymore. This was with
> LLVM svn trunk and mesa git from 2 days ago.
> 
> Though the image looks wrong with everything set to high. The lighting is
> doesn't seem to be rendered correctly. 
> 
> Sarnex is it working for you?

Hi Tobias,

Yeah, it seems to be working for me also. I guess the underlying bug was fixed. Great works guys at AMD.

Thanks,
sarnex


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.