Gastric ulcers are open sores that develop in the lining of the stomach. They can cause pain, discomfort, and a burning sensation in the upper abdomen. Common causes of gastric ulcers include bacterial infections, prolonged use of nonsteroidal anti-inflammatory drugs (NSAIDs), and excess acid production in the stomach.