--- old/src/hotspot/share/utilities/vmError.cpp 2018-09-13 12:39:21.965026954 +0530 +++ new/src/hotspot/share/utilities/vmError.cpp 2018-09-13 12:39:21.841026955 +0530 @@ -1562,7 +1562,11 @@ #endif tty->print_cr("\"%s\"...", cmd); +#if defined(LINUX) + if (os::vfork_and_exec(cmd) < 0) { +#else if (os::fork_and_exec(cmd) < 0) { +#endif tty->print_cr("os::fork_and_exec failed: %s (%s=%d)", os::strerror(errno), os::errno_name(errno), errno); }