shadow mapping tends to have numerical precision issue that causes self-occlusion, which can be solved by adding a depth bias. However, this can also introduce the detached shadow (peter panning) effect.

Figure

Image from RTR4