In the most extreme case , at the end of the Permian period about 250 million years ago , there were mass extinctions on land and at sea linked to high levels of carbon dioxide and extremely low oxygen levels in the waters .