In some cases, the use of incompatible cleaning solvents can cause pitting. In stainless rifle barrels, the combination of the copper removal solvent 'Sweets', followed by Shooter's Choice was found to corrode the bore of quite a few rifles. It's also well known that salt spray will corrode stainless guns if not cleaned off promptly.