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

Check for no count in assertion

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

      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.

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

              Created:
              Updated:
              Resolved: