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

Replace windows MiniDumpWriteDump() with something that doesn't deadlock.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      MiniDumpWriteDump() allocates its memory from the heap, so will deadlock if any other thread in the process is currently holding heap allocation locks (see, e.g., https://lenholgate.com/blog/2024/02/minidumpwritedump-now-mostly-useless-.html).

      Filing this because we sometimes call this API in a windows death test. A deadlock can hang the test. This has resulted in a BF in one case.

      Likely not particularly high priority, as this only affects windows.

      This is only called in the handler passed to SetUnhandledExceptionFilter(), so an alternative would be to minimize and simplify the handler code to not generate a minidump.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ronald.steinke@mongodb.com Ronald Steinke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: