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

wt utility list command has a memory leak and minor error handling bugs.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT3.2.1, 4.3.1, 4.2.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 3
    • Storage Engines 2019-06-17
    • v4.2

      The wt utility list command has a memory leak and minor error handling bugs.

      =================================================================
      ==16822==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 1372 byte(s) in 1 object(s) allocated from:
          #0 0x4666a9 in __interceptor_malloc (/home/ubuntu/wt.develop/.libs/lt-wt+0x4666a9)
          #1 0x7f246d6cd14b in __wt_malloc /home/ubuntu/wt.develop/src/os_common/os_alloc.c:85
          #2 0x7f246d6d1fe7 in __wt_strndup /home/ubuntu/wt.develop/src/os_common/os_alloc.c:287
          #3 0x7f246d68d35d in __wt_strdup /home/ubuntu/wt.develop/./src/include/misc.i:82
          #4 0x7f246d684ab4 in __wt_metadata_search /home/ubuntu/wt.develop/src/meta/meta_table.c:326
          #5 0x7f246d68139c in __wt_ext_metadata_search /home/ubuntu/wt.develop/src/meta/meta_ext.c:63
          #6 0x49dab1 in list_get_allocsize /home/ubuntu/wt.develop/src/utilities/util_list.c:75
          #7 0x49c115 in list_print_checkpoint /home/ubuntu/wt.develop/src/utilities/util_list.c:217
          #8 0x49b284 in list_print /home/ubuntu/wt.develop/src/utilities/util_list.c:156
          #9 0x499d0c in util_list /home/ubuntu/wt.develop/src/utilities/util_list.c:52
          #10 0x4bf156 in main /home/ubuntu/wt.develop/src/utilities/util_main.c:301
          #11 0x7f246b4d0f44 (/lib/x86_64-linux-gnu/libc.so.6+0x21f44)
      
      SUMMARY: AddressSanitizer: 1372 byte(s) leaked in 1 allocation(s).
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: