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

Use the right tree when copying a key for a lookaside write

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.9, 4.0.3, 4.1.3, WT3.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Engines 2018-08-27
    • v4.0, v3.6

      SegFault fired during smoke testing of make check on kodkod. A new run hit the same Jenkins node so we lost the context in build_posix directory.

      http://build.wiredtiger.com:8080/job/wiredtiger-linux-directio/5622/console

      SegFault:

      + ../configure --enable-diagnostic --enable-strict --with-berkeleydb=/usr/local/BerkeleyDB.6.0
      ...
      FAIL: smoke.sh
      ==============
      
      t: process 31415
         1: table, fixed-length column-store (23 seconds)
      ../../../test/format/smoke.sh: line 9: 31902 Segmentation fault      (core dumped) $TEST_WRAPPER ./t $args file_type=row
      ... 

      Function backtrace:

      (gdb) bt
      #0  __wt_row_leaf_key_work (session=session@entry=0x7fb0e4929618, page=page@entry=0x7fb0b4160be0, rip_arg=0x7fb0b4160c30,
          keyb=keyb@entry=0x7fb0cc126ca0, instantiate=instantiate@entry=false) at ../src/btree/row_key.c:155
      #1  0x00000000004ed3d1 in __wt_row_leaf_key (instantiate=false, key=0x7fb0cc126ca0, rip=<optimized out>, page=0x7fb0b4160be0, session=0x7fb0e4929618)
          at ../src/include/btree.i:1011
      #2  __wt_las_insert_block (cursor=0x17ff9a0, btree=0x182b030, page=0x7fb0b4160be0, multi=multi@entry=0x7fb0cc16bb30, key=0x7fb0cc126ca0)
          at ../src/cache/cache_las.c:666
      #3  0x0000000000463d1b in __rec_las_wrapup (r=0x7fb0cc129920, session=0x7fb0e492c690) at ../src/reconcile/rec_write.c:6238
      #4  __rec_write_wrapup (session=session@entry=0x7fb0e492c690, r=r@entry=0x7fb0cc129920, page=page@entry=0x7fb0b4160be0)
          at ../src/reconcile/rec_write.c:6057
      #5  0x0000000000469376 in __wt_reconcile (session=session@entry=0x7fb0e492c690, ref=ref@entry=0x7fb0b40a6b30, salvage=salvage@entry=0x0,
          flags=flags@entry=138, lookaside_retryp=lookaside_retryp@entry=0x0) at ../src/reconcile/rec_write.c:501
      #6  0x000000000043a1c2 in __evict_review (inmem_splitp=<synthetic pointer>, closing=false, ref=0x7fb0b40a6b30, session=0x7fb0e492c690)
          at ../src/evict/evict_page.c:663
      #7  __wt_evict (session=session@entry=0x7fb0e492c690, ref=ref@entry=0x7fb0b40a6b30, closing=closing@entry=false) at ../src/evict/evict_page.c:166
      #8  0x0000000000430728 in __evict_page (session=session@entry=0x7fb0e492c690, is_server=is_server@entry=false) at ../src/evict/evict_lru.c:2311
      #9  0x0000000000431b54 in __wt_cache_eviction_worker (session=session@entry=0x7fb0e492c690, busy=<optimized out>, readonly=readonly@entry=false,
          pct_full=<optimized out>) at ../src/evict/evict_lru.c:2405
      #10 0x000000000049d384 in __wt_cache_eviction_check (busy=<optimized out>, readonly=false, didworkp=0x0, session=0x7fb0e492c690)
          at ../src/include/cache.i:453
      #11 __wt_txn_commit (session=session@entry=0x7fb0e492c690, cfg=cfg@entry=0x7fb0da7f9880) at ../src/txn/txn.c:1027
      #12 0x0000000000480d9a in __session_commit_transaction (wt_session=0x7fb0e492c690, config=0x0) at ../src/session/session_api.c:1647
      #13 0x000000000040ab78 in commit_transaction (tinfo=tinfo@entry=0x19ef810, session=0x7fb0e492c690) at ../../../test/format/ops.c:582
      #14 0x000000000040d7a8 in ops (arg=0x19ef810) at ../../../test/format/ops.c:1082
      #15 0x00007fb0e3d47e25 in start_thread () from /lib64/libpthread.so.0
      #16 0x00007fb0e3a7534d in clone () from /lib64/libc.so.6 

            Assignee:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Reporter:
            luke.chen@mongodb.com Luke Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: