Astrophysical and cosmological doomsdays