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

RLP memory errors cause deadlock in unittests

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.3.12
    • 3.3.14
    • Text Search
    • None
    • Fully Compatible
    • ALL
    • Platforms 2016-09-19
    • 0

    Description

      The RLP library has various memory errors that tcmalloc detects in debug builds. When TCMalloc detects an error it will log the error, and call abort() while holding a spinlock. Our abort handler prints stack traces by calling backtrace() and this function needs to allocate memory on most architectures. This memory allocation will thus cause a deadlock in the spinlock since the spinlock is not recursive.

      Attachments

        Issue Links

          Activity

            People

              mark.benvenuto@mongodb.com Mark Benvenuto
              mark.benvenuto@mongodb.com Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: