US stocks have slumped on worries about China and Greece in a session that was overshadowed by a lengthy outage at the New York Stock Exchange.