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

LSM version 1 metadata incompatibility

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.3, 3.7.2, WT3.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2018-01-15

      A wiredtiger-compat-develop test failed on develop:
      http://build.wiredtiger.com:8080/job/wiredtiger-compat-develop/3117/

      There is a segmentation fault at following step:

      ./R1/build_posix/wt -h test/format/RUNDIR verify table:wt
      

      Here is the preliminary core analysis using the correct binary:

      Program received signal SIGSEGV, Segmentation fault.
      0x0000000000527204 in __lsm_meta_read_v1 (session=0x7bcde8, lsm_tree=0x8b7ea0, 
          lsmconf=0x8b8040 "access_pattern_hint=none,allocation_size=512,app_metadata=,assert=(commit_timestamp=none,read_timestamp=none),block_allocation=best,block_compressor=,cache_resident=false,checksum=\"uncompressed\",chunk"...) at ../src/lsm/lsm_meta.c:294
      294				chunk->generation = (uint32_t)lv.val;
      (gdb) bt
      #0  0x00000000004fa8ea in __lsm_meta_read_v1 (
          lsmconf=0xaa3020 "access_pattern_hint=none,allocation_size=512,app_metadata=,assert=(commit_timestamp=none,read_timestamp=none),block_allocation=best,block_compressor=,cache_resident=false,checksum=\"uncompressed\",chunk"..., lsm_tree=0xaa2e80, session=0x9a7ed8) at ../src/lsm/lsm_meta.c:294
      #1  __wt_lsm_meta_read (session=session@entry=0x9a7ed8, lsm_tree=0xaa2e80) at ../src/lsm/lsm_meta.c:436
      #2  0x0000000000445fc8 in __lsm_tree_open (session=session@entry=0x9a7ed8, uri=uri@entry=0x9da3a0 "lsm:wt", 
          exclusive=exclusive@entry=true, treep=treep@entry=0x7ffc3ec970b8) at ../src/lsm/lsm_tree.c:479
      #3  0x00000000004462a3 in __wt_lsm_tree_get (session=0x9a7ed8, uri=0x9da3a0 "lsm:wt", exclusive=<optimized out>, 
          treep=0x7ffc3ec970b8) at ../src/lsm/lsm_tree.c:538
      #4  0x000000000044828b in __wt_lsm_tree_worker (session=session@entry=0x9a7ed8, uri=uri@entry=0x9da3a0 "lsm:wt", 
          file_func=file_func@entry=0x4c6f60 <__wt_verify>, name_func=name_func@entry=0x0, 
          cfg=cfg@entry=0x7ffc3ec97200, open_flags=open_flags@entry=524296) at ../src/lsm/lsm_tree.c:1359
      #5  0x0000000000478672 in __wt_schema_worker (session=session@entry=0x9a7ed8, uri=<optimized out>, 
          file_func=file_func@entry=0x4c6f60 <__wt_verify>, name_func=name_func@entry=0x0, 
          cfg=cfg@entry=0x7ffc3ec97200, open_flags=open_flags@entry=524296) at ../src/schema/schema_worker.c:76
      #6  0x0000000000478aed in __wt_schema_worker (session=session@entry=0x9a7ed8, uri=<optimized out>, 
          uri@entry=0x9a18b0 "table:wt", file_func=0x4c6f60 <__wt_verify>, name_func=name_func@entry=0x0, 
          cfg=cfg@entry=0x7ffc3ec97200, open_flags=open_flags@entry=524296) at ../src/schema/schema_worker.c:96
      #7  0x000000000047c4fa in __session_verify (wt_session=0x9a7ed8, uri=0x9a18b0 "table:wt", config=<optimized out>)
          at ../src/session/session_api.c:1380
      #8  0x000000000040cac5 in util_verify (session=0x9a7ed8, argc=<optimized out>, argc@entry=2, 
          argv=<optimized out>, argv@entry=0x7ffc3ec97440) at ../src/utilities/util_verify.c:88
      #9  0x0000000000405e02 in main (argc=2, argv=0x7ffc3ec97440) at ../src/utilities/util_main.c:281
      
      (gdb) p chunk
      $17 = (WT_LSM_CHUNK *) 0x0
      

      The chunk is NULL here.

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

              Created:
              Updated:
              Resolved: