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

preload psapi.dll to avoid lockup when writing minidump file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      See BF-17180

      Show
      See BF-17180
    • Linked BF Score:
      39

      Description

      (Windows)

      Writing a minidump file involves attaching psapi.dll to the process.
      This is a problem if the process is elsewhere holding the ntdll lock.

      The lock ntdll!LdrpInvertedFunctionTableSRWLock protects DLL import tables.
      This is being held by a thread while we are loading the psapi.dll library to create the minidump.

      Workarounds:

      Attach psapi.dll at startup.

      Generate the minidump with a separate process (which won't have its ntdll import table mutexes held).

        Attachments

          Activity

            People

            Assignee:
            backlog-server-servicearch Backlog - Service Architecture
            Reporter:
            billy.donahue Billy Donahue
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: