--- old/src/share/vm/utilities/vmError.cpp 2010-09-15 10:08:40.000000000 -0700 +++ new/src/share/vm/utilities/vmError.cpp 2010-09-15 10:08:40.000000000 -0700 @@ -845,6 +845,9 @@ log_done = true; } + // Flush buffered output, finish log files before OnError + // commands are executed. + ostream_abort(); static bool skip_OnError = false; if (!skip_OnError && OnError && OnError[0]) {