One more... no, not div by zero. Got invalid floating point operation on cpSpaceHash.c: 230 while trying to add a new shape in scene:
static inline int
floor_int(cpFloat f)
{
int i = (int)f;
...
it caused by uninitialized values of shape->bb.
Initialization has been commented for some reason cpShape.c:65
// cpShapeCacheBB(shape);
shape may have huge bb size and filll whole hash space, also may lead to very long loop casescpSpaceHash:245.