Oran Agra 58ca0b0be2 Assertion and panic, print crash log without generating SIGSEGV
This makes it possible to add tests that generate assertions, and run
them with valgrind, making sure that there are no memory violations
prior to the assertion.

New config options:
- crash-log-enabled - can be disabled for cleaner core dumps
- crash-memcheck-enabled - useful for faster termination after a crash
- use-exit-on-panic - to be used by the test suite so that valgrind can
  detect leaks and memory corruptions

Other changes:
- Crash log is printed even on system that dont HAVE_BACKTRACE, i.e. in
  both SIGSEGV and assert / panic
- Assertion and panic won't print registers and code around EIP (which
  was useless), but will do fast memory test (which may still indicate
  that the assertion was due to memory corrpution)

I had to reshuffle code in order to re-use it, so i extracted come code
into function without actually doing any changes to the code:
- logServerInfo
- logModulesInfo
- doFastMemoryTest (with the exception of it being conditional)
- dumpCodeAroundEIP

changes to the crash report on segfault:
- logRegisters is called right after the stack trace (before info) done
  just in order to have more re-usable code
- stack trace skips the first two items on the stack (the crash log and
  signal handler functions)
2020-08-06 16:47:27 +03:00
..
2020-07-21 08:13:05 +03:00
2020-05-02 21:19:47 +08:00
2019-11-20 20:39:04 -05:00
2019-07-17 16:40:24 +03:00
2020-05-05 10:20:48 +02:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2020-04-24 17:11:21 -07:00
2020-07-21 08:13:05 +03:00
2018-07-03 18:19:46 +02:00
2019-02-24 21:38:15 +01:00
2020-06-12 12:16:19 +02:00
2019-10-24 14:24:55 +03:00
2020-06-16 17:50:38 +08:00
2020-05-05 23:35:08 -04:00
2019-11-19 17:23:47 +08:00
2020-08-02 13:59:51 +03:00
2020-04-02 23:43:47 +08:00
2020-04-09 12:10:10 +02:00
2018-07-03 18:19:46 +02:00
2019-10-02 11:30:20 +02:00
2020-07-24 14:40:19 +08:00
2020-04-06 19:27:06 +08:00
2020-04-16 16:08:37 +02:00
2020-02-22 11:38:51 -05:00
2020-05-12 21:21:22 +01:00
2018-11-11 18:49:55 +00:00
2020-06-24 09:09:43 +02:00
2020-07-21 08:13:05 +03:00