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

Check for no count in assertion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 4.9.0, 4.4.5
    • Component/s: None
    • Labels:
      None

      Description

      The code in WT-6673 was reverted several days ago. Part of that code change was a bug fix to an assertion. Now that the code is reverted, some people are seeing the assertion segfault dereferencing a null pointer. The assertion is in txn_recover.c:

              WT_ASSERT(session,
                conn->recovery_ckpt_snapshot_count == counter &&
                  conn->recovery_ckpt_snapshot[0] == conn->recovery_ckpt_snap_min &&
                  conn->recovery_ckpt_snapshot[counter - 1] < conn->recovery_ckpt_snap_max);
      

      We are unconditionally dereferencing recovery_ckpt_snapshot but conditionally allocate it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sue.loverso Susan LoVerso
              Reporter:
              sue.loverso Susan LoVerso
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: