The gaping crack, over one feet long, was discovered in time near the Chamraua railway crossing between Moradabad and Rampur.
The last train to pass the route was a train bound for Ajmer, an official said. The track has since been repaired.
Divisional Railway Manager A.K. Singhal said the fracture appeared to be a result of the cold weather but added that a probe had been ordered.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)