On Thu, Nov 13, 2014 at 10:14:17AM -0500, Peter Colberg wrote: > and LuaJIT still finalizes some objects twice as described. It appears this only happens with pointer types. Objects of this type are finalized exactly once: typedef struct _cl_event { void *p; } cl_event; Objects of either of these types are sporadically finalized twice: typedef struct _cl_event *cl_event; typedef void *cl_event; Does this help with localizing the issue? Thanks, Peter