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

Memory leak detected for prepared transaction commit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      A memory leak was detected by the Jenkins stress sanitizer job, regarding a prepared transaction commit scenario. 

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

      ==10233==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 268800 byte(s) in 3 object(s) allocated from:
          #0 0x4c8559 in posix_memalign (/mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/test/format/t+0x4c8559)
          #1 0x743f19 in __wt_realloc_aligned /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/os_common/os_alloc.c:202:20
          #2 0x8821e4 in __wt_buf_grow_worker /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/support/scratch.c:45:13
          #3 0x9910cf in __wt_buf_grow /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/include/buf.i:17:54
          #4 0x990d9c in __wt_buf_init /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/include/buf.i:49:13
          #5 0x98e7a1 in __wt_block_read_off /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/block/block_read.c:246:5
          #6 0x98d8f0 in __wt_bm_read /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/block/block_read.c:99:5
          #7 0x55e361 in __wt_bt_read /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_io.c:38:9
          #8 0x566005 in __ovfl_read /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_ovfl.c:30:5
          #9 0x565eb7 in __wt_ovfl_read /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_ovfl.c:71:15
          #10 0xa5bce3 in __cell_data_ref /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/include/cell.i:1101:9
          #11 0xa5e3e5 in __wt_page_cell_data_ref /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/include/cell.i:1142:13
          #12 0xa549f9 in __inmem_row_leaf /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_page.c:613:17
          #13 0xa4fe31 in __wt_page_inmem /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_page.c:215:9
          #14 0xa7020c in __page_read /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_read.c:163:11
          #15 0xa6d54c in __wt_page_in_func /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_read.c:264:13
          #16 0xb56d9e in __wt_page_swap_func /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/include/btree.i:1649:11
          #17 0xb52664 in __wt_row_search /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/row_srch.c:423:20
          #18 0x9f5733 in __cursor_row_search /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_cursor.c:367:5
          #19 0x9f5019 in __wt_btcur_search_prepared /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/btree/bt_cursor.c:451:5
          #20 0x8db1b1 in __txn_search_prepared_op /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/txn/txn.c:855:5
          #21 0x8ca62d in __txn_resolve_prepared_op /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/txn/txn.c:886:5
          #22 0x8c7a1c in __wt_txn_commit /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/txn/txn.c:1351:21
          #23 0x82aa28 in __session_commit_transaction /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/../src/session/session_api.c:1649:15
          #24 0x516be1 in commit_transaction /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/test/format/../../../test/format/ops.c:453:5
          #25 0x5142fa in ops /mnt/data0/jenkins/workspace/wiredtiger-test-format-stress-sanitizer/build_posix/test/format/../../../test/format/ops.c:986:13
          #26 0x7f3c240586da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da)

      The format configuration:

      ############################################
      #  RUN PARAMETERS: V2
      ############################################
      assert.commit_timestamp=0
      assert.read_timestamp=0
      backup=0
      backup.incremental=off
      btree.bitcnt=3
      btree.compression=none
      btree.dictionary=0
      btree.huffman_key=0
      btree.huffman_value=0
      btree.internal_key_truncation=1
      btree.internal_page_max=12
      btree.key_gap=9
      btree.key_max=82
      btree.key_min=31
      btree.leaf_page_max=15
      btree.memory_page_max=5
      btree.prefix_compression=0
      btree.prefix_compression_min=6
      btree.repeat_data_pct=26
      btree.reverse=0
      btree.split_pct=50
      btree.value_max=3253
      btree.value_min=17
      cache=56
      cache.evict_max=3
      cache.minimum=20
      checkpoint=on
      checkpoint.log_size=127
      checkpoint.wait=68
      disk.checksum=uncompressed
      disk.data_extend=0
      disk.direct_io=0
      disk.encryption=none
      disk.firstfit=0
      disk.mmap=1
      disk.mmap_all=0
      format.abort=0
      format.independent_thread_rng=1
      format.major_timeout=0
      logging=0
      logging.archive=0
      logging.compression=none
      logging.file_max=128342
      logging.prealloc=0
      lsm.auto_throttle=1
      lsm.bloom=1
      lsm.bloom_bit_count=40
      lsm.bloom_hash_count=10
      lsm.bloom_oldest=0
      lsm.chunk_size=5
      lsm.merge_max=10
      lsm.worker_threads=4
      ops.alter=0
      ops.compaction=0
      ops.pct.delete=35
      ops.pct.insert=20
      ops.pct.modify=14
      ops.pct.read=14
      ops.pct.write=17
      ops.prepare=1
      ops.random_cursor=0
      ops.rebalance=1
      ops.salvage=1
      ops.truncate=1
      ops.verify=1
      quiet=1
      runs=1
      runs.in_memory=0
      runs.ops=0
      runs.rows=1000000
      runs.source=table
      runs.threads=4
      runs.timer=6
      runs.type=row-store
      statistics=1
      statistics.server=0
      stress.aggressive_sweep=0
      stress.checkpoint=0
      stress.hs_sweep=0
      stress.split_1=0
      stress.split_2=0
      stress.split_3=0
      stress.split_4=0
      stress.split_5=1
      stress.split_6=0
      stress.split_7=0
      stress.split_8=0
      transaction.frequency=100
      transaction.isolation=snapshot
      transaction.timestamps=1
      wiredtiger.config=
      wiredtiger.rwlock=1
      wiredtiger.leak_memory=0
      ############################################ 

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: