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

Check for no count in assertion

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.9.0, 4.4.5
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: