On August 1, 2012, Knight Capital’s trading system sent 4 million erroneous orders into the market in 45 minutes, costing the company $460 million . The root cause had been sitting in the codebase for years: dormant code that became dangerous only when a later change brought it back into play.