You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OP_POP_REPL pops the value off the stack and then attempts to print it if it's a non-nil value. OP_POP_REPL also has a call to tableSet, this can trigger a GC if the table needs to resize. Since the value has been popped off the stack, there is potential that it's not being tracked by the GC so when we attempt to print the value it's attempting to print something thats been free'd causing a segfault to occur.
Expected Behavior
No segfault.
Steps To Reproduce
This was found when testing the following PR with Dictu built in debug: #445
Is there an existing issue for this?
Current Behavior
OP_POP_REPL
pops the value off the stack and then attempts to print it if it's a non-nil value.OP_POP_REPL
also has a call totableSet
, this can trigger a GC if the table needs to resize. Since the value has been popped off the stack, there is potential that it's not being tracked by the GC so when we attempt to print the value it's attempting to print something thats been free'd causing a segfault to occur.Expected Behavior
No segfault.
Steps To Reproduce
This was found when testing the following PR with Dictu built in debug: #445
In the repl enter the following
Anything else?
No response
The text was updated successfully, but these errors were encountered: