Browse Source

collect more info in minidump

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@921 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
e1075d12e9
  1. 4
      xcache.c

4
xcache.c

@ -3374,7 +3374,7 @@ static LONG WINAPI miniDumperFilter(struct _EXCEPTION_POINTERS *pExceptionInfo)
exceptionInformation.ClientPointers = FALSE;
/* write the dump */
ok = dbghelp_MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), fileHandle, MiniDumpNormal, &exceptionInformation, NULL, NULL);
ok = dbghelp_MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), fileHandle, MiniDumpNormal|MiniDumpWithDataSegs|MiniDumpFilterMemory, &exceptionInformation, NULL, NULL);
CloseHandle(fileHandle);
if (ok) {
zend_error(E_ERROR, "Saved dump file to '%s'", crash_dumpPath);
@ -3438,7 +3438,7 @@ static void xcache_init_crash_handler() /* {{{ */
phpVersion = "unknown";
}
}
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu.dmp", xc_coredump_dir, phpVersion, XCACHE_VERSION, (unsigned long) GetCurrentProcessId());
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu-%lu.dmp", xc_coredump_dir, phpVersion, XCACHE_VERSION, (unsigned long) time(NULL), (unsigned long) GetCurrentProcessId());
oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter);
}

Loading…
Cancel
Save