• antirez's avatar
    Lua debugger: fix crash printing nested or deep objects. · a75aa4bf
    antirez authored
    Example of offending code:
    
    > script debug yes
    OK
    > eval "local a = {1} a[1] = a\nprint(a)" 0
    1) * Stopped at 1, stop reason = step over
    2) -> 1   local a = {1} a[1] = a
    > next
    1) * Stopped at 2, stop reason = step over
    2) -> 2   print(a)
    > print
    
    ... server crash ...
    
    Close #2955.
    a75aa4bf
scripting.c 84.5 KB