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

Half-Life: game crash, buffer overflow detected *** #344

Closed blshkv closed 8 months ago

blshkv commented 9 months ago

I started to experience a game crash after a recent upgrade

* Privileges set

*** buffer overflow detected ***: terminated
ERROR: ld.so: object '/home/blshkv/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
crash_20231125160814_3.dmp[5341]: Uploading dump (out-of-process)
/tmp/dumps/crash_20231125160814_3.dmp
/data/games/steamapps/common/Half-Life/hl.sh: line 83:  5288 Aborted                 ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20231125160814_3.dmp[5341]: Finished uploading minidump (out-of-process): success = yes
crash_20231125160814_3.dmp[5341]: response: Discarded=1
crash_20231125160814_3.dmp[5341]: file ''/tmp/dumps/crash_20231125160814_3.dmp'', upload yes: ''Discarded=1''
pid 5341 != 5340, skipping destruction (fork without exec?)
Game 10 created interface STEAMAPPS_INTERFACE_VERSION008 / 
Game 10 created interface STEAMHTTP_INTERFACE_VERSION003 / 
Game 10 created interface SteamController008 / 
Game 10 created interface SteamFriends017 / 
Game 10 created interface SteamInput006 / 
Game 10 created interface SteamMatchMaking009 / 
Game 10 created interface SteamMatchMakingServers002 / 
Game 10 created interface SteamNetworkingSockets012 / 
Game 10 created interface SteamNetworkingUtils004 / 
Game 10 created interface SteamUser023 / 
Game 10 created interface SteamUser023 / User
Game 10 created interface SteamUtils010 / 
Game 10 method call count for IClientNetworkingUtilsSerialized::GotLocationString : 2
Game 10 method call count for IClientNetworkingSocketsSerialized::GetSTUNServer : 2
Game 10 method call count for IClientControllerSerialized::DeactivateAllActionSetLayers : 5
Game 10 method call count for IClientControllerSerialized::ActivateActionSetLayer : 4
Game 10 method call count for IClientControllerSerialized::GetActionSetHandle : 9
Game 10 method call count for IClientAudio::StopVoiceRecording : 2
Game 10 method call count for IClientHTTP::GetHTTPDownloadProgressPct : 167
Game 10 method call count for IClientHTTP::ReleaseHTTPRequest : 2
Game 10 method call count for IClientHTTP::GetHTTPResponseBodyData : 2
Game 10 method call count for IClientHTTP::SendHTTPRequest : 6
Game 10 method call count for IClientHTTP::SetHTTPRequestHeaderValue : 9
Game 10 method call count for IClientHTTP::SetHTTPRequestContextValue : 4
Game 10 method call count for IClientHTTP::CreateHTTPRequest : 6
Game 10 method call count for IClientConfigStore::GetString : 2
Game 10 method call count for IClientConfigStore::GetInt : 2
Game 10 method call count for IClientAppManager::GetCurrentLanguage : 2
Game 10 method call count for IClientAppManager::GetLaunchCommandLine : 2
Game 10 method call count for IClientAppManager::BIsDlcEnabled : 215
Game 10 method call count for IClientMatchmaking::EnsureFavoriteGameAccountsUpdated : 1
Game 10 method call count for IClientMatchmaking::ReleaseGMSQuery : 1
Game 10 method call count for IClientMatchmaking::GetGMSQueryResults : 1
Game 10 method call count for IClientMatchmaking::PollGMSQuery : 71
Game 10 method call count for IClientMatchmaking::BeginGMSQuery : 1
Game 10 method call count for IClientMatchmaking::AddFavoriteGame : 1
Game 10 method call count for IClientMatchmaking::GetFavoriteGame : 16
Game 10 method call count for IClientMatchmaking::GetFavoriteGameCount : 3
Game 10 method call count for IClientUtils::RecordSteamInterfaceCreation : 18
Game 10 method call count for IClientUtils::GetAPICallResult : 6
Game 10 method call count for IClientUtils::GetAppID : 21
Game 10 method call count for IClientFriends::SetRichPresence : 374
Game 10 method call count for IClientFriends::GetFriendRelationship : 1
Game 10 method call count for IClientFriends::GetPersonaName : 2
Game 10 method call count for IClientUser::BIsSubscribedApp : 215
Game 10 method call count for IClientUser::AdvertiseGame : 35
Game 10 method call count for IClientUser::InitiateGameConnection : 3
Game 10 method call count for IClientUser::TerminateGameConnection : 2
Game 10 method call count for IClientUser::IsVACBanned : 8
Game 10 method call count for IClientUser::GetSteamID : 2
Game 10 method call count for IClientUser::BLoggedOn : 1
Uploaded AppInterfaceStats to Steam
[2023-11-25 16:08:32] Shutdown
blshkv commented 9 months ago

emerge_info.txt

chewi commented 9 months ago

You didn't say whether you meant a system update or the recent big update to the game. It's more likely to be the latter. This could be your hardened profile, but it's hard to say for sure. It doesn't work for me either, but in my case, it just hangs without showing anything.

chewi commented 9 months ago

Cancel that. It worked for me after restarting Steam. I still think it's the hardened profile in your case. I don't know whether you've enabled the Steam runtime or not, but try flipping that setting.

blshkv commented 9 months ago

so I do have "steamruntime" use flag enabled. By update, I meant gentoo update and it was like 1 week since the previous update. It could be steam update too, I don't pay attention much on that process. Few things I noticed:

also, here is system logs:

Nov 26 12:42:24 pt2 kernel: nvidia-modeset: WARNING: GPU:0: BOE Technology Group Co., Ltd (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.
Nov 26 12:42:24 pt2 kernel: nvidia-modeset: WARNING: GPU:0: BOE Technology Group Co., Ltd (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.
Nov 26 12:42:32 pt2 kernel: nvidia-modeset: WARNING: GPU:0: BOE Technology Group Co., Ltd (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.
Nov 26 12:43:05 pt2 crash_20231126124304_3.dmp[27890]: Uploading dump (out-of-process)
/tmp/dumps/crash_20231126124304_3.dmp
Nov 26 12:43:07 pt2 crash_20231126124304_3.dmp[27890]: Finished uploading minidump (out-of-process): success = yes
Nov 26 12:43:07 pt2 crash_20231126124304_3.dmp[27890]: response: CrashID=bp-e3494627-8cce-480e-97ee-4a8c22231125
Nov 26 12:43:07 pt2 crash_20231126124304_3.dmp[27890]: file ''/tmp/dumps/crash_20231126124304_3.dmp'', upload yes: ''CrashID=bp-e3494627-8cce-480e-97ee-4a8c22231125''
Nov 26 12:43:15 pt2 kernel: nvidia-modeset: WARNING: GPU:0: BOE Technology Group Co., Ltd (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible
chewi commented 9 months ago

It's a stab in the dark, but try enabling the hash-sysv-compat USE flag against sys-libs/glibc.

blshkv commented 9 months ago

yeap, I was trying to workaround and enabled before.

[ebuild   R    ] sys-libs/glibc-2.37-r7:2.2::gentoo  USE="cet hash-sysv-compat multiarch (multilib) (ssp) stack-realign (static-libs) -audit -caps -compile-locales (-crypt) (-custom-cflags) -doc -gd -headers-only -multilib-bootstrap -nscd -perl -profile (-selinux) -suid -systemd -systemtap -test (-vanilla)" 0 KiB
blshkv commented 8 months ago

funny enough, it started to work again after a recent upgrade. A new kernel, new NVIDIA driver. So it's hard to say what caused the issue exactly... Closing for now.