Skip to contentSkip to conversation

Segfault in CS:GO

Bug 93360 [email protected] 1 participant 11 messages Dec 12, 2015 – Jan 26, 2016

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 93360
Summary: [radeonsi/llvm] Segfault in CS:GO
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 120470
--> https://bugs.freedesktop.org/attachment.cgi?id=120470&action=edit
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

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

Tobias Droste <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=92944
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

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

--- Comment #1 from Nicolai Hähnle <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

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

--- Comment #2 from Tobias Droste <[email protected]> --- Created attachment 120476
--> https://bugs.freedesktop.org/attachment.cgi?id=120476&action=edit
Output of R600_DEBUG=vs,gs,ps

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

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

sarnex <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from sarnex <[email protected]> --- Created attachment 120488
--> https://bugs.freedesktop.org/attachment.cgi?id=120488&action=edit
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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

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

--- Comment #4 from Tobias Droste <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

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

--- Comment #5 from Tobias Droste <[email protected]> --- (In reply to Tobias Droste from comment #4)

Quoted 7 lines

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 :-)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

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

--- Comment #6 from Nicolai Hähnle <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

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

--- Comment #7 from Tobias Droste <[email protected]> ---
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?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

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

--- Comment #8 from sarnex <[email protected]> --- (In reply to Tobias Droste from comment #7)

Quoted 8 lines

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

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

Michel D�nzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel