Utah train rips trailer apart in violent crash

A double-decker train which smashed into a FedEx trailer in Utah over the weekend only narrowly missed hitting the cab.

Two men had a lucky escape when the train collided with the back of the semi-trailer on Saturday (local time), ripping cardboard boxes within and sending pieces flying into the air.

Neither the men nor the 82 passengers on board the train were seriously injured in the violent collision.

Authorities are investigating why the crossing's barriers failed to come down before the train drove through.

The flashing lights and bells which indicate a train is coming through also failed to activate.

A spokesperson for Utah Transit Authority (UTA) says the arms were forced into a safety default mode earlier in the day due to the cold and ice, before popping back up.

"The agency has never had an accident like this before, and UTA is investigating why and how it happened to ensure it doesn't occur again," the agency said in a statement.

North Salt Lake City police released dashboard camera video of the spectacular crash on Tuesday.