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

Memory leak detected for eviction triggered page split

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None

      Description

      The stress sanitizer job captured 2 memory leaks regarding eviction triggered page split, on tinderbox

      http://build.wiredtiger.com:8080/job/wiredtiger-test-race-condition-stress-sanitizer/34406/

      ++ nice ./t -1 -c CONFIG
      t: process 2724 running
         1: table, variable-length column-store (418 seconds)
       
      =================================================================
      ==2724==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x4d05a8 in calloc (/work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/t+0x4d05a8)
          #1 0x6e4730 in __wt_calloc /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/os_common/os_alloc.c:50:14
          #2 0x9f23f8 in __split_ref_move /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:253:9
          #3 0x9f0d05 in __split_internal /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:1020:13
          #4 0x9db171 in __split_parent_climb /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:1331:15
          #5 0x9d4431 in __split_multi_lock /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:2121:13
          #6 0x9d4243 in __wt_split_multi /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:2139:5
          #7 0x65b129 in __evict_page_dirty_update /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_page.c:380:13
          #8 0x655e7e in __wt_evict /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_page.c:192:9
          #9 0x63726e in __evict_page /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_lru.c:2238:5
          #10 0x6342b0 in __wt_cache_eviction_worker /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_lru.c:2326:23
          #11 0x85341a in __wt_cache_eviction_check /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/include/cache.i:428:13
          #12 0x84fafa in __wt_txn_commit /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/txn/txn.c:1098:9
          #13 0xae3c91 in __curfile_insert /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/cursor/cur_file.c:273:5
          #14 0x524547 in col_insert /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/../../../test/format/ops.c:1727:16
          #15 0x51d3ab in ops /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/../../../test/format/ops.c:798:23
          #16 0x4dde52 in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (/work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/t+0x4dde52)
       
      Indirect leak of 9 byte(s) in 1 object(s) allocated from:
          #0 0x4d03a0 in __interceptor_malloc (/work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/t+0x4d03a0)
          #1 0x6e4a14 in __wt_malloc /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/os_common/os_alloc.c:81:14
          #2 0x6e6003 in __wt_memdup /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/os_common/os_alloc.c:237:5
          #3 0x9f2841 in __split_ref_move /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:259:9
          #4 0x9f0d05 in __split_internal /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:1020:13
          #5 0x9db171 in __split_parent_climb /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:1331:15
          #6 0x9d4431 in __split_multi_lock /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:2121:13
          #7 0x9d4243 in __wt_split_multi /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/btree/bt_split.c:2139:5
          #8 0x65b129 in __evict_page_dirty_update /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_page.c:380:13
          #9 0x655e7e in __wt_evict /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_page.c:192:9
          #10 0x63726e in __evict_page /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_lru.c:2238:5
          #11 0x6342b0 in __wt_cache_eviction_worker /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/evict/evict_lru.c:2326:23
          #12 0x85341a in __wt_cache_eviction_check /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/include/cache.i:428:13
          #13 0x84fafa in __wt_txn_commit /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/txn/txn.c:1098:9
          #14 0xae3c91 in __curfile_insert /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/../src/cursor/cur_file.c:273:5
          #15 0x524547 in col_insert /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/../../../test/format/ops.c:1727:16
          #16 0x51d3ab in ops /work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/../../../test/format/ops.c:798:23
          #17 0x4dde52 in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (/work/jenkins/workspace/wiredtiger-test-race-condition-stress-sanitizer/build_posix/test/format/t+0x4dde52)
       
      SUMMARY: AddressSanitizer: 65 byte(s) leaked in 2 allocation(s).
      t: successful run completed
      /tmp/jenkins2103210865656727428.sh: line 34:  2724 Aborted                 (core dumped) nice ./t -1 -c CONFIG 

        Attachments

          Activity

            People

            • Assignee:
              backlog-server-storage-engines Backlog - Storage Engines Team
              Reporter:
              luke.chen Luke Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: