|
|
|
@ -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|MiniDumpWithDataSegs|MiniDumpFilterMemory, &exceptionInformation, NULL, NULL);
|
|
|
|
|
ok = dbghelp_MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), fileHandle, MiniDumpNormal|MiniDumpWithDataSegs|MiniDumpWithIndirectlyReferencedMemory, &exceptionInformation, NULL, NULL);
|
|
|
|
|
CloseHandle(fileHandle);
|
|
|
|
|
if (ok) {
|
|
|
|
|
zend_error(E_ERROR, "Saved dump file to '%s'", crash_dumpPath);
|
|
|
|
@ -3435,7 +3435,7 @@ static void xcache_init_crash_handler() /* {{{ */
|
|
|
|
|
#else
|
|
|
|
|
#define REVISION ""
|
|
|
|
|
#endif
|
|
|
|
|
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s%s-%lu-%lu.dmp", xc_coredump_dir, zend_get_module_version("standard"), XCACHE_VERSION, REVISION , (unsigned long) time(NULL), (unsigned long) GetCurrentProcessId());
|
|
|
|
|
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s%s-%lu-%lu.dmp", xc_coredump_dir, zend_get_module_version("standard"), XCACHE_VERSION, REVISION, (unsigned long) time(NULL), (unsigned long) GetCurrentProcessId());
|
|
|
|
|
#undef REVISION
|
|
|
|
|
|
|
|
|
|
oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter);
|
|
|
|
|