So depending on where the ulcer is, the pain can be anywhere in the upper GI tract. You could have ulcerations in the esophagus. You could have ulcerations in the lining of your stomach. You could also have ulcerations in your small bowel. The pain can be associated with food or can get worse when you don’t eat food, depending on the location of the ulcer. And it could be exacerbated by multiple medications.