Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5039

WT segfaults on consecutive calls after failing to allocate memory

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 8

      While investigating a build failure I came across an interesting scenario that can lead to a segmentation fault in WT.

      We had two user connections running concurrent commands, one inserting a record and another doing a collection scan. At the same time, the machine was running out of memory and the swap file was full.

      This caused the record insertion to fail and mongod masserted (it kills that operation only). Meanwhile, the collection scan kept going and eventually seg faulted by trying to dereference an invalid address inside WT.

      Is this the expected behavior from WT or should it be safeguarded against this?

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: