Report links millisecond software defect to flight chaos and 2,000 cancellations