In rare cases, Pneumocystis carinii pneumonia may produce cavitary change, as shown here grossly in lung.