Several of my civs have gotten stuck on the edge of rivers and oceans. It looks like they think the ocean is accessible terrain and is trying to cross it. I have also noticed it is always in areas where there is a small sea between two rivers.