The formation of filamentary voids in solids