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

Fix memory leaks and core dumps in page-split error handling

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT3.2.1, 4.3.1, 4.2.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines
    • 13
    • Storage Engines 2019-07-01

      http://build.wiredtiger.com:8080/job/wiredtiger-test-format-stress-sanitizer/23993/console

      1: table, variable-length column-store (320 seconds)
      SUMMARY: AddressSanitizer: 49 byte(s) leaked in 2 allocation(s).
      
      Direct leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x4db4d8 in calloc (/mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/test/format/t+0x4db4d8)
          #1 0x659fba in __wt_calloc /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/os_common/os_alloc.c:52:11
          #2 0x9462ab in __split_ref_move /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:265:3
          #3 0x944e7d in __split_internal /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:1091:4
          #4 0x9321b8 in __split_parent_climb /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:1393:9
          #5 0x92ba62 in __split_multi_lock /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:2195:10
          #6 0x92b7f8 in __wt_split_multi /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:2213:2
          #7 0x61448d in __evict_page_dirty_update /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_page.c:398:4
          #8 0x61036c in __wt_evict /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_page.c:222:3
          #9 0x5f2d09 in __evict_page /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:2320:2
          #10 0x5ebb70 in __evict_lru_pages /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:1173:14
          #11 0x5f65c6 in __evict_pass /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:729:4
          #12 0x5eaecc in __evict_server /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:384:2
          #13 0x5ea648 in __wt_evict_thread_run /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:290:9
          #14 0x7d1413 in __thread_run /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/support/thread_group.c:31:3
          #15 0x4e8ede in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (/mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/test/format/t+0x4e8ede)
      
      Indirect leak of 9 byte(s) in 1 object(s) allocated from:
          #0 0x4db2b0 in __interceptor_malloc (/mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/test/format/t+0x4db2b0)
          #1 0x65a2be in __wt_malloc /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/os_common/os_alloc.c:85:11
          #2 0x65b971 in __wt_memdup /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/os_common/os_alloc.c:262:2
          #3 0x9465fd in __split_ref_move /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:269:3
          #4 0x944e7d in __split_internal /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:1091:4
          #5 0x9321b8 in __split_parent_climb /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:1393:9
          #6 0x92ba62 in __split_multi_lock /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:2195:10
          #7 0x92b7f8 in __wt_split_multi /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_split.c:2213:2
          #8 0x61448d in __evict_page_dirty_update /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_page.c:398:4
          #9 0x61036c in __wt_evict /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_page.c:222:3
          #10 0x5f2d09 in __evict_page /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:2320:2
          #11 0x5ebb70 in __evict_lru_pages /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:1173:14
          #12 0x5f65c6 in __evict_pass /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:729:4
          #13 0x5eaecc in __evict_server /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:384:2
          #14 0x5ea648 in __wt_evict_thread_run /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/evict/evict_lru.c:290:9
          #15 0x7d1413 in __thread_run /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/support/thread_group.c:31:3
          #16 0x4e8ede in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (/mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/test/format/t+0x4e8ede)
      
      ############################################
      #  RUN PARAMETERS
      ############################################
      abort=0
      alter=0
      auto_throttle=1
      backups=0
      bitcnt=6
      bloom=1
      bloom_bit_count=49
      bloom_hash_count=30
      bloom_oldest=0
      cache=160
      cache_minimum=20
      checkpoints=on
      checkpoint_log_size=167
      checkpoint_wait=58
      checksum=off
      chunk_size=1
      compaction=1
      compression=snappy
      data_extend=0
      data_source=table
      delete_pct=0
      dictionary=1
      direct_io=0
      encryption=none
      evict_max=4
      file_type=variable-length column-store
      firstfit=0
      huffman_key=0
      huffman_value=0
      independent_thread_rng=1
      in_memory=0
      insert_pct=2
      internal_key_truncation=0
      internal_page_max=16
      isolation=read-committed
      key_gap=11
      key_max=28
      key_min=28
      leaf_page_max=9
      leak_memory=0
      logging=0
      logging_archive=1
      logging_compression=none
      logging_file_max=175671
      logging_prealloc=0
      long_running_txn=0
      lsm_worker_threads=3
      memory_page_max=10
      merge_max=14
      mmap=1
      modify_pct=1
      ops=0
      prefix_compression=1
      prefix_compression_min=0
      prepare=0
      quiet=1
      read_pct=86
      rebalance=1
      repeat_data_pct=10
      reverse=0
      rows=1000000
      runs=1
      salvage=1
      split_pct=90
      statistics=1
      statistics_server=0
      threads=8
      timer=4
      timing_stress_aggressive_sweep=1
      timing_stress_checkpoint=0
      timing_stress_lookaside_sweep=0
      timing_stress_split_1=0
      timing_stress_split_2=0
      timing_stress_split_3=0
      timing_stress_split_4=0
      timing_stress_split_5=0
      timing_stress_split_6=0
      timing_stress_split_7=0
      timing_stress_split_8=0
      transaction_timestamps=0
      transaction-frequency=68
      truncate=1
      value_max=3298
      value_min=18
      verify=1
      wiredtiger_config=
      write_pct=11
      ############################################
      

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

              Created:
              Updated:
              Resolved: