lupa icon indicating copy to clipboard operation
lupa copied to clipboard

Segfault

Open kirillyar opened this issue 5 years ago • 1 comments

Python 3.7.2

from lupa import LuaRuntime

lua_runtime = LuaRuntime()
lua_runtime.table_from({None: {}})

Output python[27326]: segfault at 1 ip 0000000000000001 sp 00007ffe1475e9f8 error 14 in python[400000+290000]

kirillyar avatar Apr 29 '20 09:04 kirillyar

Confirmed. I guess None / null dict/table keys are not a good idea. PR welcome that prevents this case by checking for None explicitly while copying the items.

scoder avatar May 19 '20 12:05 scoder