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

Use custom collator for diagnostic verification of keys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: WT3.0.0
    • Fix Version/s: 3.6.3, 3.7.2, WT3.1.0
    • Component/s: None
    • Labels:
    • Sprint:
      Storage 2018-01-29

      Description

      Hi!

      When using WT3.0 our application crashes due to failed assertion in __txn_op_log_row_key_check() function when debug-enabled build of WiredTiger is used (built with --enable-diagnostic).
      We use tables with custom collator and one of the keys has padding byte which can have random value since it's ignored by collator.

      I will attach small reproducer:

      $ ./random_key
      [1516727132:293604][31814:0x7f157d93a740], file:main.wt, WT_CURSOR.remove: __txn_op_log_row_key_check, 54: key.size == cursor->key.size && memcmp(key.data, cursor->key.data, key.size) == 0
      [1516727132:293654][31814:0x7f157d93a740], file:main.wt, WT_CURSOR.remove: aborting WiredTiger library
      Aborted (core dumped)
      

        Attachments

          Activity

            People

            • Assignee:
              donald.anderson Donald Anderson
              Reporter:
              Dmitri Shubin Dmitri Shubin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: