[SPARK-16586][CORE] Handle JVM errors printed to stdout.
[SPARK-16586][CORE] Handle JVM errors printed to stdout.

Some very rare JVM errors are printed to stdout, and that confuses
the code in spark-class. So add a check so that those cases are
detected and the proper error message is shown to the user.

Tested by running spark-submit after setting "ulimit -v 32000".

Closes #14231

Author: Marcelo Vanzin <8283fd24ce58e0bb0d6bf349e9064fef42c4d84e@cloudera.com>

Closes #14508 from vanzin/SPARK-16586.

(cherry picked from commit 1739e75fecf0cb9507dc950bba1716f40be1e609)
Signed-off-by: Marcelo Vanzin <8283fd24ce58e0bb0d6bf349e9064fef42c4d84e@cloudera.com>

gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark,gioenn/xSpark