summaryrefslogtreecommitdiff
path: root/src/mongo/util/signal_handlers_synchronous.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-41064 ScopedDebugInfoBilly Donahue2022-08-031-0/+17
|
* SERVER-9434 Audit and Normalize Process Exit CodesMatt Kneiser2022-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Put all references to ExitCode enumerators under an enum class to namespace all the enumerators and avoid polluting the mongo namespace with possible naming collisions. - Added magic-number exit codes to exit_code.h like 50 & 51 (LauncherMiddleError & LauncherError respectively). - Reserved a range of exit codes to account for FreeBSD's usage of 64-78. - Renamed all enums with removal of EXIT_ which could conflict or get confused with built-in macros. - camelCased all ExitCode enum values. - Added the generic - ExitCode::fail - for returning 1 as failure. - Added explicit dependency on the exit_code.h header for all files using ExitCode's. - Removed all references to implementation-defined exit codes like EXIT_FAILURE and EXIT_SUCCESS. - Narrowed return values of the shell's undocumented quit() argument to portable values within 0-255, 0/ExitCode::clean otherwise. - Deprecated 8 unused ExitCode's - java - oomMalloc - oomRealloc - fs - clockSkew - windowsServiceStop - possibleCorruption - test - Wrapped the 2 Windows-only ExitCode's in #ifdef's - ntServiceError - windowsServiceStop
* SERVER-63843 Don't allow recursive doLog in sync signal handlersGabriel Marks2022-05-271-22/+34
|
* SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue2022-05-061-1/+3
|
* SERVER-56585 replace MONGO_COMPILER_VARIABLE_UNUSED with c++17 attribute ↵Benety Goh2021-05-041-1/+1
| | | | maybe_unused (.cpp files only)
* SERVER-53065 enhance terminate handler exception dumpsBilly Donahue2020-12-171-36/+42
|
* SERVER-48696 sigaction actions need to all be extern "C"Gabriel Russell2020-11-231-4/+8
|
* SERVER-48022 Cleanup infrastructure log lines in mongo/utilBen Caimano2020-06-011-11/+9
|
* SERVER-47735 change mongo source over to logv2Billy Donahue2020-04-261-1/+1
| | | | | | - Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
* SERVER-47578 Delete util/log.h and remove use of logv1 to logv2 appenderHenrik Edin2020-04-151-9/+5
|
* SERVER-44645 Windows does not generate minidumps on unhandled C++ exceptionsMark Benvenuto2020-03-271-1/+24
|
* SERVER-47040 LOGV2_FATAL also fassertsHenrik Edin2020-03-241-14/+11
| | | | Added LOGV2_FATAL_NOTRACE and LOGV2_CONTINUE to have different behavior.
* SERVER-45567 removing util/log.h where I canGabriel Russell2020-02-211-1/+0
| | | | | | | o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
* SERVER-45869 more automatically converted structuredGabriel Russell2020-02-201-10/+22
|
* SERVER-46260 send printStackTrace to LOGV2, not to MallocFreeOStreamBilly Donahue2020-02-201-4/+4
|
* SERVER-45677 libunwind on by default where possibleBilly Donahue2020-02-141-3/+1
| | | | | - tcmalloc to not use libunwind API, as it uses slow cursor steps. - Remove UNW_LOCAL_ONLY from CXXFLAGS everywhere.
* Revert "SERVER-45677 libunwind on by default where possible"William Schultz2020-02-061-1/+3
| | | | This reverts commit 969151e9ab69dcb53397cf40f810e718421db081.
* SERVER-45677 libunwind on by default where possibleBilly Donahue2020-02-051-3/+1
| | | | | | - SCons configure to probe for libunwind support - gracefully handle SIGUSR2 without libunwind - integrate libunwind on-by-default (linux-x86_64) into evergreen
* SERVER-43662 Add support for LLDB debugserver breakpointsAdam Cooper2019-12-311-1/+1
|
* SERVER-44345 stack trace all threadsBilly Donahue2019-12-111-0/+13
|
* SERVER-44378 groundwork for upcoming stacktrace APIBilly Donahue2019-11-081-1/+1
|
* SERVER-15902 sigaltstack for workers and stdx::thread.Billy Donahue2019-10-251-32/+38
|
* SERVER-42165 Replace uses of stdx::mutex with mongo::MutexBen Caimano2019-09-171-2/+2
|
* SERVER-25240 Make `stdx::set_terminate` which works on windows.ADAM David Alan Martin2019-08-231-1/+2
| | | | | The `stdx::set_terminate` primitive, on windows, wraps the per-thread terminate handler and emulates a single global terminate handler.
* SERVER-36242 Optionally use libunwind for backtracesA. Jesse Jiryu Davis2019-07-171-1/+1
|
* SERVER-41071 Replace more NULLs with nullptrA. Jesse Jiryu Davis2019-06-171-1/+1
|
* SERVER-40357 expand all calls to MONGO_DISALLOW_COPYINGBilly Donahue2019-03-281-3/+4
| | | | | | | | | | | produced by: hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )" for f in "$hits"; do sed -i.orig ' s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/; ' $f done
* SERVER-36844 Ensure printStackTrace() produces stacktraces on AUBSANSpencer Jackson2019-03-061-24/+0
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-33351 perserve stack in BackgroundJob exceptionsGabriel Russell2018-12-131-2/+2
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-14/+16
|
* SERVER-31918 sigaction: give the ucontext parameter a nameBilly Donahue2018-09-111-1/+4
|
* SERVER-26538 SERVER-26539 Detach from boost::threadAndrew Morrow2017-08-021-4/+3
| | | | | Also, use thread_local everywhere for our thread specific data needs and remove the legacy support.
* SERVER-29688: Coredump on Sanizitizer failureSpencer Jackson2017-07-131-0/+25
|
* SERVER-27244 Status usage compile-time facilities.ADAM David Alan Martin2017-06-181-4/+7
| | | | | | | | | | | | | | | | | There are numerous places in the codebase where `mongo::Status` or `mongo::StatusWith< T >` objects are returned and never checked. Many of these are innocuous, but many of them are potentially severe bugs. This change introduces facilities to permit compile-time warning of unchecked `Status` and `StatusWith` usage on clang compilers. It introduces an `ignore` function which is useful to state that a specific "ignored status" case was intentional. It not presently an error, in clang builds, to forget to check a `Status` -- this will come in a later commit. This also introduces a `transitional_ignore` function, which allows for easy continual auditing of the codebase for current "whitelisted" unchecked-status instances. All present "ignored status" cases have been marked `transitional_ignore`.
* SERVER-25833 Stop printing /proc/self/maps in address signal handlerMathias Stearn2016-08-261-13/+0
|
* SERVER-23071 use system exception handler to generate minidumpRobert Guo2016-06-171-2/+1
|
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-1/+1
|
* SERVER-23757 Clear signal mask when starting unit testsJonathan Reams2016-04-161-0/+9
|
* SERVER-21959 Enlarge buffer used for logging in signal handlers, to support ↵Andy Schwerin2015-12-301-1/+1
| | | | large json stacktraces.
* SERVER-21959 Do not truncate stack traces in log messages.Andy Schwerin2015-12-211-2/+4
|
* SERVER-20074 Log signal information for some thread when several threads ↵Andy Schwerin2015-08-211-25/+24
| | | | raise a signal at once.
* SERVER-12259 Make custom signal handlers defer to default behavior rather ↵Andy Schwerin2015-07-071-37/+57
| | | | | | | | | | than calling quickExit. On systems with good support for POSIX signals, by configuring the MongoDB custom signal handlers to automatically reset to the default handler when executing, and to re-raise fatal signals at the end of the custom handler instead of calling quickExit, we can get proper OS behavior for core dumping and exiting with signal codes.
* SERVER-18699 fix formatting triviaMartin Bligh2015-06-241-1/+1
|
* SERVER-18699 dump /proc/self/maps on a sigbus to make it easier to diagnoseMartin Bligh2015-06-241-0/+13
|
* SERVER-19046 Make myTerminate call quickExit when re-entered by a single thread.Andy Schwerin2015-06-221-18/+38
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-177/+180
|
* SERVER-18723 boost -> stdx for threadAdam Midvidy2015-06-181-1/+1
|
* SERVER-18723 boost -> stdx for mutex, unique_lock, and lock_guardAdam Midvidy2015-06-171-5/+5
|
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-131-1/+1
| | | | | | | | stdx::chrono types. Also introduces operators for adding stdx::chrono::duration to Date_t, subtracting two Date_ts to get Milliseconds, and remove the use of reinterpret_cast from the implementation of BSON Timestamp type.