Log jam formation by an obstruction in a river