PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org/docs/Introduction
MIT License
337 stars 20 forks source link

segfault using string.dump and debug.getinfo #863

Closed data-man closed 1 month ago

data-man commented 1 month ago

Source: https://groups.google.com/g/lua-l/c/wIzVAwNWTgM

sample = 'print("hello")'
stripped = load(string.dump(load(sample), true))
print(debug.getinfo(stripped, "L").activelines)

$ pluto test.lua

Segmentation fault

Sainan commented 1 month ago

Given that this is an issue in upstream Lua, it will have to be fixed there, and then we will downstream the fix.