These unmaskings have been performed through (usually egregious) opsec failures on the part of the user, rather than performed by attacking the Tor network directly.
Also I believe there were some traffic correlation attacks where the attacker was able to get netflow data from both entrance nodes and (?) the traffic destination outside of Tor.