If the deleted object is in the same bin as another, it crashes here, as the linked list has been changed out from under the loop. Maybe it needs documenting or I missed it somewhere...
Are you removing the shape in a collision callback? That has been a known limitation for years. The new documentation hasn't been kept up as well as I should have kept it though. It's entirely possible that I didn't mention it at all. :-\