segfault when deleting attributes or items

Bug #236652 reported by Christopher Armstrong
2
Affects Status Importance Assigned to Milestone
Lunatic Python
New
Undecided
Unassigned

Bug Description

Lunatic segfaults when deleting attributes of LuaObjects. I noticed this when experimenting with deleting globals to restrict what my lua environment can do.

>>> import lua; globs = lua.globals()
>>> del globs.io
zsh: segmentation fault python

>>> import lua; lua.execute("x = {a = 3}")
>>> del lua.eval("x")["a"]
zsh: segmentation fault python

Revision history for this message
Jonathan Jacobs (jjacobs) wrote :

This would appear to be caused by not handling the value == NULL case in LuaObject_setattr.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.