With the running fracture of the main gas pipeline, a longitudinal crack can stop propagating in one of two ways. The first way is arresting the crack without changing its direction due to the energy transferred from the expansion of the gas becomes less than the energy required to continue opening the crack. The second way is more common, when the crack changes the direction of its propagation from longitudinal to circumferential and forms a loopback. The known mathematical models describe and can predict only the first way to arrest the crack propagation, but so far they cannot simulate the second way. This paper shows that the reason for the realization of the second way is a change in the configuration ("flattening") of the cross-section of the pipe when a crack approaches. This leads to the appearance of radial normal stresses in the pipe wall. If the radial normal stresses exceed longitudinal ones, the planes of maximum tangential stresses change their positions from longitudinal to placing at an angle of 45° to the axis of the pipe. Since the metal is ductile, and the fracture results from tangential stresses, the crack changes its direction and is looped back. This situation takes place when the radius of curvature of flattening becomes less than the pipe diameter.