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

Don't allow recursive doLog in synchronous signal handlers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 5.2.1
    • 5.0.12, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.0
    • Security 2022-05-02, Security 2022-05-16, Security 2022-05-30, Security 2022-06-13

    Description

      Under some circumstances the logging could be invoked recursively. This could for example happen when a signal happens inside logger itself. This could cause infinite loop or a deadlock

      This ticket is to implement a simple check in logger for recursive invocation. If that happens, the log message must be echoed to stderr and not logged normally.

      Attachments

        Issue Links

          Activity

            People

              gabriel.marks@mongodb.com Gabriel Marks
              sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: