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

deadlock between db mutex and js mutex

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: