If a stomach ulcer bursts, it can cause a fatal condition called peritonitis. Peritonitis occurs when the stomach acid and other digestive juices leak out of the ulcer and into the abdomen. This can cause inflammation and infection of the abdominal cavity.