Julian Brost
6f531c5c5d
Merge pull request #8619 from Icinga/feature/opensuse152
...
GitHub actions: build openSUSE v15.2
2021-03-05 16:40:30 +01:00
Julian Brost
5ec66cea46
Merge pull request #8003 from Icinga/feature/snmp-interface-a-7963
...
check_snmp_int: support -a
2021-03-05 16:11:02 +01:00
Julian Brost
014dbb3bc0
Merge pull request #8621 from Icinga/feature/sles152
...
GitHub actions: build SLES v15.2
2021-03-05 09:01:57 +01:00
Alexander Aleksandrovič Klimov
c2be914e21
Merge pull request #8663 from Icinga/probot/sync-changelog/d8c01f4a7ab56dff0fbfd392cd2ca7c9c63b49c8
...
CHANGELOG.md: add v2.11.8
2021-03-04 18:03:45 +01:00
Noah Hilverling
909dcc4a4d
CHANGELOG.md: add v2.11.8
2021-03-04 17:02:43 +00:00
Alexander Aleksandrovič Klimov
d8c01f4a7a
Merge pull request #8662 from Icinga/probot/sync-changelog/1dbc42eea6e034ee9b5832c488812a6cc0d1662f
...
CHANGELOG.md: add v2.11.7
2021-03-04 18:02:31 +01:00
Julian Brost
13b63882b6
CHANGELOG.md: add v2.11.7
2021-03-04 17:01:31 +00:00
Alexander Aleksandrovič Klimov
1dbc42eea6
Merge pull request #8661 from Icinga/probot/sync-changelog/a3daae442a792b5ff63af560f9a3dc1c77d5d45b
...
CHANGELOG.md: add v2.11.6
2021-03-04 18:01:18 +01:00
Julian Brost
b4774f4836
CHANGELOG.md: add v2.11.6
2021-03-04 17:00:16 +00:00
Alexander Aleksandrovič Klimov
a3daae442a
Merge pull request #8660 from Icinga/probot/sync-changelog/52f82b2e898473281d4d70f25569af0d6ce60dc3
...
CHANGELOG.md: add v2.11.5
2021-03-04 18:00:01 +01:00
Alexander A. Klimov
aa386b6aaa
CHANGELOG.md: add v2.11.5
2021-03-04 16:59:06 +00:00
Alexander Aleksandrovič Klimov
52f82b2e89
Merge pull request #8659 from Icinga/probot/sync-changelog/4c722b20a44dd882b549b4c29b8e28e13025ad33
...
CHANGELOG.md: add v2.11.4
2021-03-04 17:58:54 +01:00
Noah Hilverling
4606edc69d
CHANGELOG.md: add v2.11.4
2021-03-04 16:57:52 +00:00
Alexander Aleksandrovič Klimov
4c722b20a4
Merge pull request #8658 from Icinga/probot/sync-changelog/2581a465366fab9f16bfa5876d4b4e230c26ba65
...
CHANGELOG.md: add v2.10.7
2021-03-04 17:57:36 +01:00
Michael Friedrich
c7cae4ec14
CHANGELOG.md: add v2.10.7
2021-03-04 16:55:13 +00:00
Alexander Aleksandrovič Klimov
2581a46536
Merge pull request #8657 from Icinga/probot/sync-changelog/faa513a1793558dd54004cac3c84e60be151a12a
...
CHANGELOG.md: add v2.10.6
2021-03-04 17:55:00 +01:00
Michael Friedrich
64b0220cc1
CHANGELOG.md: add v2.10.6
2021-03-04 16:53:58 +00:00
Alexander Aleksandrovič Klimov
faa513a179
Merge pull request #8656 from Icinga/probot/sync-changelog/30b4b20280f1446bc253c8edf45ebb41a2a6ba7f
...
CHANGELOG.md: add v2.9.3
2021-03-04 17:53:43 +01:00
Michael Friedrich
60cfee1862
CHANGELOG.md: add v2.9.3
2021-03-04 16:49:02 +00:00
Julian Brost
30b4b20280
Merge pull request #8620 from Icinga/feature/fedora33
...
GitHub actions: build Fedora v33
2021-03-04 17:48:50 +01:00
Alexander A. Klimov
b81c3dea99
GitHub actions: build openSUSE v15.2
2021-03-04 17:48:42 +01:00
Alexander A. Klimov
4457719035
GitHub actions: build SLES v15.2
2021-03-04 17:47:33 +01:00
Alexander A. Klimov
4eddac0e64
Icinga DB: re-insert only changed object attributes
2021-03-04 17:29:39 +01:00
Alexander A. Klimov
f60758dc7c
JsonRpcConnection: always log errors
2021-03-04 16:23:07 +01:00
Alexander Aleksandrovič Klimov
618c778430
Merge pull request #8649 from Icinga/bugfix/icingadb-deduplicate-cvs
...
Icinga DB: HMSET the same fields only once
2021-03-03 16:57:27 +01:00
Noah Hilverling
0b55073964
Merge pull request #8641 from Icinga/bugfix/icingadb-types
...
Icinga DB: don't write all types
2021-03-03 14:47:33 +01:00
Julian Brost
c5626cb793
Stacktrace test: try to prevent inlining even harder
...
- Explicitly disable optimizations for MSVC
- Make stack_test_func_a bigger
2021-03-01 16:08:06 +01:00
Julian Brost
1742e31225
Add comments to stack trace formatter and test case
2021-03-01 14:07:11 +01:00
Julian Brost
3ad9d3316c
Compile with -D_GNU_SOURCE
...
Needed by `boost::stacktrace` for `_Unwind_Backtrace()`.
2021-03-01 14:07:11 +01:00
Julian Brost
cdfcef4d63
CMakeLists: use HAVE_LIBEXECINFO only after actually checking for it
...
So far, the check that actually sets HAVE_LIBEXECINFO was executed after
it was already used to add dependencies.
2021-03-01 14:07:11 +01:00
Julian Brost
24f6283362
Add a test case for the stack trace formatter
2021-03-01 14:07:11 +01:00
Julian Brost
b931194f59
Use backtrace_symbols() when printing stack traces on FreeBSD
...
Unfortunately, the symbol resolution of boost::stacktrace is broken on
FreeBSD, therefore fall back to using backtrace_symbols() to print the
stack trace saved by Boost.
Additionally, -D_GNU_SOURCE is required on FreeBSD for the
_Unwind_Backtrace function used by boost::stacktrace.
2021-03-01 14:07:09 +01:00
Julian Brost
7d3885d05c
Crash handlers: use more compact string representation
2021-03-01 14:06:47 +01:00
Julian Brost
710cd7287f
Begin crash log for SIGABRT with error message and timestamp
...
This makes the format more similar to what the uncaught C++ and SEH
exception handlers write. Previously there was no indication in the
crash log that a SIGABRT happened.
2021-03-01 14:06:47 +01:00
Julian Brost
f084cdecbe
Windows: require at least MSVC 19.20 to build
...
Older versions of MSVC fail to rethrow an unhandled C++ exception (using
`throw;`) in the termination handler (`std::set_terminate`), however
Icinga relies on this behavior in its crash handler
(`Application::ExceptionHandler`).
2021-03-01 14:06:47 +01:00
Julian Brost
532d37624f
docs: mention use of boost::stacktrace
2021-03-01 14:06:47 +01:00
Julian Brost
1ad233da86
Add some comments to __cxa_throw
...
Maybe this will save the next person who has to look at this code some
time. Please don't blame me for the implementation, I'm just trying to
reconstruct what it does.
2021-03-01 14:06:47 +01:00
Julian Brost
e60dd51284
Restructure stack and context trace selection in DiagnosticInformation and document behavior
...
The logic for selecting the traces to print stays the same, but there
are fewer nested ifs now. This changes the format of the returned string
a bit by adding a heading for both traces.
2021-03-01 14:06:47 +01:00
Julian Brost
7f2868ab36
Add documentation for cast_exception function
2021-03-01 14:06:47 +01:00
Julian Brost
15a16b23d9
Pass fallback stacktrace to DiagnosticInformation in terminate handler
...
By default, DiagnosticInformation uses the stack trace saved when the
exception was thrown, but this mechanism is not in use on Windows.
Gathering a stacktrace in the terminate handler serves as a fallback.
2021-03-01 14:06:47 +01:00
Julian Brost
5cb7c7cc09
Replace icinga::StackTrace with boost::stacktrace::stacktrace
...
Provides roughly the same functionality but works better on certain
platforms (especially Windows) and is less code to maintain.
2021-03-01 14:06:44 +01:00
Julian Brost
e11b4b7b55
Print details in uncaught SEH exception handler
2021-03-01 14:05:27 +01:00
Julian Brost
68e4b807d1
Move error message and time to the beginning of the SEH crash log
...
This is more similar to the normal exception crashlog which also states
the problem and time at the beginning of the file.
2021-03-01 14:05:27 +01:00
Julian Brost
0db59bad83
Use boost::stacktrace instead of custom implementation in Windows SEH filter
2021-03-01 14:05:27 +01:00
Julian Brost
f8b7a1511b
Run termination handler for uncaught C++ exceptions on Windows
...
On Windows, the termination handler is executed for uncaught C++
exceptions unless a SEH unhandled exception filter is also set. In this
case, this filter has to explicitly chain the default filter to keep
this behavior.
2021-03-01 14:05:27 +01:00
Alexander A. Klimov
1c5f69683f
l_AppVersionInt: respect versions like r2.12.0, not just v2.12.0
...
refs #8628
2021-02-25 15:31:07 +01:00
Alexander A. Klimov
ed57d31400
Icinga DB: HMSET the same fields only once
2021-02-24 13:37:36 +01:00
Noah Hilverling
0b26515c34
Merge pull request #8636 from Icinga/feature/sles151
...
GitHub actions: drop SLES v15.1
2021-02-23 13:30:04 +01:00
Noah Hilverling
82ddb0d82b
Merge pull request #8637 from Icinga/feature/opensuse151
...
GitHub actions: drop openSUSE v15.1
2021-02-23 13:29:46 +01:00
Alexander A. Klimov
d4a91ec50d
Icinga DB: don't write all types
2021-02-17 12:41:45 +01:00