Action sports and lifestyle retailer Pacific Sunwear of California has moved to a profit in the second quarter thanks to growing sales and a gain on derivative liability.