-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Fully Compatible
-
0
Currently we are using the default handler, which prints a message to stderr and then calls abort(). This behavior makes this type of problem difficult to debug.
Instead, we can have our own function be called via BOOST_ENABLE_ASSERT_HANDLER, which can put the message into the server log and then shut down the server via fassert.
Boost assertions can be tripped by invalid use of shared_ptr and scoped_ptr, for example.
- is duplicated by
-
SERVER-22536 Add Boost Assert Handlers
- Closed
- is related to
-
SERVER-11020 Consistently use NDEBUG across all TU's when building without debugging
- Closed
-
SERVER-17790 Build third_party libraries with NDEBUG defined in optimized non-debug builds
- Closed