Black Holes
In a black hole, all the mass of the core of the star has collapsed past anything that might hold it into a finite volume.
However, the mass of the core is still there, and its gravity will decrease with distance pretty much as normal.
But since the mass has collapsed, we can get gravities so strong near the star that even light cannot escape.