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

mapReduce segmentation fault on v3.3.9 unoptimized builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.3.9
    • Fix Version/s: None
    • Component/s: MapReduce, Querying
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      1. Start a 3.3.9 mongod on an empty dbpath.
      2. Run db.t.insert({a: 1})
      3. Execute: db.runCommand({mapReduce: "t", map: function() { }, reduce: function () { }, out: "a"}).
      4. Usually the server will seg fault after this step. Sometimes it is necessary to kill and restart the server, and execute step 3 again until triggering a crash.

      Show
      1. Start a 3.3.9 mongod on an empty dbpath. 2. Run db.t.insert({a: 1}) 3. Execute: db.runCommand({mapReduce: "t", map: function() { }, reduce: function () { }, out: "a"}) . 4. Usually the server will seg fault after this step. Sometimes it is necessary to kill and restart the server, and execute step 3 again until triggering a crash.

      Description

      The above steps cause a segmentation fault on 3.3.9 when running the map reduce command. I have not investigated enough to know the specific cause, but the culprit seems to be a null pointer dereference from within the js runtime.

      The segfault seems to occur most often when the map reduce command is the first query run on the collection after the server is started. Both WT and mmap are affected. This issue occurs on unoptimized builds. I encountered it on clang version 7.3.0.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team (Inactive)
              Reporter:
              david.hatch David Hatch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: