my Macbook Pro 13 (2011) turns off immediately after plugging in an iPhone USB cord. It does it only with the iPhone USB cord (not with the one for Kindle for example), because I have tried two different iPhone cords and the result was the same - Macbook turned off. Moreover, only one USB port out of two does it (one closer to the headphones minijack). My Macbook has never done it before and I find it very odd, it just turns off whenever I plug in the cable.
Do you have any suggestions how to solve this?