mirror of https://github.com/Icinga/icinga2.git
Print details in uncaught SEH exception handler
This commit is contained in:
parent
68e4b807d1
commit
e11b4b7b55
|
@ -937,9 +937,15 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi)
|
|||
|
||||
DisplayInfoMessage(ofs);
|
||||
|
||||
ofs << "Stacktrace:\n"
|
||||
<< boost::stacktrace::stacktrace()
|
||||
<< "\n";
|
||||
std::ios::fmtflags savedflags(ofs.flags());
|
||||
ofs << std::showbase << std::hex
|
||||
<< "\nSEH exception:\n"
|
||||
<< " Code: " << exi->ExceptionRecord->ExceptionCode << "\n"
|
||||
<< " Address: " << exi->ExceptionRecord->ExceptionAddress << "\n"
|
||||
<< " Flags: " << exi->ExceptionRecord->ExceptionFlags << "\n";
|
||||
ofs.flags(savedflags);
|
||||
|
||||
ofs << "\nStacktrace:\n" << boost::stacktrace::stacktrace() << "\n";
|
||||
|
||||
DisplayBugMessage(ofs);
|
||||
|
||||
|
|
Loading…
Reference in New Issue