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

override Boost's assert handler

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • Fully Compatible
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: