Everything was running fine then suddenly this, oh yeah upgraded to Sierra before this bug and now using xCode 8.0.
Malloc: * error for object 0x1740b6e00: p
I struggled with this crash for hours before i finally figured out that Safari was responsible. It was due to the option Develop>Device>Automatically show web inspector for JSContext. If it doesn't work try quit Safari completely.
One pic is enough, for more refer to this post,
Disable auto safari or safari preview inspect, below is safari preview.