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

Use correct WT_ITEM fields per memory sanitizer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.2, 4.2.4, 4.3.4
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Storage Engines 2020-02-10

      Description

      The make check MSAN test captured a use-of-uninitialized-value error. The stack trace shows it's about a raw-to-hex call. 

      https://evergreen.mongodb.com/task/wiredtiger_ubuntu1804_make_check_msan_test_af09d867631ba72d210f4ac4aea0ab3c5f4c6535_20_02_05_19_59_30

      [2020/02/06 07:20:56.587] FAIL: ex_backup_block
      [2020/02/06 07:20:56.587] =====================
      [2020/02/06 07:20:56.587] ==31114==WARNING: MemorySanitizer: use-of-uninitialized-value
      [2020/02/06 07:20:56.587]     #0 0x7fbad3a7aac2 in __wt_hex /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/include/misc.i:29:22
      [2020/02/06 07:20:56.587]     #1 0x7fbad3a79305 in __fill_hex /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/support/hex.c:24:19
      [2020/02/06 07:20:56.587]     #2 0x7fbad3a79ac8 in __wt_raw_to_hex /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/support/hex.c:57:5
      [2020/02/06 07:20:56.587]     #3 0x7fbad375bcf4 in __ckpt_blkmod_to_meta /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/meta/meta_ckpt.c:762:9
      [2020/02/06 07:20:56.587]     #4 0x7fbad375abbe in __wt_meta_ckptlist_set /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/meta/meta_ckpt.c:792:13
      [2020/02/06 07:20:56.587]     #5 0x7fbad3b4af4e in __checkpoint_tree /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/txn/txn_ckpt.c:1589:5
      [2020/02/06 07:20:56.587]     #6 0x7fbad3b5c9e2 in __checkpoint_tree_helper /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/txn/txn_ckpt.c:1670:11
      [2020/02/06 07:20:56.587]     #7 0x7fbad3b5c396 in __checkpoint_apply /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/txn/txn_ckpt.c:199:9
      [2020/02/06 07:20:56.587]     #8 0x7fbad3b50a79 in __txn_checkpoint /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/txn/txn_ckpt.c:848:5
      [2020/02/06 07:20:56.587]     #9 0x7fbad3b46ef8 in __txn_checkpoint_wrapper /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/txn/txn_ckpt.c:1041:11
      [2020/02/06 07:20:56.587]     #10 0x7fbad3b4615c in __wt_txn_checkpoint /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/txn/txn_ckpt.c:1097:9
      [2020/02/06 07:20:56.587]     #11 0x7fbad3a10d15 in __session_checkpoint /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/session/session_api.c:1956:11
      [2020/02/06 07:20:56.587]     #12 0x492f4e in main /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/examples/c/../../../examples/c/ex_backup_block.c:440:5
      [2020/02/06 07:20:56.587]     #13 0x7fbad1dfbb96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
      [2020/02/06 07:20:56.587]     #14 0x41b0e9 in _start (/data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/examples/c/.libs/lt-ex_backup_block+0x41b0e9)
      [2020/02/06 07:20:56.587] SUMMARY: MemorySanitizer: use-of-uninitialized-value /data/mci/f58b5a5ba34805eb332458b420bf5a50/wiredtiger/build_posix/../src/include/misc.i:29:22 in __wt_hex
      [2020/02/06 07:20:56.587] Exiting 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sue.loverso Susan LoVerso
              Reporter:
              luke.chen Luke Chen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: