JIT Sleep: ExecContHelper tries to jump to null address.
Opened this issue · 2 comments
AGraber commented
Seems that jump_lookup_label_
returns 0 and it tries to use that
samp-plugin-jit/src/amxjit/compiler_impl.cpp
Lines 1775 to 1779 in a704bcb
Server crashes after this
AGraber commented
Seems that the 0 comes from the GetJITInstrPtr
function. This check fails and makes it return 0:
samp-plugin-jit/src/amxjit/compiler_impl.cpp
Lines 123 to 127 in 08ed8e6
By the way, there's a previous ExecContHelper that gets executed seemingly fine, the 2nd one is the one that crashes.
Zeex commented
It looks like some code tried to jump to an invalid AMX code address, i.e. address that does not directly match any native/JIT instruction recorded in the instr_table
.