Finally , and most ominously , the warrant could undermine the 2005 Comprehensive Peace Agreement ( CPA ) between northern and southern Sudan , which brought to an end a civil war that lasted 20 years and cost more than 2 million lives .