anyc / steam-overlay

Gentoo overlay for Valve's Steam client and Steam-based games
GNU General Public License v2.0
202 stars 44 forks source link

segfault at 0 [...] error 4 in libnvidia-glvkspirv.so.535.146.02 likely on CPU 0 (core 0, socket 0) #350

Closed netfab closed 7 months ago

netfab commented 8 months ago

For some time I'm getting this segfault in dmesg each time a game is exiting :

[30425.697110] wineserver[29286]: segfault at 0 ip 00007f72418ad6f4 sp 00007ffdde826740 error 4 in libnvidia-glvkspirv.so.535.146.02[7f7240800000+2038000] likely on CPU 1 (core 1, socket 0) [30425.697124] Code: 00 00 00 00 00 90 53 48 8b 1f 48 89 df e8 74 38 0d ff 48 89 df 5b e9 2b 39 0d ff 66 2e 0f 1f 84 00 00 00 00 00 90 48 83 ec 08 <48> 8b 3f e8 94 3a 0d ff 85 c0 0f 94 c0 48 83 c4 08 c3 66 2e 0f 1f

I think it starts happening several weeks ago after a nvidia-drivers update or a steam update, I'm not sure.

I found a thread on nvidia forums ⁽¹⁾. This leads me to another thread on archlinux forums ⁽²⁾.

In the steam.desktop file provided by games-util/steam-launcher, if I set :

PrefersNonDefaultGPU=false

instead of :

PrefersNonDefaultGPU=true

the segfault does not happen anymore.

  1. https://forums.developer.nvidia.com/t/libnvidia-glvkspirv-so-535-113-01-segfault/268901
  2. https://bbs.archlinux.org/viewtopic.php?id=289661&p=3
chewi commented 8 months ago

Isn't that just switching to your non-NVIDIA GPU? That doesn't seem like a good change to make in general. I don't use NVIDIA at all though, so it's hard for me to make a call on this.

netfab commented 8 months ago

Isn't that just switching to your non-NVIDIA GPU?

I don't know. All that I know Is that a segfault is never a good sign, and this one is spamming my log files.

The second GPU is an integrated Intel, but is never used, and the intel driver is not even loaded, I do not see how steam can pretend to use it.

There is an opened bug upstream on this subject : https://github.com/ValveSoftware/steam-for-linux/issues/9940

chewi commented 8 months ago

They seem to agree that removing (or changing) the key is not a good idea at the moment. I'd ping them on that issue as it seems to have stalled.

netfab commented 8 months ago

I added a comment on upstream bug.

In the meantime, I enabled the Intel iGPU, and I'm now using NVIDIA's PRIME render offload for steam and games. Everything is working fine, but the segfault is still there.

netfab commented 7 months ago

Without any explanation the segfault disappeared two weeks ago. Still the same version of nvidia-drivers, and steam was updated one week after the segfault disappeared. ?

(closing)