Coverity: Null dereferences in session::close

XMLWordPrintableJSON

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

      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
              Reporter:
              Alex Cameron (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: