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

MemorySanitizer: use-of-uninitialized-value in config_check

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      I was running some testing using a new test program in WT-9323, and encountered a use-of-uninitialized-value error from memory sanitizer.

      I've run the particular test case a lot and only seen this failure once.

      The full error message is:

      [2022/08/04 05:47:33.765] Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x7ff8a7a56ff0, 1)
      [2022/08/04 05:47:33.941] ==26473==WARNING: MemorySanitizer: use-of-uninitialized-value
      [2022/08/04 05:47:41.151]     #0 0x7ff8b61ef760 in __wt_config_init /data/mci/66c6d6ed4fa967f7ac7732abf766eef3/wiredtiger/cmake_build/../src/config/config.c:47:31
      [2022/08/04 05:47:41.152]     #1 0x7ff8b61f406b in config_check /data/mci/66c6d6ed4fa967f7ac7732abf766eef3/wiredtiger/cmake_build/../src/config/config_check.c:88:9
      [2022/08/04 05:47:41.152]     #2 0x7ff8b61f3eb3 in __wt_config_check /data/mci/66c6d6ed4fa967f7ac7732abf766eef3/wiredtiger/cmake_build/../src/config/config_check.c:27:9
      [2022/08/04 05:47:41.154]     #3 0x7ff8b64b40e5 in __session_commit_transaction /data/mci/66c6d6ed4fa967f7ac7732abf766eef3/wiredtiger/cmake_build/../src/session/session_api.c:1676:5
      [2022/08/04 05:47:41.160]     #4 0x49cbc9 in get_table_to_drop /data/mci/66c6d6ed4fa967f7ac7732abf766eef3/wiredtiger/cmake_build/../test/csuite/checkpoint_snapshot_race/main.c:568:5
      [2022/08/04 05:47:41.160]     #5 0x49a348 in thread_drop_tables /data/mci/66c6d6ed4fa967f7ac7732abf766eef3/wiredtiger/cmake_build/../test/csuite/checkpoint_snapshot_race/main.c:605:13
      [2022/08/04 05:47:41.349]     #6 0x7ff8b602e608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
      [2022/08/04 05:47:41.987]     #7 0x7ff8b5dd7132 in clone /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      [2022/08/04 05:47:41.987] SUMMARY: MemorySanitizer: use-of-uninitialized-value /data/mci/66c6d6ed4fa967f7ac7732abf766eef3/wiredtiger/cmake_build/../src/config/config.c:47:31 in __wt_config_init
      

      This is possibly related to WT-8195, but that is in dl_open, and this is in configuration checking, so I've opened it as a different issue.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: