Open phy1um opened 2 years ago
The crash occurs when lua_error calls longjmp
, and when longjmp
executes jr ra
, where the register ra
has a value of 0x43. This appears to be outside the range of a valid address for the PS2, and causes the crash.
This may be on the path to being resolved in 1674e9e with the merge of #62
I have experimented with some Lua compiler flags which seem to resolve this issue. More investigation needed, hopefully I can get this working without sacrificing GCC optimizations.
When Lua encounters a syntax error it triggers a segfault so extreme it even crashes PCSX2!