Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Possible stack leak #202

Closed
KevBruner opened this issue Mar 15, 2024 · 1 comment
Closed

Possible stack leak #202

KevBruner opened this issue Mar 15, 2024 · 1 comment
Labels
bug Something isn't working closed-for-archiving

Comments

@KevBruner
Copy link

While debugging an issue using getVariant with a table that had a __pairs metamethod, I noticed that the stack top was creeping up 1 index per frame, even before I started modifying code.

By adding printf( "stack top %d\n", lua_gettop(state)); at the entry of getVariant it would produce a result that was constantly incrementing, which is suspicious. I'm not familiar enough with the rest of the code to investigate more deeply at the moment.

@KevBruner KevBruner added the bug Something isn't working label Mar 15, 2024
@SumianVoice
Copy link

Possible relation to #208?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working closed-for-archiving
Projects
None yet
Development

No branches or pull requests

3 participants