local b=physics.body(POLYGON,vec2(10,10),vec2(10,10),vec2(10,10))
b.mask={1} -- crash
i can confirm the crash happens, but it seems more related to the fact that the vectors do not create a shape,
local b=physics.body(POLYGON,vec2(10,10),vec2(10,11),vec2(11,11))
b.mask={1} -- no crash
True, but the crash only happen (during my tests) with both lines of code.
local b=physics.body(POLYGON,vec2(10,10),vec2(10,10),vec2(10,10))
-- no crash