In order to stop this happening, the tracks are laid with
gaps between them called expansion joints. When it gets warm, the track can
expand to fill these gaps, without buckling the track. It is the sound of the train wheels passing over these expansion joints which gives the train its characteristic "clickity-clack" sound. The image below shows an expansion joint in a set of railroad tracks:-