What is the diagnosis?

This erect chest xray shows free gas under both diaphragms consistent with perforation of a hollow viscus. (See below for further details.)
pneumoperitoneum