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

Don't allow recursive doLog in synchronous signal handlers

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.12, 6.1.0-rc0
    • Affects Version/s: 5.2.1
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.0, v5.0
    • Security 2022-05-02, Security 2022-05-16, Security 2022-05-30, Security 2022-06-13

      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.

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

              Created:
              Updated:
              Resolved: