mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Seven GUI-thread readers held only g_frameMutex, which guards against the CPU thread mutating state but not against the core being torn down - and two of PSP_Shutdown's paths (EmuScreen::sendMessage, ProcessScreenSwitches) run outside that span entirely. CtrlThreadList::reloadThreads walking kernel objects that __KernelShutdown had freed was the concrete crash; the symbol map readers (CDisasm::Show/NotifyMapLoaded, CtrlModuleList, CtrlWatchList) had the same shape. Always g_frameMutex first, then Memory::Lock(). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZq8ZtJmFY7bkX5FVkr3P9