The maiden flight of the Ariane 5 rocket failed just 37 seconds after launch due to a software error. The inertial reference system software, which was reused from the Ariane 4 without modification, contained an exception that caused program shutdown when a variable overflowed. This failure brought down the whole system as it was not designed to handle single failures. The problem could have been avoided by better testing and review of the reused software to ensure it was suitable for Ariane 5 operations.