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

deadlock between db mutex and js mutex

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • JavaScript
    • None
    • ALL

    Description

      There is a reachable deadlock condition between the db mutex and js mutex, which has been seen in v8 (SERVER-1756). The same issue may affect spidermonkey, as a spidermonkey mutex guards all sm calls.

      To fix, all javascript calls from c++ must occur while a db mutex is held. In the diagnosed case, javascript calls within MRState::MRState() were made without a db mutex. These calls held the v8 mutex and requested the db mutex, while a concurrent db.eval held the db mutex and requested the v8 mutex.

      Attachments

        Issue Links

          Activity

            People

              eliot Eliot Horowitz (Inactive)
              aaron Aaron Staple
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: