Carmaker recalls more than a million vehicles after finding a bug in its emergency call software.