RLP memory errors cause deadlock in unittests

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.14
    • Affects Version/s: 3.3.12
    • Component/s: Text Search
    • None
    • Fully Compatible
    • ALL
    • Platforms 2016-09-19
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: