Bug #86358 data node doesn't generate core files on windows
Submitted: 17 May 2017 14:51
Reporter: Mikiya Okuno Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.6 OS:Microsoft Windows
Assigned to: CPU Architecture:Any

[17 May 2017 14:51] Mikiya Okuno
Description:
According to definition of childAbort() function, no special handling isn't performed on Windows; the process just exits with exit code 255:

static void
childAbort(int error_code, int exit_code, Uint32 currentStartPhase)
{
  writeChildInfo("error", error_code);
  writeChildInfo("sphase", currentStartPhase);
  fprintf(angel_info_w, "\n");
  fclose(angel_info_w);

#ifdef _WIN32
  // Don't use 'abort' on Windows since it returns
  // exit code 3 which conflict with NRT_NoStart_InitialStart
  ndbd_exit(exit_code);
#else
  signal(SIGABRT, SIG_DFL);
  abort();
#endif
}

How to repeat:
Enable --core-file option on Windows, then crash the data node.

Suggested fix:
Call MiniDumpWriteDump() function just like what my_create_minidump() function in mysys/stacktrace.c does.