One popular scenario imagines a corporation designing the first artificial super-intelligence, and giving it an innocent test such as calculating pi.
Before anyone realises what is happening, the AI takes over the planet, eliminates the human race, launches a conquest campaign to the end of the galaxy, and transforms the entire known universe into a giant super-computer that for billions upon billions of years calculates pi ever more accurately.
After all, this is the divine mission its creator gave it.