Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16496

override Boost's assert handler

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: