CSX said Thursday the train, which was transporting cars, had to make an emergency stop to avoid hitting a semitruck that had bottomed out on a crossing.