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

Coverity: Null dereferences in session::close

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.2, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 1
    • Storage - Ra 2020-09-21

      I attempted to touch this area of code in WT-6640 but it's more complex than I thought. The problem is this:

      • If we get an error, we should hit API_END_RET_NOTFOUND_MAP and restore the old dhandle because we will still have a session.
      • Some of the session resources (like its txn) can be freed before failing meaning that we can error out, jump to API_END_RET_NOTFOUND_MAP and dereference null by trying to operate on the txn.
      • It may be helpful to look at how it worked before WT-6556 as this was where the original bug crept in.

            Assignee:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Reporter:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: