OS X isn't without some fairly serious issues as well.
http://snowcrash751.blogspot.com/2007/11/why-i-took-os-x-105-off-my-mini.html I don't know of any million plus lines of code application that doesn't have bugs, and security issues.
As far as I know it's not possible for us to create such a thing without problems.