Module: check_mk
Branch: master
Commit: a476038710272c50904438446691d1c71164583e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a476038710272c…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue May 24 10:54:13 2016 +0200
3136 windows agent: improved crash reporting
With crash debug enabled the agent will now report the windows exception code on crash
as well as the address causing the crash and the exact git revision he agent was built
from.
On 64bit systems it will also print a full backtrace including register contents.
Technical details:
Our official builds are built with mingw-w64, so we can't use windows api to resolve
debugging symbols in our own binaryi. These frames will only include addresses, while
api calls are resolved.
However, the agent is now built with dwarf-2 debugging symbols (outdated but better
tool support) and stripped of symbols in a separate build step. With the correct
unstripped exe the adresses can still be resolved using addr2line:
addr2line -e check_mk_agent-64.unstripped.exe <address>
---
.werks/3136 | 22 +++
ChangeLog | 1 +
agents/windows/.gitignore | 1 +
agents/windows/CONTENTS | 2 +
agents/windows/Makefile | 21 ++-
agents/windows/build_version | 2 +-
agents/windows/check_mk_agent-64.exe | Bin 1250304 -> 1267712 bytes
agents/windows/check_mk_agent-64.unversioned.exe | Bin 1250304 -> 1267712 bytes
agents/windows/check_mk_agent.cc | 9 +-
agents/windows/check_mk_agent.exe | Bin 1223168 -> 1236480 bytes
agents/windows/check_mk_agent.msi | Bin 2741760 -> 2772992 bytes
agents/windows/check_mk_agent.unversioned.exe | Bin 1223168 -> 1236480 bytes
agents/windows/crashhandling.cc | 155 ++++++++++++++++++++++
agents/windows/crashhandling.h | 32 +++++
agents/windows/install_agent-64.exe | Bin 554590 -> 565279 bytes
agents/windows/install_agent.exe | Bin 551424 -> 559579 bytes
16 files changed, 234 insertions(+), 11 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a476038710…