luaG_runerror
function · lua · boundary
- Address
0x6fc870· 40 bytes, up to0x6fc897- Signature
void __cdecl (lua_State *L, const char *fmt, ...)- Meaning
- Formats an error message, passes it to 0x6fc8a0 and throws it through luaG_errormsg
- Confidence
- verified, proof two
- Finding
- ui/luastate#stack-room-and-run-errors
Finding: Stack room and run errors in ui: the Lua state, its library and C functions
lua_checkstack(L, n) (0x6f2f30) returns 0 when the slots in use, (top − base) / 16, plus n
exceed 2048. Otherwise it grows the stack with luaD_growstack(L, n) when stack_last − top is at
most 16·n bytes, raises the current call's top to top + 16·n when it is lower, and returns 1.
luaG_runerror(L, fmt, ...) (0x6fc870) formats the message with luaO_pushvfstring, passes it
to 0x6fc8a0 and calls luaG_errormsg, which throws. When bit 0 of the current call's +8 is
clear, 0x6fc8a0 pushes %s:%d: %s of the text 0x6f5c40 writes, the number 0x6fbef0 returns
and the message. The census finds 37 calls of 0x6f2f30 and 32 of 0x6fc870.
The derivation is in the doc.
Callers 24
- luaD_growCI lua
- luaD_call lua
- resume lua
- lua_yield lua
- luaV_gettable lua
- luaV_settable lua
- luaV_concat lua
- luaV_execute lua
- Arith lua
- luaH_index lua
- setnodevector lua
- luaH_set lua
- lua_getinfo lua
- luaG_typeerror lua
- luaG_ordererror lua
- luaM_growaux lua
- LoadFunction lua
- unexpectedEOZ lua
- LoadInt lua
- LoadUpvalues lua
- LoadConstants lua
- LoadHeader lua
- LoadSignature lua
- TestSize lua
Callees 3
- luaO_pushvfstring lua
- luaG_errormsg lua
- addinfo lua
Calls and jumps by a bare address, from tables/calls.tsv.