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

test/format eviction segfault in hazard_exclusive

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.4.0
    • Affects Version/s: None
    • Component/s: None

      We had a segfault in http://mjc.homeunix.org:8180/job/wiredtiger-test-format-stress/5496/. The core file is on bengal with changeset c31002b. I don't see any current open issues that are similar. The failing stack:

      456		session->excl[session->excl_next++] = ref;
      
      (gdb) bt
      #0  0x000000000047368b in __hazard_exclusive (session=0xaa8980, ref=0xd82c70, top=1) at ../src/btree/rec_evict.c:456
      WT-1  0x0000000000473091 in __rec_review (session=0xaa8980, ref=0xd82c70, exclusive=0, top=1, istree=0x7f84ca1fbd38) at ../src/btree/rec_evict.c:253
      WT-2  0x00000000004728b8 in __wt_rec_evict (session=0xaa8980, ref=0xd82c70, exclusive=0) at ../src/btree/rec_evict.c:54
      WT-3  0x0000000000463b4d in __wt_evict_page (session=0xaa8980, ref=0xd82c70) at ../src/btree/bt_evict.c:618
      WT-4  0x0000000000464cca in __wt_evict_lru_page (session=0xaa8980, is_app=1) at ../src/btree/bt_evict.c:1220
      WT-5  0x0000000000463d37 in __evict_lru_pages (session=0xaa8980, is_app=1) at ../src/btree/bt_evict.c:703
      WT-6  0x000000000046334c in __evict_worker (arg=0xac4fb0) at ../src/btree/bt_evict.c:365
      WT-7  0x0000003467a079d1 in start_thread () from /lib64/libpthread.so.0
      (gdb) p session->excl
      $1 = (WT_REF **) 0x7f84140008c0
      (gdb) p session->excl_next
      $2 = 0
      (gdb) p *ref
      $3 = {page = 0x7f84b02f0410, home = 0xf32f60, ref_hint = 48, state = WT_REF_LOCKED, addr = 0x0, key = {recno = 42949675367, ikey = 0xa00000967}, page_del = 0x0}
      (gdb) p session->excl[0]
      Cannot access memory at address 0x7f84140008c0
      (gdb) p *session
      $4 = {iface = {connection = 0xbebbc0, close = 0x4488c1 <__session_close>, reconfigure = 0x448e04 <__session_reconfigure>, 
          open_cursor = 0x449773 <__session_open_cursor>, create = 0x449c3f <__session_create>, compact = 0x44a5d0 <__session_compact>, 
          drop = 0x44a727 <__session_drop>, log_printf = 0x44a072 <__session_log_printf>, rename = 0x44a2b9 <__session_rename>, 
          salvage = 0x44aa12 <__session_salvage>, truncate = 0x44ad03 <__session_truncate>, upgrade = 0x44b36d <__session_upgrade>, 
          verify = 0x44b65e <__session_verify>, begin_transaction = 0x44b94f <__session_begin_transaction>, 
          commit_transaction = 0x44bb92 <__session_commit_transaction>, rollback_transaction = 0x44be4b <__session_rollback_transaction>, 
          checkpoint = 0x44c0b1 <__session_checkpoint>}, lang_private = 0x0, active = 1, name = 0x67f33f "eviction-worker", id = 2, cond = 0xac5040, rnd = {
          1088694738, 100712939}, event_handler = 0x8dede0, dhandle = 0xaf4150, dhandles = {slh_first = 0x0}, last_sweep = 0, cursor = 0x0, cursors = {
          tqh_first = 0x0, tqh_last = 0xaa8a60}, bkp_cursor = 0x0, compact = 0x0, metafile = 0x0, meta_track = 0x0, meta_track_next = 0x0, meta_track_sub = 0x0, 
        meta_track_alloc = 0, meta_track_nest = 0, tables = {tqh_first = 0x0, tqh_last = 0x0}, scratch = 0x7f8414011320, scratch_alloc = 10, 
        scratch_track = 0x7f8414011380, isolation = TXN_ISO_READ_COMMITTED, txn = {id = 0, isolation = TXN_ISO_EVICTION, snap_min = 0, snap_max = 0, 
          snapshot = 0xac50b0, snapshot_count = 0, txn_logsync = 0, mod = 0x0, mod_alloc = 0, mod_count = 0, logrec = 0x0, notify = 0x0, ckpt_lsn = {file = 0, 
            offset = 0}, full_ckpt = 0, ckpt_nsnapshot = 0, ckpt_snapshot = 0x0, flags = 0}, ncursors = 0, excl = 0x7f84140008c0, excl_next = 0, excl_allocated = 80, 
        block_manager = 0x7f8414023800, block_manager_cleanup = 0x4e3d2d <__block_manager_session_cleanup>, ckpt_handle = 0x0, ckpt_handle_next = 0, 
        ckpt_handle_allocated = 0, reconcile = 0x7f8414000920, reconcile_cleanup = 0x47a3c4 <__rec_destroy_session>, compaction = 0, flags = 1568, 
        split_stash = 0x7f84140375b0, split_stash_cnt = 90, split_stash_alloc = 3840, split_gen = 5, hazard_size = 10, nhazard = 0, hazard = 0xace890}
      

      Here is the CONFIG:

      ############################################
      #  RUN PARAMETERS
      ############################################
      auto_throttle=1
      firstfit=0
      bitcnt=5
      bloom=1
      bloom_bit_count=24
      bloom_hash_count=21
      bloom_oldest=0
      cache=24
      checkpoints=1
      checksum=on
      chunk_size=4
      compaction=1
      compression=none
      data_extend=0
      data_source=table
      delete_pct=0
      dictionary=0
      evict_max=5
      file_type=row-store
      backups=0
      huffman_key=0
      huffman_value=0
      insert_pct=38
      internal_key_truncation=1
      internal_page_max=12
      isolation=read-uncommitted
      key_gap=13
      key_max=114
      key_min=15
      leak_memory=0
      leaf_page_max=16
      logging=0
      lsm_worker_threads=3
      merge_max=17
      mmap=1
      ops=100000
      prefix_compression=1
      prefix_compression_min=6
      repeat_data_pct=69
      reverse=0
      rows=100000
      runs=100
      split_pct=43
      statistics=0
      threads=10
      value_max=513
      value_min=20
      wiredtiger_config=
      write_pct=7
      ############################################
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: