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:
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.6 OS:Windows
Assigned to: CPU Architecture:Any

[17 May 2017 14:51] Mikiya Okuno
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");

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

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.