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

Coverity: Null dereferences in session::close

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.2, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Storage - Ra 2020-09-21

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            haribabu.kommi Haribabu Kommi
            Reporter:
            alex.cameron Alex Cameron
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: