Global shares retreat, oil futures extend rally