mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
Print details in uncaught SEH exception handler
This commit is contained in:
parent
a77c37da8e
commit
fb303f5205
@ -933,9 +933,15 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi)
|
|||||||
|
|
||||||
DisplayInfoMessage(ofs);
|
DisplayInfoMessage(ofs);
|
||||||
|
|
||||||
ofs << "Stacktrace:\n"
|
std::ios::fmtflags savedflags(ofs.flags());
|
||||||
<< boost::stacktrace::stacktrace()
|
ofs << std::showbase << std::hex
|
||||||
<< "\n";
|
<< "\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);
|
DisplayBugMessage(ofs);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user