What kind of disaster destroyed life on Earth in Cormac McCarthy's novel The road?

This novel is set after the apocalypse. Scientists have predicted that a large volcanic eruption, collision with another planet or large mass in space, or complications with the sun will cause the apocalypse. No one will know until it comes, however, so it is difficult to be certain.