Penetration of a peptic ulcer through the wall of duodenum or stomach allowing the leakage of luminal contents into the peritoneal cavity.