I think the real danger with a PhD program is that it is so easy to wander into a program, especially once you've gotten a master's degree. It feels like the right move and the next logical step, just like the previous degrees were. It's almost painless to stick around, look into interesting topics, get paid a livable salary, do some research and attend a few conferences. It can even feel like real meaningful work, without the indignity of having to find and start a job.
There is this kind of background worry that the whole thing is getting nowhere productive, or at least not at all where it's supposed to go, but it takes a few years to build up. That ends up blossoming into the regret of three years wasted, instead of a few stressful months (if that) in job limbo.
It's not all bad though. My curious distraction from my 'real work' was learning to program. I ended up with an employable skill that I enjoy using and building on. Still, though, 3 years.