mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[GH-ISSUE #879] [shadPS4][MSYS2] Segfault on startup #247
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#247
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nnn27 on GitHub (Sep 12, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/879
Environment:
Description:
Emulator crashes on an early init stage before any logs can be collected. It seems to be caused by a dependency between globals - g_trophy_ui calls AddLayer in its constructor causing an operation on change_layers which is also a global. Afaik this is undefined behavior as there is no predefined order for global variable initialization. Wrapping change_layers as a static function variable seems to fix the issue. Below you can find the backtrace and my quick workaround.
Backtrace:
Workaround:
@abouvier commented on GitHub (Sep 13, 2024):
Same error on Arch Linux, you should propose a pull request ;)
@nnn27 commented on GitHub (Sep 14, 2024):
Fixed in #907