mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
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);
|
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