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

Fix a leak of index structure memory

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT3.2.0, 4.1.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5
    • Storage Engines 2018-12-31, Storage Engines 2019-01-28, Storage Engines 2019-02-11

      We recently starting running the wt2323_join_visibility test under clang sanitizer, and it's leaking memory, for some reason allocated index structures aren't being freed.

      The typical complaint stack is:

      Direct leak of 136 byte(s) in 1 object(s) allocated from:
          #0 0x4df30d in calloc /home/bostic/src/llvm40/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74
          #1 0x5a9fbb in __wt_calloc /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/os_common/os_alloc.c:52:11
          #2 0x6214ef in __schema_open_index /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/schema/schema_open.c:336:4
          #3 0x62017d in __wt_schema_open_index /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/schema/schema_open.c:398:2
          #4 0x61a818 in __create_index /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/schema/schema_create.c:553:3
          #5 0x61a818 in __schema_create /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/schema/schema_create.c:709
          #6 0x617db9 in __wt_schema_create /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/schema/schema_create.c:737:8
          #7 0x62ee83 in __wt_session_create /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/session/session_api.c:714:2
          #8 0x636057 in __session_create /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/../src/session/session_api.c:764:8
          #9 0x514e12 in test_join /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/test/csuite/../../../test/csuite/wt2323_join_visibility/main.c:162:2
          #10 0x514872 in main /mnt/data0/jenkins/workspace/wiredtiger-clang-sanitizer/build_posix/test/csuite/../../../test/csuite/wt2323_join_visibility/main.c:125:2
          #11 0x7f4b5eb90b34 in __libc_start_main /usr/src/debug/glibc-2.17-c758a686/csu/../csu/libc-start.c:274
      

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: