[PD] Why does this cause stack overflow?