The near-term outlook suddenly looks precarious for a stock market near all-time highs.