This includes medicines, such as ibuprofen and other common pain relievers. These medicines weaken the ability of the lining to resist acid made in the stomach and can sometimes lead to inflammation of the stomach lining (gastritis), ulcers, bleeding, or perforation of the lining.